diff options
| author | openai-code-agent[bot] <[email protected]> | 2026-03-06 20:57:16 +0000 |
|---|---|---|
| committer | openai-code-agent[bot] <[email protected]> | 2026-03-06 20:57:16 +0000 |
| commit | c2ca6487add435663073d714b0d5f2792f977e55 (patch) | |
| tree | ec3ae30539110bb57fe8f9cbed926639256d4482 /lib/lib_test.go | |
| parent | 23a7bbf963aca608ce1344f2f1986034020ad8c3 (diff) | |
test: add comprehensive lib package coveragecodex/add-unit-tests-lib-package
Diffstat (limited to 'lib/lib_test.go')
| -rw-r--r-- | lib/lib_test.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/lib_test.go b/lib/lib_test.go new file mode 100644 index 00000000..f851994c --- /dev/null +++ b/lib/lib_test.go @@ -0,0 +1,12 @@ +package lib + +import "testing" + +func TestIgnoreIPHelpers(t *testing.T) { + if got := IgnoreIPv4(); got != IPv4 { + t.Fatalf("IgnoreIPv4() = %s, want %s", got, IPv4) + } + if got := IgnoreIPv6(); got != IPv6 { + t.Fatalf("IgnoreIPv6() = %s, want %s", got, IPv6) + } +} |
