Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,383 for EQUAL (0.12 sec)

  1. test/typeparam/equal.go

    Matthew Dempsky <******@****.***> 1646087539 -0800
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  2. src/crypto/x509/cert_pool_test.go

    		t.Run(tc.name, func(t *testing.T) {
    			equal := tc.a.Equal(tc.b)
    			if equal != tc.equal {
    				t.Errorf("Unexpected Equal result: got %t, want %t", equal, tc.equal)
    			}
    		})
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 13 18:06:43 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  3. pkg/url/url_test.go

    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestURL(t *testing.T) {
    	assert.Equal(t, BaseURL, "https://istio.io/", "base url should be equal")
    	assert.Equal(t, DocsURL, "https://istio.io/"+DocsVersion+"/docs/", "docs url should be equal")
    
    	assert.Equal(t, OpsURL, "https://istio.io/"+DocsVersion+"/docs/ops/", "ops url should be equal")
    	assert.Equal(t, DeploymentRequirements,
    		"https://istio.io/"+DocsVersion+"/docs/ops/deployment/requirements/",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 04 11:12:37 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/values_test.go

    			// Compare types with schema against themselves
    			if tc.lhs.Equal(tc.rhs) != types.Bool(tc.equal) {
    				t.Errorf("expected Equals to return %v", tc.equal)
    			}
    			if tc.rhs.Equal(tc.lhs) != types.Bool(tc.equal) {
    				t.Errorf("expected Equals to return %v", tc.equal)
    			}
    
    			// Compare types with schema against native types. This is slightly different than how
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/helpers_test.go

    	req.Header.Set("Accept", accept)
    
    	acceptWithReq := &lazyAccept{req}
    	assert.Equal(t, accept, fmt.Sprintf("%v", acceptWithReq))
    
    	acceptWithoutReq := &lazyAccept{}
    	assert.Equal(t, "unknown", fmt.Sprintf("%v", acceptWithoutReq))
    }
    
    func TestLazyVerb(t *testing.T) {
    	assert.Equal(t, "unknown", fmt.Sprintf("%v", &lazyVerb{}))
    
    	u, _ := url.Parse("?watch=true")
    	req := &http.Request{Method: "GET", URL: u}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Sep 03 15:25:35 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  6. test/typeparam/mapsimp.dir/main.go

    	}
    }
    
    func TestEqual() {
    	if !a.Equal(m1, m1) {
    		panic(fmt.Sprintf("a.Equal(%v, %v) = false, want true", m1, m1))
    	}
    	if a.Equal(m1, nil) {
    		panic(fmt.Sprintf("a.Equal(%v, nil) = true, want false", m1))
    	}
    	if a.Equal(nil, m1) {
    		panic(fmt.Sprintf("a.Equal(nil, %v) = true, want false", m1))
    	}
    	if !a.Equal[int, int](nil, nil) {
    		panic("a.Equal(nil, nil) = false, want true")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  7. pkg/util/smallset/smallset_test.go

    	assert.Equal(t, set.List(), []string{"a", "b", "d"})
    	assert.Equal(t, nset.List(), []string{"a", "b", "c", "d", "z"})
    
    	assert.Equal(t, nset.Contains("a"), true)
    	assert.Equal(t, nset.Contains("b"), true)
    	assert.Equal(t, nset.Contains("c"), true)
    	assert.Equal(t, nset.Contains("d"), true)
    	assert.Equal(t, nset.Contains("e"), false)
    	assert.Equal(t, nset.Contains("z"), true)
    }
    
    func TestNew(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. src/maps/maps_test.go

    func TestEqual(t *testing.T) {
    	if !Equal(m1, m1) {
    		t.Errorf("Equal(%v, %v) = false, want true", m1, m1)
    	}
    	if Equal(m1, (map[int]int)(nil)) {
    		t.Errorf("Equal(%v, nil) = true, want false", m1)
    	}
    	if Equal((map[int]int)(nil), m1) {
    		t.Errorf("Equal(nil, %v) = true, want false", m1)
    	}
    	if !Equal[map[int]int, map[int]int](nil, nil) {
    		t.Error("Equal(nil, nil) = false, want true")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 17:05:56 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  9. pkg/proxy/ipvs/util/ipvs_test.go

    				Scheduler: "rr",
    				Flags:     0x1,
    				Timeout:   10800,
    			},
    			equal:  true,
    			reason: "All fields equal",
    		},
    	}
    
    	for i := range Tests {
    		equal := Tests[i].svcA.Equal(Tests[i].svcB)
    		if equal != Tests[i].equal {
    			t.Errorf("case: %d got %v, expected %v, reason: %s", i, equal, Tests[i].equal, Tests[i].reason)
    		}
    	}
    }
    
    func TestRealServerEqual(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 8K bytes
    - Viewed (0)
  10. pkg/config/analysis/analyzers/util/hosts_test.go

    	// wildcard, all namespaces scope
    	g.Expect(NewScopedFqdn("*", "foo", "*")).To(Equal(ScopedFqdn("*/*")))
    	// wildcard sub domain, all namespaces scope
    	g.Expect(NewScopedFqdn("*", "foo", "*.xyz.abc")).To(Equal(ScopedFqdn("*/*.xyz.abc")))
    
    	// external host, local scope
    	g.Expect(NewScopedFqdn("foo", "foo", "xyz.abc")).To(Equal(ScopedFqdn("foo/xyz.abc")))
    	// external host, all namespaces scope
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 4.4K bytes
    - Viewed (0)
Back to top