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

test(path_generator): add tests for turn signal activation feature #253

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

Conversation

mitukou1109
Copy link
Contributor

Description

This PR adds tests for turn signal activation feature of path_generator.

How was this PR tested?

colcon test --packages-select autoware_path_generator --event-handlers console_cohesion+

gives the following result (excerpt):

1: [----------] 6 tests from UtilsTest
1: [ RUN      ] UtilsTest.getPreviousLaneletWithinRoute
1: [       OK ] UtilsTest.getPreviousLaneletWithinRoute (30 ms)
1: [ RUN      ] UtilsTest.getNextLaneletWithinRoute
1: [       OK ] UtilsTest.getNextLaneletWithinRoute (28 ms)
1: [ RUN      ] UtilsTest.getLaneletsWithinRouteUpTo
1: [       OK ] UtilsTest.getLaneletsWithinRouteUpTo (26 ms)
1: [ RUN      ] UtilsTest.getLaneletsWithinRouteAfter
1: [       OK ] UtilsTest.getLaneletsWithinRouteAfter (24 ms)
1: [ RUN      ] UtilsTest.getLaneletsWithinRoute
1: [       OK ] UtilsTest.getLaneletsWithinRoute (26 ms)
1: [ RUN      ] UtilsTest.getTurnSignalRequiredEndPoint
1: [       OK ] UtilsTest.getTurnSignalRequiredEndPoint (25 ms)
1: [----------] 6 tests from UtilsTest (159 ms total)
1: 
1: [----------] 6 tests from GetTurnSignalTest
1: [ RUN      ] GetTurnSignalTest.getTurnSignal/EgoIsStoppingAndBeforeDesiredStartPoint
1: [       OK ] GetTurnSignalTest.getTurnSignal/EgoIsStoppingAndBeforeDesiredStartPoint (25 ms)
1: [ RUN      ] GetTurnSignalTest.getTurnSignal/EgoIsStoppingAndAheadOfDesiredStartPoint
1: [       OK ] GetTurnSignalTest.getTurnSignal/EgoIsStoppingAndAheadOfDesiredStartPoint (26 ms)
1: [ RUN      ] GetTurnSignalTest.getTurnSignal/EgoIsMovingAndAheadOfDesiredStartPoint
1: [       OK ] GetTurnSignalTest.getTurnSignal/EgoIsMovingAndAheadOfDesiredStartPoint (25 ms)
1: [ RUN      ] GetTurnSignalTest.getTurnSignal/EgoIsInRequiredSection
1: [       OK ] GetTurnSignalTest.getTurnSignal/EgoIsInRequiredSection (26 ms)
1: [ RUN      ] GetTurnSignalTest.getTurnSignal/EgoIsInDesiredSection
1: [       OK ] GetTurnSignalTest.getTurnSignal/EgoIsInDesiredSection (24 ms)
1: [ RUN      ] GetTurnSignalTest.getTurnSignal/EgoIsAheadOfDesiredEndPoint
1: [       OK ] GetTurnSignalTest.getTurnSignal/EgoIsAheadOfDesiredEndPoint (26 ms)
1: [----------] 6 tests from GetTurnSignalTest (152 ms total)

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

Signed-off-by: mitukou1109 <[email protected]>
Copy link

github-actions bot commented Mar 10, 2025

Thank you for contributing to the Autoware project!

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

Please ensure:

@@ -0,0 +1,141 @@
// Copyright 2024 TIER IV, Inc.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// Copyright 2024 TIER IV, Inc.
// Copyright 2025 TIER IV, Inc.

@kosuke55 kosuke55 self-assigned this Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants