Skip to content

test(mission_planner): add test of default_planner

CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (main) succeeded Oct 8, 2024 in 42s

CodeScene PR Check

Code Health Quality Gates: OK

Change in average Code Health of affected files: +0.01 (9.52 -> 9.53)

  • Improving Code Health: 1 findings(s) ✅

View detailed results in CodeScene

Details

✅ Improving Code Health:

  • Large Method test_lanelet2_plugins_default_planner.cpp: TEST:TestLanelet2PluginsDefaultPlanner:checkGoalInsideLane

Annotations

Check notice on line 413 in planning/autoware_mission_planner/test/test_lanelet2_plugins_default_planner.cpp

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)

✅ No longer an issue: Large Method

TEST:TestLanelet2PluginsDefaultPlanner:checkGoalInsideLane is no longer above the threshold for lines of code. Large functions with many lines of code are generally harder to understand and lower the code health. Avoid adding more lines to this function.

Check notice on line 204 in planning/autoware_mission_planner/test/test_lanelet2_plugins_default_planner.cpp

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)

ℹ New issue: Large Method

TEST:DefaultPlannerTest:checkGoalInsideLane has 84 lines, threshold = 70. Large functions with many lines of code are generally harder to understand and lower the code health. Avoid adding more lines to this function.