feat(route_handler): add unit test for lane change related functions #7504
+234
−77
CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (main)
succeeded
Jun 21, 2024 in 50s
CodeScene PR Check
✅ Code Health Quality Gates: OK
- Declining Code Health: 2 findings(s) 🚩
Details
🚩 Declining Code Health (highest to lowest):
- Large Assertion Blocks test_route_handler.cpp
- Bumpy Road Ahead autoware_test_utils.cpp: loadMap
Annotations
Check warning on line 84 in common/autoware_test_utils/src/autoware_test_utils.cpp
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ New issue: Bumpy Road Ahead
loadMap has 2 blocks with nested conditional logic. Any nesting of 2 or deeper is considered. Threshold is one single, nested block per function. The Bumpy Road code smell is a function that contains multiple chunks of nested conditional logic. The deeper the nesting and the more bumps, the lower the code health.
Check warning on line 56 in planning/autoware_route_handler/test/test_route_handler.cpp
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ New issue: Large Assertion Blocks
The test suite contains 6 assertion blocks with at least 4 assertions, threshold = 4. This test file has several blocks of large, consecutive assert statements. Avoid adding more.
Loading