Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 2,383 for EQUAL (0.49 sec)

  1. 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)
  2. pkg/kubelet/cm/devicemanager/endpoint_test.go

    		if callbackCount == 0 {
    			require.Len(t, devices, 3)
    			require.Equal(t, devices[0].ID, devs[0].ID)
    			require.Equal(t, devices[1].ID, devs[1].ID)
    			require.Equal(t, devices[2].ID, devs[2].ID)
    			require.Equal(t, devices[0].Health, devs[0].Health)
    			require.Equal(t, devices[1].Health, devs[1].Health)
    			require.Equal(t, devices[2].Health, devs[2].Health)
    		}
    
    		// Check plugin update
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 16:05:48 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. test/typeparam/setsimp.dir/main.go

    }
    
    func TestEqual() {
    	s1 := a.Make[string]()
    	s2 := a.Make[string]()
    	if !a.Equal(s1, s2) {
    		panic(fmt.Sprintf("a.Equal(%v, %v) = false, want true", s1, s2))
    	}
    	s1.Add("hello")
    	s1.Add("world")
    	if got := s1.Len(); got != 2 {
    		panic(fmt.Sprintf("(%v).Len() == %d, want 2", s1, got))
    	}
    	if a.Equal(s1, s2) {
    		panic(fmt.Sprintf("a.Equal(%v, %v) = true, want false", s1, s2))
    	}
    }
    
    func TestCopy() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  6. internal/etag/etag_test.go

    }
    
    func TestEqual(t *testing.T) {
    	for i, test := range equalTests {
    		A, err := Parse(test.A)
    		if err != nil {
    			t.Fatalf("Test %d: %v", i, err)
    		}
    		B, err := Parse(test.B)
    		if err != nil {
    			t.Fatalf("Test %d: %v", i, err)
    		}
    		if equal := Equal(A, B); equal != test.Equal {
    			t.Fatalf("Test %d: got %v - want %v", i, equal, test.Equal)
    		}
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 18 17:00:54 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  7. pilot/pkg/model/addressmap_test.go

    			g := NewWithT(t)
    			g.Expect(c.newMap().Len()).To(Equal(c.expected))
    		})
    	}
    }
    
    func TestAddressMapGetAddressesFor(t *testing.T) {
    	g := NewWithT(t)
    
    	m := model.AddressMap{
    		Addresses: map[cluster.ID][]string{
    			c1ID: c1Addresses,
    			c2ID: c2Addresses,
    		},
    	}
    
    	g.Expect(m.GetAddressesFor(c1ID)).To(Equal(c1Addresses))
    	g.Expect(m.GetAddressesFor(c2ID)).To(Equal(c2Addresses))
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  8. pkg/config/analysis/analyzers/authz/authorizationpolicies_test.go

    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestNamespaceMatch(t *testing.T) {
    	assert.Equal(t, namespaceMatch("test-login", "*"), true)
    
    	assert.Equal(t, namespaceMatch("test-login", "test-*"), true)
    	assert.Equal(t, namespaceMatch("test-login", "*-test"), false)
    
    	assert.Equal(t, namespaceMatch("test-login", "login-*"), false)
    	assert.Equal(t, namespaceMatch("test-login", "*-login"), true)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 14 19:27:32 UTC 2021
    - 1022 bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top