/external/guava/android/guava-tests/test/com/google/common/hash/ |
D | HashingTest.java | 50 HashTestUtils.checkAvalanche(Hashing.md5(), 100, 0.4); in testMd5() 51 HashTestUtils.checkNo2BitCharacteristics(Hashing.md5()); in testMd5() 52 HashTestUtils.checkNoFunnels(Hashing.md5()); in testMd5() 53 HashTestUtils.assertInvariants(Hashing.md5()); in testMd5() 58 HashTestUtils.checkAvalanche(Hashing.sha1(), 100, 0.4); in testSha1() 59 HashTestUtils.checkNo2BitCharacteristics(Hashing.sha1()); in testSha1() 60 HashTestUtils.checkNoFunnels(Hashing.sha1()); in testSha1() 61 HashTestUtils.assertInvariants(Hashing.sha1()); in testSha1() 66 HashTestUtils.checkAvalanche(Hashing.sha256(), 100, 0.4); in testSha256() 67 HashTestUtils.checkNo2BitCharacteristics(Hashing.sha256()); in testSha256() [all …]
|
D | AbstractNonStreamingHashFunctionTest.java | 20 import com.google.common.hash.HashTestUtils.RandomHasherAction; 57 assertPutString(new char[] {'p', HashTestUtils.randomLowSurrogate(new Random())}); in testPutStringWithLowSurrogate() 63 assertPutString(new char[] {'p', HashTestUtils.randomHighSurrogate(new Random())}); in testPutStringWithHighSurrogate() 69 HashTestUtils.randomLowSurrogate(new Random()), in testPutStringWithLowHighSurrogate() 70 HashTestUtils.randomHighSurrogate(new Random()) in testPutStringWithLowHighSurrogate() 77 HashTestUtils.randomHighSurrogate(new Random()), in testPutStringWithHighLowSurrogate() 78 HashTestUtils.randomLowSurrogate(new Random()) in testPutStringWithHighLowSurrogate()
|
D | Murmur3Hash128Test.java | 22 import com.google.common.hash.HashTestUtils.HashFn; 49 byte[] input = HashTestUtils.ascii(stringInput); in assertHash() 75 HashTestUtils.verifyHashFunction(hf, 128, 0x6384BA69); in testParanoid() 79 HashTestUtils.assertInvariants(murmur3_128()); in testInvariants()
|
D | Murmur3Hash32Test.java | 22 import com.google.common.hash.HashTestUtils.HashFn; 111 HashTestUtils.verifyHashFunction(hf, 32, 0xB0F57EE3); in testParanoidHashBytes() 126 HashTestUtils.verifyHashFunction(hf, 32, 0xB0F57EE3); in testParanoid() 130 HashTestUtils.assertInvariants(murmur3_32()); in testInvariants()
|
D | ChecksumHashFunctionTest.java | 65 byte[] bytes = HashTestUtils.ascii(input); in assertChecksum() 79 byte[] bytes = HashTestUtils.ascii(input); in assertHash32()
|
D | MessageDigestHashFunctionTest.java | 55 assertMessageDigestHashing(HashTestUtils.ascii(stringToTest), algorithmToTest); in testHashing()
|
D | BloomFilterTest.java | 218 checkSanity(BloomFilter.create(HashTestUtils.BAD_FUNNEL, expectedInsertions, fpr)); in testBasic() 294 BloomFilter.create(HashTestUtils.BAD_FUNNEL, Integer.MAX_VALUE, Double.MIN_VALUE); in testOptimalSize() 330 BloomFilter<Object> bf = BloomFilter.create(HashTestUtils.BAD_FUNNEL, 10, 0.03); in testExpectedFpp()
|
D | AbstractStreamingHasherTest.java | 23 import com.google.common.hash.HashTestUtils.RandomHasherAction;
|
D | HashTestUtils.java | 41 final class HashTestUtils { class 42 private HashTestUtils() {} in HashTestUtils() method in HashTestUtils
|
D | MacHashFunctionTest.java | 75 assertMacHashing(HashTestUtils.ascii(stringToTest), algorithm, key, hashFunc); in testHashing()
|
/external/guava/guava-tests/test/com/google/common/hash/ |
D | HashingTest.java | 50 HashTestUtils.checkAvalanche(Hashing.md5(), 100, 0.4); in testMd5() 51 HashTestUtils.checkNo2BitCharacteristics(Hashing.md5()); in testMd5() 52 HashTestUtils.checkNoFunnels(Hashing.md5()); in testMd5() 53 HashTestUtils.assertInvariants(Hashing.md5()); in testMd5() 58 HashTestUtils.checkAvalanche(Hashing.sha1(), 100, 0.4); in testSha1() 59 HashTestUtils.checkNo2BitCharacteristics(Hashing.sha1()); in testSha1() 60 HashTestUtils.checkNoFunnels(Hashing.sha1()); in testSha1() 61 HashTestUtils.assertInvariants(Hashing.sha1()); in testSha1() 66 HashTestUtils.checkAvalanche(Hashing.sha256(), 100, 0.4); in testSha256() 67 HashTestUtils.checkNo2BitCharacteristics(Hashing.sha256()); in testSha256() [all …]
|
D | AbstractNonStreamingHashFunctionTest.java | 20 import com.google.common.hash.HashTestUtils.RandomHasherAction; 57 assertPutString(new char[] {'p', HashTestUtils.randomLowSurrogate(new Random())}); in testPutStringWithLowSurrogate() 63 assertPutString(new char[] {'p', HashTestUtils.randomHighSurrogate(new Random())}); in testPutStringWithHighSurrogate() 69 HashTestUtils.randomLowSurrogate(new Random()), in testPutStringWithLowHighSurrogate() 70 HashTestUtils.randomHighSurrogate(new Random()) in testPutStringWithLowHighSurrogate() 77 HashTestUtils.randomHighSurrogate(new Random()), in testPutStringWithHighLowSurrogate() 78 HashTestUtils.randomLowSurrogate(new Random()) in testPutStringWithHighLowSurrogate()
|
D | Murmur3Hash128Test.java | 22 import com.google.common.hash.HashTestUtils.HashFn; 49 byte[] input = HashTestUtils.ascii(stringInput); in assertHash() 75 HashTestUtils.verifyHashFunction(hf, 128, 0x6384BA69); in testParanoid() 79 HashTestUtils.assertInvariants(murmur3_128()); in testInvariants()
|
D | Murmur3Hash32Test.java | 22 import com.google.common.hash.HashTestUtils.HashFn; 111 HashTestUtils.verifyHashFunction(hf, 32, 0xB0F57EE3); in testParanoidHashBytes() 126 HashTestUtils.verifyHashFunction(hf, 32, 0xB0F57EE3); in testParanoid() 130 HashTestUtils.assertInvariants(murmur3_32()); in testInvariants()
|
D | ChecksumHashFunctionTest.java | 65 byte[] bytes = HashTestUtils.ascii(input); in assertChecksum() 79 byte[] bytes = HashTestUtils.ascii(input); in assertHash32()
|
D | MessageDigestHashFunctionTest.java | 55 assertMessageDigestHashing(HashTestUtils.ascii(stringToTest), algorithmToTest); in testHashing()
|
D | BloomFilterTest.java | 219 checkSanity(BloomFilter.create(HashTestUtils.BAD_FUNNEL, expectedInsertions, fpr)); in testBasic() 295 BloomFilter.create(HashTestUtils.BAD_FUNNEL, Integer.MAX_VALUE, Double.MIN_VALUE); in testOptimalSize() 331 BloomFilter<Object> bf = BloomFilter.create(HashTestUtils.BAD_FUNNEL, 10, 0.03); in testExpectedFpp()
|
D | AbstractStreamingHasherTest.java | 23 import com.google.common.hash.HashTestUtils.RandomHasherAction;
|
D | HashTestUtils.java | 41 final class HashTestUtils { class 42 private HashTestUtils() {} in HashTestUtils() method in HashTestUtils
|
D | MacHashFunctionTest.java | 75 assertMacHashing(HashTestUtils.ascii(stringToTest), algorithm, key, hashFunc); in testHashing()
|