-
Notifications
You must be signed in to change notification settings - Fork 691
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(euclidean_cluster): add unit tests #7735
test(euclidean_cluster): add unit tests #7735
Conversation
Signed-off-by: badai-nguyen <dai.nguyen@tier4.jp>
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
|
||
// Test case 3: Test case when the input pointcloud has two clusters with points number greater to | ||
// max_cluster_size | ||
TEST(VoxelGridBasedEuclideanClusterTest, testcase3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test failed.
1: /home/yoshiri/autoware/src/universe/autoware.universe/perception/euclidean_cluster/test/test_voxel_grid_based_euclidean_cluster.cpp:165: Failure
1: Expected equality of these values:
1: output.feature_objects.size()
1: Which is: 1
1: 0
1: [ FAILED ] VoxelGridBasedEuclideanClusterTest.testcase3 (0 ms)
1: [----------] 3 tests from VoxelGridBasedEuclideanClusterTest (3 ms total)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now I found test passed
perception/euclidean_cluster/test/test_voxel_grid_based_euclidean_cluster.cpp
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7735 +/- ##
==========================================
- Coverage 28.75% 28.37% -0.39%
==========================================
Files 1594 1619 +25
Lines 116892 115824 -1068
Branches 50050 49220 -830
==========================================
- Hits 33616 32865 -751
+ Misses 74178 73956 -222
+ Partials 9098 9003 -95
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: badai-nguyen <dai.nguyen@tier4.jp>
@YoshiRi I updated branch and all tests were passed. Could you review this again?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: badai-nguyen <dai.nguyen@tier4.jp>
* chore(euclidean_cluster): add unit tests Signed-off-by: badai-nguyen <dai.nguyen@tier4.jp> * fix: pre-commit Signed-off-by: badai-nguyen <dai.nguyen@tier4.jp> * fix: namespace update Signed-off-by: badai-nguyen <dai.nguyen@tier4.jp> --------- Signed-off-by: badai-nguyen <dai.nguyen@tier4.jp>
Description
cluster
function ofVoxelGridBasedEuclideanCluster
Related links
Parent Issue:
How was this PR tested?
Notes for reviewers
None.
Interface changes
None.
Effects on system behavior
None.