- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for testCompute (0.05 seconds)
-
guava-tests/test/com/google/common/cache/LocalCacheMapComputeTest.java
doParallelCacheOp( count, n -> cache.asMap().compute(key, (k, v) -> n % 2 == 0 ? v + delimiter + n : null)); assertThat(cache.size()).isAtMost(1); } public void testCompute() { cache.put(key, "1"); // simultaneous deletion doParallelCacheOp(count, n -> cache.asMap().compute(key, (k, v) -> null)); assertThat(cache.size()).isEqualTo(0); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 6.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/LocalCacheTest.java
.isEqualTo(EntryFactory.WEAK_WRITE); assertThat(EntryFactory.getFactory(Strength.WEAK, true, true)) .isEqualTo(EntryFactory.WEAK_ACCESS_WRITE); } // computation tests public void testCompute() throws ExecutionException { CountingLoader loader = new CountingLoader(); LocalCache<Object, Object> map = makeLocalCache(createCacheBuilder()); assertThat(loader.getCount()).isEqualTo(0);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 114.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/LocalCacheTest.java
.isEqualTo(EntryFactory.WEAK_WRITE); assertThat(EntryFactory.getFactory(Strength.WEAK, true, true)) .isEqualTo(EntryFactory.WEAK_ACCESS_WRITE); } // computation tests public void testCompute() throws ExecutionException { CountingLoader loader = new CountingLoader(); LocalCache<Object, Object> map = makeLocalCache(createCacheBuilder()); assertThat(loader.getCount()).isEqualTo(0);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 116.4K bytes - Click Count (0)