Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for doesMatch (0.1 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)
  2. src/crypto/x509/verify_test.go

    		for _, expectedChain := range test.expectedChains {
    			if doesMatch(expectedChain, chain) {
    				nMatched++
    			}
    		}
    		// Allow additional unknown chains if systemLax is set
    		if nMatched == 0 && test.systemLax == false || nMatched > 1 {
    			t.Errorf("Got %v matches for chain %v", nMatched, chainToDebugString(chain))
    			for _, expectedChain := range test.expectedChains {
    				if doesMatch(expectedChain, chain) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 110.2K bytes
    - Viewed (0)
Back to top