Skip to content

ExternalIP unittests#3119

Closed
robbycochran wants to merge 1 commit intorc-claude-devfrom
claude/agent-1773900552-24445
Closed

ExternalIP unittests#3119
robbycochran wants to merge 1 commit intorc-claude-devfrom
claude/agent-1773900552-24445

Conversation

@robbycochran
Copy link
Collaborator

@robbycochran robbycochran commented Mar 19, 2026

  • test: add comprehensive unit tests for ExternalIPsConfig

Description

A detailed explanation of the changes in your PR.

Feel free to remove this section if it is overkill for your PR, and the title of your PR is sufficiently descriptive.

Checklist

  • Investigated and inspected CI test results
  • Updated documentation accordingly

Automated testing

  • Added unit tests
  • Added integration tests
  • Added regression tests

If any of these don't apply, please comment below.

Testing Performed

TODO(replace-me)
Use this space to explain how you tested your PR, or, if you didn't test it, why you did not do so. (Valid reasons include "CI is sufficient" or "No testable changes")
In addition to reviewing your code, reviewers must also review your testing instructions, and make sure they are sufficient.

For more details, ref the Confluence page about this section.

Added 19 unit tests covering:
- Default constructors and direction initialization
- Runtime config parsing with all direction values (INGRESS, EGRESS, BOTH, UNSPECIFIED)
- Fallback behavior when runtime config is absent
- IsEnabled() validation for all direction combinations
- Stream operator output formatting
- Direction enum bitwise operations

Tests ensure proper handling of the enabled/disabled state and
direction configuration from protobuf runtime config.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@robbycochran robbycochran changed the base branch from master to rc-claude-dev March 19, 2026 06:20
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 27.65%. Comparing base (dff9883) to head (387a272).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@                Coverage Diff                @@
##           rc-claude-dev    #3119      +/-   ##
=================================================
+ Coverage          27.38%   27.65%   +0.27%     
=================================================
  Files                 95       95              
  Lines               5427     5427              
  Branches            2548     2548              
=================================================
+ Hits                1486     1501      +15     
+ Misses              3214     3198      -16     
- Partials             727      728       +1     
Flag Coverage Δ
collector-unit-tests 27.65% <ø> (+0.27%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@robbycochran robbycochran deleted the claude/agent-1773900552-24445 branch March 19, 2026 19:48
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