test(bpp_common): add unit test for safety check #9386
+297
−35
Merged
CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (main)
failed
Nov 19, 2024 in 47s
CodeScene PR Check
❌ Code Health Quality Gates: FAILED
Change in average Code Health of affected files: -0.21 (8.09 -> 7.88)
- Declining Code Health: 3 findings(s) 🚩
Details
🚩 Declining Code Health (highest to lowest):
- Large Method test_safety_check.cpp: TEST:BehaviorPathPlanningSafetyUtilsTest:checkCollision
- Excess Number of Function Arguments test_safety_check.cpp: create_rss_parameters
- Excess Number of Function Arguments test_safety_check.cpp: create_path_with_velocity_and_polygon
Annotations
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ New issue: Large Method
TEST:BehaviorPathPlanningSafetyUtilsTest:checkCollision has 71 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.
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ New issue: Excess Number of Function Arguments
create_rss_parameters has 6 arguments, threshold = 4. This function has too many arguments, indicating a lack of encapsulation. Avoid adding more arguments.
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ New issue: Excess Number of Function Arguments
create_path_with_velocity_and_polygon has 5 arguments, threshold = 4. This function has too many arguments, indicating a lack of encapsulation. Avoid adding more arguments.
Loading