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

add(behavior_path_planner): add an unittest for filterObjectsByClass function on objects_filtering.cpp #5531

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

keiota
Copy link
Contributor

@keiota keiota commented Nov 9, 2023

Description

In this PR, I create an unittest program for filterObjectsByClass function on objects_filtering.cpp.
In this unittest, there are 4 cases of tests which are divided by a object classification and filtering target type.

Tests performed

This PR will indicate new section when you do unittest

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

the result is below.

4: Running main() from gmock_main.cc
4: [==========] Running 2 tests from 1 test suite.
4: [----------] Global test environment set-up.
4: [----------] 2 tests from BehaviorPathPlanningObjectsFiltering
4: [ RUN      ] BehaviorPathPlanningObjectsFiltering.filterObjectsByVelocity
4: [       OK ] BehaviorPathPlanningObjectsFiltering.filterObjectsByVelocity (0 ms)
4: [ RUN      ] BehaviorPathPlanningObjectsFiltering.filterObjectsByClass
4: [       OK ] BehaviorPathPlanningObjectsFiltering.filterObjectsByClass (0 ms)
4: [----------] 2 tests from BehaviorPathPlanningObjectsFiltering (0 ms total)
4: 
4: [----------] Global test environment tear-down
4: [==========] 2 tests from 1 test suite ran. (0 ms total)
4: [  PASSED  ] 2 tests.

Effects on system behavior

Not applicable.

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Nov 9, 2023
Copy link

stale bot commented Jan 8, 2024

This pull request has been automatically marked as stale because it has not had recent activity.

@stale stale bot added the status:stale Inactive or outdated issues. (auto-assigned) label Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:planning Route planning, decision-making, and navigation. (auto-assigned) status:stale Inactive or outdated issues. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant