Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for doesMatch (0.08 sec)

  1. pkg/config/host/name_test.go

    		{"*", "", true},
    		{"*.com", "*.foo.com", true},
    		{"foo.com", "*.foo.com", false},
    		{"*.foo.bar.baz", "baz", false},
    	}
    	for n := 0; n < b.N; n++ {
    		for _, test := range tests {
    			doesMatch := test.a.Matches(test.z)
    			if doesMatch != test.matches {
    				b.Fatalf("does not match")
    			}
    		}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 29 15:57:39 UTC 2022
    - 4.7K bytes
    - Viewed (0)
Back to top