autowarefoundation / autoware.universe

https://autowarefoundation.github.io/autoware.universe/
Apache License 2.0
964 stars 630 forks source link

fix(autoware_test_utils): fix unusedFunction #8857

Closed kobayu858 closed 2 weeks ago

kobayu858 commented 2 weeks ago

Description

This is a fix based on cppcheck unusedFunction warnings.

common/autoware_test_utils/src/autoware_test_utils.cpp:141:0: style: The function 'get_absolute_path_to_route' is never used. [unusedFunction]
std::string get_absolute_path_to_route(
^
common/autoware_test_utils/src/autoware_test_utils.cpp:231:0: style: The function 'combineConsecutiveRouteSections' is never used. [unusedFunction]
RouteSections combineConsecutiveRouteSections(
^
common/autoware_test_utils/src/mock_data_parser.cpp:78:0: style: The function 'parse_lanelet_route_file' is never used. [unusedFunction]
LaneletRoute parse_lanelet_route_file(const std::string & filename)
^

Related links

Parent Issue:

How was this PR tested?

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

github-actions[bot] commented 2 weeks ago

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

codecov[bot] commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 27.82%. Comparing base (69d3176) to head (13fede1). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #8857 +/- ## ========================================== - Coverage 27.83% 27.82% -0.01% ========================================== Files 1325 1329 +4 Lines 98809 98838 +29 Branches 39664 39664 ========================================== + Hits 27501 27504 +3 - Misses 71258 71284 +26 Partials 50 50 ``` | [Flag](https://app.codecov.io/gh/autowarefoundation/autoware.universe/pull/8857/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=autowarefoundation) | Coverage Δ | | *Carryforward flag | |---|---|---|---| | [differential](https://app.codecov.io/gh/autowarefoundation/autoware.universe/pull/8857/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=autowarefoundation) | `26.63% <ø> (?)` | | | | [total](https://app.codecov.io/gh/autowarefoundation/autoware.universe/pull/8857/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=autowarefoundation) | `27.83% <ø> (ø)` | | Carriedforward from [69d3176](https://app.codecov.io/gh/autowarefoundation/autoware.universe/commit/69d317663c4a96435b4a20366185a64cdae6a758?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=autowarefoundation) | *This pull request uses carry forward flags. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=autowarefoundation) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.