mirror of
https://github.com/juanfont/headscale.git
synced 2026-09-10 02:31:59 +09:00
471b9bbdbb
The matcher_test.go file was empty (just the package declaration). Add comprehensive unit tests covering all public methods: - TestMatchFromStrings: CIDR, wildcard, single IP, IPv6, empty inputs - TestMatchFromFilterRule: standard rules, wildcard dst, empty DstPorts - TestMatchesFromFilterRules: multi-rule conversion - TestSrcsOverlapsPrefixes: exact, parent/child, no overlap, IPv6 - TestDestsOverlapsPrefixes: exact, parent/child, wildcard - TestDestsIsTheInternet: 0.0.0.0/0, ::/0, wildcard, private ranges - TestDebugString: output format validation DestsIsTheInternet had zero test coverage (neither direct nor indirect) prior to this change. Updates #3157 Updates #3169