Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,646 for _Equal (0.58 sec)

  1. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

       *       instances.
       *   <li>For the constructor or static factory method used to construct instances, it's checked
       *       that when equal parameters are passed, the result instance should also be equal; and vice
       *       versa.
       *   <li>If a non-private constructor or non-private static factory method exists:
       *       <ul>
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/route/route_test.go

    		g.Expect(len(routes)).To(Equal(3))
    		g.Expect(routes[0].GetMatch().GetPrefix()).To(Equal("/foo"))
    		g.Expect(routes[0].StatPrefix).To(Equal("foo"))
    		g.Expect(routes[1].GetMatch().GetPrefix()).To(Equal("/baz"))
    		g.Expect(routes[1].StatPrefix).To(Equal(""))
    		g.Expect(routes[2].GetMatch().GetPrefix()).To(Equal("/bar"))
    		g.Expect(routes[2].StatPrefix).To(Equal(""))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 88.1K bytes
    - Viewed (0)
  3. pkg/kubelet/util/manager/cache_based_manager_test.go

    			return 0
    		}
    		return item.refCount
    	}
    	assert.Equal(t, 3, refs("ns1", "s1"))
    	assert.Equal(t, 1, refs("ns1", "s10"))
    	assert.Equal(t, 3, refs("ns1", "s2"))
    	assert.Equal(t, 3, refs("ns1", "s3"))
    	assert.Equal(t, 2, refs("ns1", "s30"))
    	assert.Equal(t, 2, refs("ns1", "s4"))
    	assert.Equal(t, 4, refs("ns1", "s5"))
    	assert.Equal(t, 2, refs("ns1", "s50"))
    	assert.Equal(t, 0, refs("ns1", "s6"))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  4. src/internal/bytealg/equal_arm64.s

    #include "textflag.h"
    
    // memequal(a, b unsafe.Pointer, size uintptr) bool
    TEXT runtime·memequal<ABIInternal>(SB),NOSPLIT|NOFRAME,$0-25
    	// short path to handle 0-byte case
    	CBZ	R2, equal
    	// short path to handle equal pointers
    	CMP	R0, R1
    	BEQ	equal
    	B	memeqbody<>(SB)
    equal:
    	MOVD	$1, R0
    	RET
    
    // memequal_varlen(a, b unsafe.Pointer) bool
    TEXT runtime·memequal_varlen<ABIInternal>(SB),NOSPLIT,$0-17
    	CMP	R0, R1
    	BEQ	eq
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 16:07:25 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. src/crypto/internal/nistec/p256_ordinv_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	if !bytes.Equal(out, zero) {
    		t.Error("unexpected output for inv(0)")
    	}
    
    	// inv(N) is also 0 mod N.
    	input := make([]byte, 32)
    	N.FillBytes(input)
    	out, err = nistec.P256OrdInverse(input)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if !bytes.Equal(out, zero) {
    		t.Error("unexpected output for inv(N)")
    	}
    	if !bytes.Equal(input, N.Bytes()) {
    		t.Error("input was modified")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. pkg/kubelet/winstats/perfcounter_nodestats_test.go

    		nodeInfo: nodeInfo{
    			memoryPhysicalCapacityBytes: 100,
    		},
    	}
    
    	machineInfo, err := p.getMachineInfo()
    	assert.NoError(t, err)
    	assert.Equal(t, uint64(100), machineInfo.MemoryCapacity)
    	hostname, _ := os.Hostname()
    	assert.Equal(t, hostname, machineInfo.MachineID)
    
    	// Check if it's an UUID.
    	_, err = uuid.Parse(machineInfo.SystemUUID)
    	assert.NoError(t, err)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 26 18:37:21 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. src/slices/slices_test.go

    	for _, test := range equalIntTests {
    		if got := Equal(test.s1, test.s2); got != test.want {
    			t.Errorf("Equal(%v, %v) = %t, want %t", test.s1, test.s2, got, test.want)
    		}
    	}
    	for _, test := range equalFloatTests {
    		if got := Equal(test.s1, test.s2); got != test.wantEqual {
    			t.Errorf("Equal(%v, %v) = %t, want %t", test.s1, test.s2, got, test.wantEqual)
    		}
    	}
    }
    
    // equal is simply ==.
    func equal[T comparable](v1, v2 T) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:06 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  8. pkg/kube/kclient/crdwatcher_test.go

    	ctl := c.CrdWatcher()
    	// Created before informer runs
    	assert.Equal(t, ctl.KnownOrCallback(gvr.VirtualService, func(s <-chan struct{}) {
    		assert.Equal(t, s, stop)
    		vsCalls.Inc()
    	}), false)
    
    	c.RunAndWait(stop)
    	assert.EventuallyEqual(t, vsCalls.Load, 1)
    
    	// created once running
    	assert.Equal(t, ctl.KnownOrCallback(gvr.GatewayClass, func(s <-chan struct{}) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  9. pkg/kubelet/kuberuntime/kuberuntime_image_test.go

    	imageRef, err := fakeManager.PullImage(ctx, kubecontainer.ImageSpec{Image: "busybox"}, nil, nil)
    	assert.NoError(t, err)
    	assert.Equal(t, "busybox", imageRef)
    
    	images, err := fakeManager.ListImages(ctx)
    	assert.NoError(t, err)
    	assert.Equal(t, 1, len(images))
    	assert.Equal(t, images[0].RepoTags, []string{"busybox"})
    }
    
    func TestPullImageWithError(t *testing.T) {
    	ctx := context.Background()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  10. platforms/ide/problems-api/src/test/groovy/org/gradle/api/problems/internal/DefaultProblemDefinitionReport.groovy

    import spock.lang.Specification
    
    class DefaultProblemDefinitionReport extends Specification {
        def "equal objects are equal"() {
            when:
            def pd1 = createProblemDefinition()
            def pd2 = createProblemDefinition()
    
            then:
            pd1 == pd2
            pd1 == pd1
        }
    
        def "Changed label causes equal to be false"() {
    
            when:
            def pd1 = createProblemDefinition()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 13:35:05 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top