github.com/database64128/shadowsocks-go@v1.10.2-0.20240315062903-143a773533f1/domainset/matcher_test.go (about)

     1  package domainset
     2  
     3  import "testing"
     4  
     5  func testMatcher(t *testing.T, m Matcher, domain string, expectedResult bool) {
     6  	if m.Match(domain) != expectedResult {
     7  		t.Errorf("%s should return %v", domain, expectedResult)
     8  	}
     9  }