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: add the empty route test and empty map test #38

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

HansOersted
Copy link
Contributor

@HansOersted HansOersted commented Dec 10, 2024

Description

Add the empty route test and empty map test.

Related links

Tests performed

Notes for reviewers

Interface changes

Effects on system behavior

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.

  • The PR follows the pull request guidelines.
  • The PR has been properly tested.
  • The PR has been reviewed by the code owners.

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.
  • The PR is ready for merge.

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

Copy link

codecov bot commented Dec 11, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 16.24%. Comparing base (36f5ffb) to head (5ff6392).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...lanelet2_extension/test/src/test_route_checker.cpp 66.66% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #38      +/-   ##
==========================================
+ Coverage   16.08%   16.24%   +0.15%     
==========================================
  Files          42       42              
  Lines        3083     3090       +7     
  Branches     1395     1397       +2     
==========================================
+ Hits          496      502       +6     
+ Misses       2494     2493       -1     
- Partials       93       95       +2     
Flag Coverage Δ *Carryforward flag
differential 16.24% <75.00%> (-0.51%) ⬇️
total 16.09% <ø> (ø) Carriedforward from 36f5ffb

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +29 to +32
if (route_msg.segments.empty()) {
std::cerr << "Route is empty, returning false." << std::endl;
return false;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whether an empty route segment is considered invalid is a matter of interpretation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants