Skip to content

Conversation

ChrisJBurns
Copy link
Collaborator

They were simple enough to add, may as well add them for extra assurances

The test is using assert.Equal() to directly compare
tool slices, which requires exact order matching. However, the tools in the response can
come in any order (likely from map iteration), causing intermittent failures.

Using an assert.ElementsMatch should allow us to match regardless of
order

Signed-off-by: ChrisJBurns <[email protected]>
@ChrisJBurns ChrisJBurns changed the title adds missing tests for pkg/labels and pkg/networking/port DRAFT: adds missing tests for pkg/labels and pkg/networking/port Oct 13, 2025
Copy link

codecov bot commented Oct 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.91%. Comparing base (53d0b4e) to head (342b191).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2181      +/-   ##
==========================================
+ Coverage   52.67%   52.91%   +0.23%     
==========================================
  Files         223      223              
  Lines       29037    29037              
==========================================
+ Hits        15296    15364      +68     
+ Misses      12605    12521      -84     
- Partials     1136     1152      +16     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant