Skip to content

Tests need to include message types they are using#375

Merged
mjcarroll merged 2 commits intomainfrom
mjcarroll/iwyu
Aug 23, 2023
Merged

Tests need to include message types they are using#375
mjcarroll merged 2 commits intomainfrom
mjcarroll/iwyu

Conversation

@mjcarroll
Copy link
Contributor

Many sensor tests didn't actually include the headers that they were using. This breaks with the new message generation (we are probably transitively including less).

Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
@codecov
Copy link

codecov bot commented Aug 21, 2023

Codecov Report

Merging #375 (b9bc317) into main (83f0e1f) will not change coverage.
The diff coverage is n/a.

❗ Current head b9bc317 differs from pull request most recent head 3210656. Consider uploading reports for the commit 3210656 to get more accurate results

@@           Coverage Diff           @@
##             main     #375   +/-   ##
=======================================
  Coverage   72.62%   72.62%           
=======================================
  Files          36       36           
  Lines        4947     4947           
=======================================
  Hits         3593     3593           
  Misses       1354     1354           
Files Changed Coverage Δ
src/BoundingBoxCameraSensor.cc 61.17% <ø> (ø)

Copy link
Contributor

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

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

one boolean header missing, otherwise LGTM

@@ -19,7 +19,9 @@

#include <gz/msgs/image.pb.h>
Copy link
Contributor

Choose a reason for hiding this comment

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

msgs::Boolean ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, I can't really detect the things that are already pulled in transitively.

Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
@mjcarroll mjcarroll merged commit 31b87ef into main Aug 23, 2023
@mjcarroll mjcarroll deleted the mjcarroll/iwyu branch August 23, 2023 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🎵 harmonic Gazebo Harmonic

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants