Versions in this module Expand all Collapse all v1 v1.25.0 Mar 19, 2026 Changes in this version + const TestBroadcast + const TestCIDR4_16 + const TestCIDR4_24 + const TestCIDR4_32 + const TestCIDR6_48 + const TestCIDR6_64 + const TestIPv4_1 + const TestIPv4_2 + const TestIPv4_3 + const TestIPv4_4 + const TestIPv4_5 + const TestIPv6LinkLoc + const TestIPv6_1 + const TestIPv6_2 + const TestIPv6_3 + const TestLoopback4 + const TestLoopback6 + const TestPortHTTP + const TestPortHTTPS + const TestPortHigh + const TestPortMax + const TestPortSSH + const TestPrivate10 + const TestPrivate172 + const TestPrivate192 + const TestReasonBruteForce + const TestReasonDDoS + const TestReasonFeedMatch + const TestReasonManual + const TestReasonPortScan + const TestZeroIP + var TestAllowedCountries = []string + var TestBlockedCountries = []string + var TestCountries = []string + func AssertEqual[T comparable](t *testing.T, got, want T) + func AssertError(t *testing.T, err error) + func AssertFalse(t *testing.T, condition bool, msg string) + func AssertNoError(t *testing.T, err error) + func AssertTrue(t *testing.T, condition bool, msg string) + func ContainsString(slice []string, s string) bool + func InvalidIPs() []string + func InvalidPorts() []int + func ReadTestFile(t *testing.T, path string) string + func SampleCIDRList(n int) []string + func SampleIPv4List(n int) []string + func StringSliceEqual(a, b []string) bool + func TempDir(t *testing.T) string + func WriteTestFile(t *testing.T, dir, name, content string) string