Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(route_handler): use pointer for route msgs #3362

Merged
merged 3 commits into from
Apr 12, 2023

Conversation

purewater0901
Copy link
Contributor

@purewater0901 purewater0901 commented Apr 11, 2023

Description

Use a pointer for route msgs to protect from invalid data access when it route handler does not have a valid route.

🤖 Generated by Copilot at 99532f5

Refactored the RouteHandler class to use a shared pointer for the route message, improving memory efficiency and enabling message sharing. Added null checks and default values for route information functions.

Tests performed

PSim

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

Signed-off-by: yutaka <purewater0901@gmail.com>
@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Apr 11, 2023
@codecov
Copy link

codecov bot commented Apr 11, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (59650ed) 12.31% compared to head (7b408fd) 12.31%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3362   +/-   ##
=======================================
  Coverage   12.31%   12.31%           
=======================================
  Files        1381     1380    -1     
  Lines       96770    96713   -57     
  Branches    28001    27977   -24     
=======================================
- Hits        11916    11910    -6     
+ Misses      72223    72174   -49     
+ Partials    12631    12629    -2     
Flag Coverage Δ *Carryforward flag
differential 4.96% <0.00%> (?)
total 12.31% <ø> (+<0.01%) ⬆️ Carriedforward from 99532f5

*This pull request uses carry forward flags. Click here to find out more.

Impacted Files Coverage Δ
planning/route_handler/src/route_handler.cpp 11.25% <0.00%> (-0.05%) ⬇️

... and 4 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

purewater0901 and others added 2 commits April 12, 2023 10:28
Signed-off-by: yutaka <purewater0901@gmail.com>
@purewater0901 purewater0901 merged commit dc8895c into main Apr 12, 2023
@purewater0901 purewater0901 deleted the refactor/use-pointer-for-route branch April 12, 2023 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:planning Route planning, decision-making, and navigation. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants