- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for assertInvariants (0.06 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
} catch (NullPointerException optional) { } } assertInvariants(map); } public void testEntrySet() { Map<K, V> map; try { map = makePopulatedMap(); } catch (UnsupportedOperationException e) { return; } assertInvariants(map); Set<Entry<K, V>> entrySet = map.entrySet(); K unmappedKey; V unmappedValue;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 43.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/HashingTest.java
HashTestUtils.assertInvariants(Hashing.sha512()); assertEquals("Hashing.sha512()", Hashing.sha512().toString()); } public void testCrc32() { HashTestUtils.assertInvariants(Hashing.crc32()); assertEquals("Hashing.crc32()", Hashing.crc32().toString()); } public void testAdler32() { HashTestUtils.assertInvariants(Hashing.adler32());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 26.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/HashingTest.java
HashTestUtils.assertInvariants(Hashing.sha512()); assertEquals("Hashing.sha512()", Hashing.sha512().toString()); } public void testCrc32() { HashTestUtils.assertInvariants(Hashing.crc32()); assertEquals("Hashing.crc32()", Hashing.crc32().toString()); } public void testAdler32() { HashTestUtils.assertInvariants(Hashing.adler32());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 26.4K bytes - Viewed (2) -
android/guava-tests/test/com/google/common/collect/TableCollectionTest.java
assertEquals(initialSize - 1, map.size()); } else { assertThrows(UnsupportedOperationException.class, () -> map.remove(keyToRemove)); } assertInvariants(map); } } abstract static class RowMapTests extends MapMapTests { RowMapTests( boolean allowsNullValues, boolean supportsRemove, boolean supportsClear,
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 35.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/HashTestUtils.java
} } } } /** * Checks that a Hasher returns the same HashCode when given the same input, and also that the * collision rate looks sane. */ static void assertInvariants(HashFunction hashFunction) { int objects = 100; Set<HashCode> hashcodes = Sets.newHashSetWithExpectedSize(objects); Random random = new Random(314159); for (int i = 0; i < objects; i++) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 25.6K bytes - Viewed (0)