Home
last modified time | relevance | path

Searched refs:HashTestUtils (Results 1 – 20 of 20) sorted by relevance

/external/guava/android/guava-tests/test/com/google/common/hash/
DHashingTest.java50 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 …]
DAbstractNonStreamingHashFunctionTest.java20 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()
DMurmur3Hash128Test.java22 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()
DMurmur3Hash32Test.java22 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()
DChecksumHashFunctionTest.java65 byte[] bytes = HashTestUtils.ascii(input); in assertChecksum()
79 byte[] bytes = HashTestUtils.ascii(input); in assertHash32()
DMessageDigestHashFunctionTest.java55 assertMessageDigestHashing(HashTestUtils.ascii(stringToTest), algorithmToTest); in testHashing()
DBloomFilterTest.java218 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()
DAbstractStreamingHasherTest.java23 import com.google.common.hash.HashTestUtils.RandomHasherAction;
DHashTestUtils.java41 final class HashTestUtils { class
42 private HashTestUtils() {} in HashTestUtils() method in HashTestUtils
DMacHashFunctionTest.java75 assertMacHashing(HashTestUtils.ascii(stringToTest), algorithm, key, hashFunc); in testHashing()
/external/guava/guava-tests/test/com/google/common/hash/
DHashingTest.java50 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 …]
DAbstractNonStreamingHashFunctionTest.java20 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()
DMurmur3Hash128Test.java22 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()
DMurmur3Hash32Test.java22 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()
DChecksumHashFunctionTest.java65 byte[] bytes = HashTestUtils.ascii(input); in assertChecksum()
79 byte[] bytes = HashTestUtils.ascii(input); in assertHash32()
DMessageDigestHashFunctionTest.java55 assertMessageDigestHashing(HashTestUtils.ascii(stringToTest), algorithmToTest); in testHashing()
DBloomFilterTest.java219 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()
DAbstractStreamingHasherTest.java23 import com.google.common.hash.HashTestUtils.RandomHasherAction;
DHashTestUtils.java41 final class HashTestUtils { class
42 private HashTestUtils() {} in HashTestUtils() method in HashTestUtils
DMacHashFunctionTest.java75 assertMacHashing(HashTestUtils.ascii(stringToTest), algorithm, key, hashFunc); in testHashing()