- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for checkValidState (0.05 sec)
-
android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java
entry.setValue(3); assertThat(cache.size()).isEqualTo(1); assertThat(cache.getIfPresent(1)).isEqualTo(3); checkValidState(cache); assertThrows(NullPointerException.class, () -> entry.setValue(null)); checkValidState(cache); } } /* ---------------- Local utilities -------------- */Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 22:03:28 UTC 2025 - 15.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/PopulatedCachesTest.java
entry.setValue(3); assertThat(cache.size()).isEqualTo(1); assertThat(cache.getIfPresent(1)).isEqualTo(3); checkValidState(cache); assertThrows(NullPointerException.class, () -> entry.setValue(null)); checkValidState(cache); } } /* ---------------- Local utilities -------------- */Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 22:03:28 UTC 2025 - 15.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheEvictionTest.java
for (int i = 0; i < 2 * MAX_SIZE; i++) { cache.getUnchecked(i); assertThat(cache.size()).isEqualTo(min(i + 1, MAX_SIZE)); } assertThat(cache.size()).isEqualTo(MAX_SIZE); CacheTesting.checkValidState(cache); } public void testEviction_maxWeightOneSegment() { IdentityLoader<Integer> loader = identityLoader(); LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder()
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:19:59 UTC 2025 - 15.1K bytes - Viewed (0)