Searched refs:HashTestUtils (Results 1 – 9 of 9) sorted by relevance
/external/guava/guava-tests/test/com/google/common/hash/ |
D | HashingTest.java | 49 HashTestUtils.checkAvalanche(Hashing.md5(), 100, 0.4); in testMd5() 50 HashTestUtils.checkNo2BitCharacteristics(Hashing.md5()); in testMd5() 51 HashTestUtils.checkNoFunnels(Hashing.md5()); in testMd5() 52 HashTestUtils.assertInvariants(Hashing.md5()); in testMd5() 57 HashTestUtils.checkAvalanche(Hashing.sha1(), 100, 0.4); in testSha1() 58 HashTestUtils.checkNo2BitCharacteristics(Hashing.sha1()); in testSha1() 59 HashTestUtils.checkNoFunnels(Hashing.sha1()); in testSha1() 60 HashTestUtils.assertInvariants(Hashing.sha1()); in testSha1() 65 HashTestUtils.checkAvalanche(Hashing.sha256(), 100, 0.4); in testSha256() 66 HashTestUtils.checkNo2BitCharacteristics(Hashing.sha256()); in testSha256() [all …]
|
D | AbstractNonStreamingHashFunctionTest.java | 20 import com.google.common.hash.HashTestUtils.RandomHasherAction; 61 assertPutString(new char[] { 'p', HashTestUtils.randomLowSurrogate(new Random()) }); in testPutStringWithLowSurrogate() 67 assertPutString(new char[] { 'p', HashTestUtils.randomHighSurrogate(new Random()) }); in testPutStringWithHighSurrogate() 72 HashTestUtils.randomLowSurrogate(new Random()), in testPutStringWithLowHighSurrogate() 73 HashTestUtils.randomHighSurrogate(new Random()) }); in testPutStringWithLowHighSurrogate() 78 HashTestUtils.randomHighSurrogate(new Random()), in testPutStringWithHighLowSurrogate() 79 HashTestUtils.randomLowSurrogate(new Random()) }); in testPutStringWithHighLowSurrogate()
|
D | Murmur3Hash128Test.java | 22 import com.google.common.hash.HashTestUtils.HashFn; 53 byte[] input = HashTestUtils.ascii(stringInput); in assertHash() 79 HashTestUtils.verifyHashFunction(hf, 128, 0x6384BA69); in testParanoid() 83 HashTestUtils.assertInvariants(murmur3_128()); in testInvariants()
|
D | Murmur3Hash32Test.java | 21 import com.google.common.hash.HashTestUtils.HashFn; 69 HashTestUtils.verifyHashFunction(hf, 32, 0xB0F57EE3); in testParanoid() 73 HashTestUtils.assertInvariants(murmur3_32()); in testInvariants()
|
D | ChecksumHashFunctionTest.java | 68 byte[] bytes = HashTestUtils.ascii(input); in assertChecksum() 81 byte[] bytes = HashTestUtils.ascii(input); in assertHash32()
|
D | HashTestUtils.java | 40 final class HashTestUtils { class 41 private HashTestUtils() {} in HashTestUtils() method in HashTestUtils 419 HashCode hashcode1 = hashFunction.hashObject(o, HashTestUtils.BAD_FUNNEL); in assertInvariants() 420 HashCode hashcode2 = hashFunction.hashObject(o, HashTestUtils.BAD_FUNNEL); in assertInvariants()
|
D | BloomFilterTest.java | 186 checkSanity(BloomFilter.create(HashTestUtils.BAD_FUNNEL, expectedInsertions, fpr)); in testBasic() 261 BloomFilter.create(HashTestUtils.BAD_FUNNEL, Integer.MAX_VALUE, Double.MIN_VALUE); in testOptimalSize() 287 BloomFilter<Object> bf = BloomFilter.create(HashTestUtils.BAD_FUNNEL, 10, 0.03); in testExpectedFpp()
|
D | MessageDigestHashFunctionTest.java | 56 assertMessageDigestHashing(HashTestUtils.ascii(stringToTest), algorithmToTest); in testHashing()
|
D | AbstractStreamingHasherTest.java | 24 import com.google.common.hash.HashTestUtils.RandomHasherAction;
|