Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for isEqual (0.11 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java

      }
    
      @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testRemoveIf_sometimesTrue() {
        assertTrue(
            "removeIf(isEqual(present)) should return true",
            collection.removeIf(Predicate.isEqual(samples.e0())));
        expectMissing(samples.e0());
      }
    
      @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE)
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java

      }
    
      @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testRemoveIf_sometimesTrue() {
        assertTrue(
            "removeIf(isEqual(present)) should return true",
            collection.removeIf(Predicate.isEqual(samples.e0())));
        expectMissing(samples.e0());
      }
    
      @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE)
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. utils/tests/utils.go

    			got = reflect.ValueOf(got).Convert(reflect.ValueOf(expect).Type()).Interface()
    			isEqual()
    		} else if reflect.ValueOf(expect).Type().ConvertibleTo(reflect.ValueOf(got).Type()) {
    			expect = reflect.ValueOf(got).Convert(reflect.ValueOf(got).Type()).Interface()
    			isEqual()
    		} else {
    			t.Errorf("%v: expect: %+v, got %+v", utils.FileWithLineNum(), expect, got)
    			return
    		}
    	}
    }
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Mar 10 09:21:56 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java

            this.digest.update(data, offset, length);
    
            byte[] cmp = new byte[SIGNATURE_LENGTH];
            System.arraycopy(this.digest.doFinal(), 0, cmp, 0, SIGNATURE_LENGTH);
            if ( !MessageDigest.isEqual(sig, cmp) ) {
                return true;
            }
            return false;
        }
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Aug 17 17:34:29 UTC 2021
    - 4.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/pac/Pac.java

                        Hexdump.toHexString(this.serverSignature.getChecksum())));
            }
    
            byte checksum[] = PacMac.calculateMac(this.serverSignature.getType(), keys, checksumData);
            if ( !MessageDigest.isEqual(this.serverSignature.getChecksum(), checksum) ) {
                if ( log.isDebugEnabled() ) {
                    log.debug(
                        String.format(
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 6.5K bytes
    - Viewed (0)
  6. internal/crypto/metadata_test.go

    }
    
    func TestRemoveInternalEntries(t *testing.T) {
    	isEqual := func(x, y map[string]string) bool {
    		if len(x) != len(y) {
    			return false
    		}
    		for k, v := range x {
    			if u, ok := y[k]; !ok || v != u {
    				return false
    			}
    		}
    		return true
    	}
    
    	for i, test := range removeInternalEntriesTests {
    		RemoveInternalEntries(test.Metadata)
    		if !isEqual(test.Metadata, test.Expected) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 20:51:54 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/NtlmContext.java

            }
    
            byte[] verify = new byte[8];
            System.arraycopy(mic, 4, verify, 0, 8);
            if ( !MessageDigest.isEqual(trunc, verify) ) {
                if ( log.isDebugEnabled() ) {
                    log.debug(String.format("Seq = %d ver = %d encrypted = %s", seq, ver, encrypted));
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 15.7K bytes
    - Viewed (0)
  8. internal/crypto/header_test.go

    		},
    		ExpectedHeader: http.Header{
    			"X-Amz-Meta-Test-1": []string{"Test-1"},
    		},
    	},
    }
    
    func TestRemoveSensitiveHeaders(t *testing.T) {
    	isEqual := func(x, y http.Header) bool {
    		if len(x) != len(y) {
    			return false
    		}
    		for k, v := range x {
    			u, ok := y[k]
    			if !ok || len(v) != len(u) {
    				return false
    			}
    			sort.Strings(v)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 13 14:52:15 UTC 2022
    - 21.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/HashCode.java

        }
    
        @Override
        byte[] getBytesInternal() {
          return bytes;
        }
    
        @Override
        boolean equalsSameBits(HashCode that) {
          // We don't use MessageDigest.isEqual() here because its contract does not guarantee
          // constant-time evaluation (no short-circuiting).
          if (this.bytes.length != that.getBytesInternal().length) {
            return false;
          }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:54:59 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/hash/HashCode.java

        }
    
        @Override
        byte[] getBytesInternal() {
          return bytes;
        }
    
        @Override
        boolean equalsSameBits(HashCode that) {
          // We don't use MessageDigest.isEqual() here because its contract does not guarantee
          // constant-time evaluation (no short-circuiting).
          if (this.bytes.length != that.getBytesInternal().length) {
            return false;
          }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:54:59 UTC 2024
    - 12.6K bytes
    - Viewed (0)
Back to top