trying to reduce the prints and tidy up a bit the code #16
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes updates to dependencies, enhancements to the
outbound_test.gofile, and several improvements to theIPTablesManageriniptables_manager.go. The most important changes include updating Go and dependencies, adding context to test functions, and refactoring error handling and rule management in theIPTablesManager.Dependency Updates:
1.23to1.24and toolchain fromgo1.23.5togo1.24.1ingo.mod.golang.org/x/text v0.23.0and updatedgolang.org/x/sysfromv0.29.0tov0.31.0ingo.mod.Test Enhancements:
contextto several test functions inoutbound_test.goto improve test isolation and clarity. [1] [2] [3] [4] [5] [6] [7] [8]IPTablesManagerImprovements:%vwith%win error formatting to wrap errors properly iniptables_manager.go. [1] [2] [3] [4] [5] [6] [7]buildDefaultActionSpecsandbuildRuleSpecsmethods to improve readability and maintainability. [1] [2]shouldLogAction,getLogPrefix,getActualAction, andfindRuleWithJumpToChainto encapsulate logic and reduce duplication. [1] [2]verifyDefaultRulesmethod to check the presence of default action rules and added corresponding tests. [1] [2]