Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 1,535 for Comparer (0.2 sec)

  1. cmd/dummy-data-generator_test.go

    	r := NewDummyDataGen(100, 0)
    	r.Seek(int64(len(alphabets)), 0)
    	checkEq(readAll(r), readAll(NewDummyDataGen(100-int64(len(alphabets)), 0)))
    }
    
    // Compares all the bytes returned by the given readers. Any Read
    // errors cause a `false` result. A string describing the error is
    // also returned.
    func cmpReaders(r1, r2 io.Reader) (bool, string) {
    	bufLen := 32 * 1024
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ComparisonChainTest.java

                    .compare(1.0, 1.0)
                    .compare(1.0f, 1.0f)
                    .compare("a", "a", Ordering.usingToString())
                    .result())
            .isEqualTo(0);
      }
    
      public void testShortCircuitLess() {
        assertThat(
                ComparisonChain.start()
                    .compare("a", "b")
                    .compare(DONT_COMPARE_ME, DONT_COMPARE_ME)
                    .result())
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/fieldmanager/equality.go

    			break
    		}
    	}
    
    	if allTimesUnchanged {
    		return newObj, nil
    	}
    
    	// This condition ensures the managed fields are always compared first. If
    	//	this check fails, the if statement will short circuit. If the check
    	// 	succeeds the slow path is taken which compares entire objects.
    	if !equalities.DeepEqualWithNilDifferentFromEmpty(oldManagedFields, newManagedFields) {
    		return newObj, nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 28 14:56:34 UTC 2022
    - 5.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/UnsignedInteger.java

      }
    
      /**
       * Compares this unsigned integer to another unsigned integer. Returns {@code 0} if they are
       * equal, a negative number if {@code this < other}, and a positive number if {@code this >
       * other}.
       */
      @Override
      public int compareTo(UnsignedInteger other) {
        checkNotNull(other);
        return compare(value, other.value);
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 23 18:45:50 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/primitives/UnsignedInteger.java

      }
    
      /**
       * Compares this unsigned integer to another unsigned integer. Returns {@code 0} if they are
       * equal, a negative number if {@code this < other}, and a positive number if {@code this >
       * other}.
       */
      @Override
      public int compareTo(UnsignedInteger other) {
        checkNotNull(other);
        return compare(value, other.value);
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 23 18:45:50 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  6. pkg/kube/krt/README.md

    ### Performance
    
    Compared to a perfectly optimized hand-written controller, `krt` adds some overhead.
    However, writing a perfectly optimized controller is hard, and often not done.
    As a result, for many scenarios it is expected that `krt` will perform on-par or better.
    
    This is similar to a comparison between a high level programming language compared to assembly;
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 18 17:21:50 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  7. src/cmp/cmp_test.go

    		}
    		if b != (test.compare < 0) {
    			t.Errorf("Less(%v, %v) == %t, want %t", test.x, test.y, b, test.compare < 0)
    		}
    	}
    }
    
    func TestCompare(t *testing.T) {
    	for _, test := range tests {
    		var c int
    		switch test.x.(type) {
    		case int:
    			c = cmp.Compare(test.x.(int), test.y.(int))
    		case string:
    			c = cmp.Compare(test.x.(string), test.y.(string))
    		case float64:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/version/version.go

    func (v *Version) LessThan(other *Version) bool {
    	return v.compareInternal(other) == -1
    }
    
    // Compare compares v against a version string (which will be parsed as either Semantic
    // or non-Semantic depending on v). On success it returns -1 if v is less than other, 1 if
    // it is greater than other, or 0 if they are equal.
    func (v *Version) Compare(other string) (int, error) {
    	ov, err := parse(other, v.semver)
    	if err != nil {
    		return 0, err
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 18 19:25:29 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  9. src/crypto/hmac/hmac.go

    	copy(hm.opad, key)
    	for i := range hm.ipad {
    		hm.ipad[i] ^= 0x36
    	}
    	for i := range hm.opad {
    		hm.opad[i] ^= 0x5c
    	}
    	hm.inner.Write(hm.ipad)
    
    	return hm
    }
    
    // Equal compares two MACs for equality without leaking timing information.
    func Equal(mac1, mac2 []byte) bool {
    	// We don't have to be constant time if the lengths of the MACs are
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  10. src/strings/compare_test.go

    }
    
    func TestCompare(t *testing.T) {
    	for _, tt := range compareTests {
    		cmp := Compare(tt.a, tt.b)
    		if cmp != tt.i {
    			t.Errorf(`Compare(%q, %q) = %v`, tt.a, tt.b, cmp)
    		}
    	}
    }
    
    func TestCompareIdenticalString(t *testing.T) {
    	var s = "Hello Gophers!"
    	if Compare(s, s) != 0 {
    		t.Error("s != s")
    	}
    	if Compare(s, s[:1]) != 1 {
    		t.Error("s > s[:1] failed")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 01:33:55 UTC 2022
    - 2.8K bytes
    - Viewed (0)
Back to top