Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 180 for _Equal (0.2 sec)

  1. pkg/kubelet/kuberuntime/kuberuntime_manager_test.go

    	assert.NoError(t, result.Error())
    	assert.Equal(t, 2, len(fakeRuntime.Containers))
    	assert.Equal(t, 2, len(fakeImage.Images))
    	assert.Equal(t, 1, len(fakeRuntime.Sandboxes))
    	for _, sandbox := range fakeRuntime.Sandboxes {
    		assert.Equal(t, runtimeapi.PodSandboxState_SANDBOX_READY, sandbox.State)
    	}
    	for _, c := range fakeRuntime.Containers {
    		assert.Equal(t, runtimeapi.ContainerState_CONTAINER_RUNNING, c.State)
    	}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 96K bytes
    - Viewed (0)
  2. src/bytes/bytes_test.go

    		for i := 0; i < b.N; i++ {
    			eq := Equal(buf1, buf2)
    			if !eq {
    				b.Fatal("bad equal")
    			}
    		}
    	})
    
    	sizes := []int{1, 6, 9, 15, 16, 20, 32, 4 << 10, 4 << 20, 64 << 20}
    
    	b.Run("same", func(b *testing.B) {
    		benchBytes(b, sizes, bmEqual(func(a, b []byte) bool { return Equal(a, a) }))
    	})
    
    	benchBytes(b, sizes, bmEqual(Equal))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  3. pkg/controller/podautoscaler/replica_calculator_test.go

    		assert.Equal(t, tc.expectedReplicas, outReplicas, "replicas should be as expected")
    		assert.Equal(t, tc.resource.expectedUtilization, outUtilization, "utilization should be as expected")
    		assert.Equal(t, tc.resource.expectedValue, outRawValue, "raw value should be as expected")
    		assert.True(t, tc.timestamp.Equal(outTimestamp), "timestamp should be as expected")
    		return
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Aug 19 03:31:34 UTC 2023
    - 68.4K bytes
    - Viewed (0)
  4. src/time/time_test.go

    	t2 := Time{}
    	err = t2.UnmarshalBinary(b)
    	if err != nil {
    		t.Errorf("Failed to Unmarshal, error = %v", err)
    	}
    
    	if !(t0.Equal(t1) && t1.Equal(t2)) {
    		if !t0.Equal(t1) {
    			t.Errorf("The result t1: %+v after Marshal is not matched original t0: %+v", t1, t0)
    		}
    		if !t1.Equal(t2) {
    			t.Errorf("The result t2: %+v after Unmarshal is not matched original t1: %+v", t2, t1)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MapsTest.java

        assertEquals(EMPTY, diff.entriesOnlyOnLeft());
        assertEquals(EMPTY, diff.entriesOnlyOnRight());
        assertEquals(EMPTY, diff.entriesInCommon());
        assertEquals(EMPTY, diff.entriesDiffering());
        assertEquals("equal", diff.toString());
      }
    
      public void testMapDifferenceEmptySingleton() {
        MapDifference<Integer, Integer> diff = Maps.difference(EMPTY, SINGLETON);
        assertFalse(diff.areEqual());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 67.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/admission_test.go

    		// the evaluator is executed, and returns a denial
    		attr,
    		&admission.RuntimeObjectInterfaces{},
    	)
    
    	require.Equal(t, 0, warningRecorder.len())
    
    	annotations := attr.GetAnnotations(auditinternal.LevelMetadata)
    	require.Equal(t, 0, len(annotations))
    
    	require.ErrorContains(t, err, `Denied`)
    }
    
    // Shows that if a definition does not match the input, it will not be used.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 25 01:39:01 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/S390X.rules

    (Eq(64|Ptr) x y) => (LOCGR {s390x.Equal} (MOVDconst [0]) (MOVDconst [1]) (CMP x y))
    (Eq32       x y) => (LOCGR {s390x.Equal} (MOVDconst [0]) (MOVDconst [1]) (CMPW x y))
    (Eq(16|8|B) x y) => (LOCGR {s390x.Equal} (MOVDconst [0]) (MOVDconst [1]) (CMPW (MOV(H|B|B)reg x) (MOV(H|B|B)reg y)))
    (Eq64F      x y) => (LOCGR {s390x.Equal} (MOVDconst [0]) (MOVDconst [1]) (FCMP x y))
    (Eq32F      x y) => (LOCGR {s390x.Equal} (MOVDconst [0]) (MOVDconst [1]) (FCMPS x y))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 18:09:26 UTC 2023
    - 74.3K bytes
    - Viewed (0)
  8. pkg/kubelet/status/status_manager_test.go

    	if newReadyCondition.LastTransitionTime.IsZero() {
    		t.Errorf("Unexpected: last transition time not set")
    	}
    	if !oldReadyCondition.LastTransitionTime.Equal(&newReadyCondition.LastTransitionTime) {
    		t.Errorf("Unexpected: new transition time %s, is not equal to old transition time %s", newReadyCondition.LastTransitionTime, oldReadyCondition.LastTransitionTime)
    	}
    }
    
    func TestSyncPodIgnoresNotFound(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 68.1K bytes
    - Viewed (0)
  9. src/reflect/type.go

    	}
    
    	etyp := typ
    	esize := etyp.Size()
    
    	array.Equal = nil
    	if eequal := etyp.Equal; eequal != nil {
    		array.Equal = func(p, q unsafe.Pointer) bool {
    			for i := 0; i < length; i++ {
    				pi := arrayAt(p, i, esize, "i < length")
    				qi := arrayAt(q, i, esize, "i < length")
    				if !eequal(pi, qi) {
    					return false
    				}
    
    			}
    			return true
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  10. src/crypto/des/des_test.go

    		result = encrypt(tt.out, result)
    
    		if !bytes.Equal(result, tt.in) {
    			t.Errorf("#%d: result: %x want: %x", i, result, tt.in)
    		}
    	}
    }
    
    func TestDESEncryptBlock(t *testing.T) {
    	for i, tt := range encryptDESTests {
    		c := newCipher(tt.key)
    		out := make([]byte, len(tt.in))
    		c.Encrypt(out, tt.in)
    
    		if !bytes.Equal(out, tt.out) {
    			t.Errorf("#%d: result: %x want: %x", i, out, tt.out)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 16:49:56 UTC 2023
    - 52.2K bytes
    - Viewed (0)
Back to top