Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 520 for _Equal (0.68 sec)

  1. src/crypto/internal/hpke/hpke_test.go

    			if err != nil {
    				t.Fatal(err)
    			}
    
    			expectedEncap := mustDecodeHex(t, setup["enc"])
    			if !bytes.Equal(encap, expectedEncap) {
    				t.Errorf("unexpected encapsulated key, got: %x, want %x", encap, expectedEncap)
    			}
    			expectedSharedSecret := mustDecodeHex(t, setup["shared_secret"])
    			if !bytes.Equal(context.sharedSecret, expectedSharedSecret) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:33:33 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. src/go/types/typeterm_test.go

    	} {
    		args := split(test, 3)
    		x := testTerm(args[0])
    		y := testTerm(args[1])
    		want := args[2] == "T"
    		if got := x.equal(y); got != want {
    			t.Errorf("%v.equal(%v) = %v; want %v", x, y, got, want)
    		}
    		// equal is symmetric
    		x, y = y, x
    		if got := x.equal(y); got != want {
    			t.Errorf("%v.equal(%v) = %v; want %v", x, y, got, want)
    		}
    	}
    }
    
    func TestTermUnion(t *testing.T) {
    	for _, test := range []string{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/container_manager_linux_test.go

    				assert.IsType(t, &podContainerManagerImpl{}, pcm)
    				got := pcm.(*podContainerManagerImpl)
    				assert.Equal(t, c.cm.subsystems, got.subsystems)
    				assert.Equal(t, c.cm.cgroupManager, got.cgroupManager)
    				assert.Equal(t, c.cm.PodPidsLimit, got.podPidsLimit)
    				assert.Equal(t, c.cm.EnforceCPULimits, got.enforceCPULimits)
    				assert.Equal(t, uint64(c.cm.CPUCFSQuotaPeriod/time.Microsecond), got.cpuCFSQuotaPeriod)
    
    			} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/framer/framer_test.go

    		t.Fatalf("unexpected: %v %d %v", err, n, buf)
    	}
    	if n, err := r.Read(buf); err != io.ErrShortBuffer && n != 1 && bytes.Equal(buf, []byte{0x02}) {
    		t.Fatalf("unexpected: %v %d %v", err, n, buf)
    	}
    	// read the remaining frame
    	buf = make([]byte, 2)
    	if n, err := r.Read(buf); err != nil && n != 2 && bytes.Equal(buf, []byte{0x03, 0x04}) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 13:33:12 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/ztunnelserver_test.go

    	assert.Equal(t, len(fds), 1)
    	// in theory we should close the fd, but it's just a test..
    
    	assert.Equal(t, m.Payload.(*zdsapi.WorkloadRequest_Add).Add.Uid, uid)
    	// send ack so the server doesn't wait for us.
    	sendAck(ztunClient)
    
    	// second message should be the snap sent message
    	m, fds = readRequest(t, ztunClient)
    	assert.Equal(t, len(fds), 0)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 21:47:31 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  6. tools/istio-iptables/pkg/dependencies/implementation_linux_test.go

    		sandboxedNetNS, err = netns.Get()
    		assert.NoError(t, err)
    		return nil
    	}))
    	after := file.AsStringOrFail(t, "/etc/nsswitch.conf")
    	assert.Equal(t, sandboxed, "")
    	assert.Equal(t, original, after)
    	assert.Equal(t, originalNetNS.Equal(sandboxedNetNS), true)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 26 20:05:40 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/eclipse/model/SourceFolder.java

            return Objects.equal(exported, that.exported)
                && Objects.equal(accessRules, that.accessRules)
                && Objects.equal(excludes, that.excludes)
                && Objects.equal(includes, that.includes)
                && Objects.equal(getNativeLibraryLocation(), that.getNativeLibraryLocation())
                && Objects.equal(output, that.output)
                && Objects.equal(path, that.path);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. pkg/maps/maps.go

    // limitations under the License.
    
    package maps
    
    import "maps" // nolint: depguard
    
    // Equal reports whether two maps contain the same key/value pairs.
    // Values are compared using ==.
    func Equal[M1, M2 ~map[K]V, K, V comparable](m1 M1, m2 M2) bool {
    	return maps.Equal(m1, m2)
    }
    
    // Clone returns a copy of the map.
    // The elements are copied using assignment, so this is a shallow clone.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 01 22:48:35 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. pilot/pkg/networking/util/fuzz_test.go

    		rjs, _ := json.Marshal(r)
    		cjs, _ := json.Marshal(copied)
    		assert.Equal(fg.T(), rjs, cjs)
    	})
    }
    
    func FuzzMergeTrafficPolicy(f *testing.F) {
    	fuzz.Fuzz(f, func(fg fuzz.Helper) {
    		copyFrom := fuzz.Struct[*networking.TrafficPolicy](fg)
    
    		empty1 := &networking.TrafficPolicy{}
    		copied := mergeTrafficPolicy(empty1, copyFrom, true)
    		assert.Equal(fg.T(), copyFrom, copied)
    
    		empty2 := &networking.TrafficPolicy{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 20:32:49 UTC 2024
    - 1.8K bytes
    - Viewed (1)
  10. staging/src/k8s.io/apiserver/pkg/storage/util_test.go

    	require.NoError(t, err)
    	require.Equal(t, currentStorageRV, rsRV, "expected the global etcd RV to be equal to replicaset's RV")
    
    	// ensure that the pod's RV hasn't been changed
    	currentPod := getPod(pod.Name, pod.Namespace)
    	currentPodRV, err := versioner.ParseResourceVersion(currentPod.ResourceVersion)
    	require.NoError(t, err)
    	require.Equal(t, currentPodRV, podRV, "didn't expect to see the pod's RV changed")
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 11 12:07:39 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top