Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for testHash_hashesCorrectly (0.12 seconds)

  1. guava-tests/test/com/google/common/hash/HashingOutputStreamTest.java

        out.write(buf, 0, 3);
    
        verify(hashFunction).newHasher();
        verify(hasher).putBytes(buf, 0, 3);
        verifyNoMoreInteractions(hashFunction, hasher);
      }
    
      public void testHash_hashesCorrectly() throws Exception {
        byte[] buf = new byte[] {'y', 'a', 'm', 's'};
        HashCode expectedHash = sha512().hashBytes(buf);
        HashingOutputStream out = new HashingOutputStream(sha512(), buffer);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 3.2K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/hash/HashingInputStreamTest.java

        }
    
        verify(hasher).putBytes(expectedBytes, 0, 4);
        verify(hashFunction).newHasher();
        verifyNoMoreInteractions(hashFunction, hasher);
      }
    
      public void testHash_hashesCorrectly() throws Exception {
        HashCode expectedHash = sha512().hashBytes(testBytes);
        HashingInputStream in = new HashingInputStream(sha512(), buffer);
    
        byte[] buf = new byte[4];
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/hash/HashingInputStreamTest.java

        }
    
        verify(hasher).putBytes(expectedBytes, 0, 4);
        verify(hashFunction).newHasher();
        verifyNoMoreInteractions(hashFunction, hasher);
      }
    
      public void testHash_hashesCorrectly() throws Exception {
        HashCode expectedHash = sha512().hashBytes(testBytes);
        HashingInputStream in = new HashingInputStream(sha512(), buffer);
    
        byte[] buf = new byte[4];
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/hash/HashingOutputStreamTest.java

        out.write(buf, 0, 3);
    
        verify(hashFunction).newHasher();
        verify(hasher).putBytes(buf, 0, 3);
        verifyNoMoreInteractions(hashFunction, hasher);
      }
    
      public void testHash_hashesCorrectly() throws Exception {
        byte[] buf = new byte[] {'y', 'a', 'm', 's'};
        HashCode expectedHash = sha512().hashBytes(buf);
        HashingOutputStream out = new HashingOutputStream(sha512(), buffer);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 3.2K bytes
    - Click Count (0)
Back to Top