- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for checkempty (0.17 sec)
-
android/guava-tests/test/com/google/common/cache/NullCacheTest.java
* or implied. See the License for the specific language governing permissions and limitations under * the License. */ package com.google.common.cache; import static com.google.common.cache.CacheTesting.checkEmpty; import static com.google.common.cache.TestingCacheLoaders.constantLoader; import static com.google.common.cache.TestingCacheLoaders.exceptionLoader;
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 4.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/NullCacheTest.java
* or implied. See the License for the specific language governing permissions and limitations under * the License. */ package com.google.common.cache; import static com.google.common.cache.CacheTesting.checkEmpty; import static com.google.common.cache.TestingCacheLoaders.constantLoader; import static com.google.common.cache.TestingCacheLoaders.exceptionLoader;
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 4.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/PopulatedCachesTest.java
assertTrue(keys.contains(key)); assertTrue(keys.remove(key)); assertFalse(keys.remove(key)); assertFalse(keys.contains(key)); } checkEmpty(keys); checkEmpty(cache); } } public void testValues_populated() { for (LoadingCache<Object, Object> cache : caches()) { Collection<Object> values = cache.asMap().values();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 15K bytes - Viewed (0) -
src/runtime/mgcwork.go
// make wbufs available to the GC. func (b *workbuf) checknonempty() { if b.nobj == 0 { throw("workbuf is empty") } } func (b *workbuf) checkempty() { if b.nobj != 0 { throw("workbuf is not empty") } } // getempty pops an empty work buffer off the work.empty list, // allocating new buffers if none are available. // //go:nowritebarrier
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 12.9K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/poset_test.go
} if false { po.DotDump(fmt.Sprintf("op%d.dot", idx), fmt.Sprintf("Last op: %v", op)) } po.CheckIntegrity() } // Check that the poset is completely empty if err := po.CheckEmpty(); err != nil { t.Error(err) } } func TestPoset(t *testing.T) { testPosetOps(t, false, []posetTestOp{ {Ordered_Fail, 123, 124}, // Dag #0: 100<101 {Checkpoint, 0, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Oct 26 07:52:35 UTC 2019 - 18.1K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/poset.go
panic(fmt.Errorf("self-loop on node %d", i)) } } } } // CheckEmpty checks that a poset is completely empty. // It can be used for debugging purposes, as a poset is supposed to // be empty after it's fully rolled back through Undo. func (po *poset) CheckEmpty() error { if len(po.nodes) != 1 { return fmt.Errorf("non-empty nodes list: %v", po.nodes) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 04 17:23:05 UTC 2023 - 37.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java
assertEquals(0, nullCache.size()); Object key = new Object(); assertSame(key, nullCache.getUnchecked(key)); assertEquals(1, listener.getCount()); assertEquals(0, nullCache.size()); CacheTesting.checkEmpty(nullCache.asMap()); } @GwtIncompatible // QueuingRemovalListener public void testRemovalNotification_clear() throws InterruptedException {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Oct 03 20:10:02 UTC 2023 - 23.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java
} catch (Exception e) { AssertionFailedError afe = new AssertionFailedError("Unexpected exception: " + e); afe.initCause(e); throw afe; } } } void checkEmpty(BlockingQueue<?> q) { try { assertTrue(q.isEmpty()); assertEquals(0, q.size()); assertNull(q.peek()); assertNull(q.poll()); assertNull(q.poll(0, MILLISECONDS));
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Jun 10 19:21:11 UTC 2024 - 37.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java
} catch (Exception e) { AssertionFailedError afe = new AssertionFailedError("Unexpected exception: " + e); afe.initCause(e); throw afe; } } } void checkEmpty(BlockingQueue<?> q) { try { assertTrue(q.isEmpty()); assertEquals(0, q.size()); assertNull(q.peek()); assertNull(q.poll()); assertNull(q.poll(0, MILLISECONDS));
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 17:15:24 UTC 2024 - 37.7K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/prove.go
for _, po := range []*poset{ft.orderS, ft.orderU} { // Make sure it's empty as it should be. A non-empty poset // might cause errors and miscompilations if reused. if checkEnabled { if err := po.CheckEmpty(); err != nil { f.Fatalf("poset not empty after function %s: %v", f.Name, err) } } f.retPoset(po) } } // prove removes redundant BlockIf branches that can be inferred
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:30:21 UTC 2024 - 48.9K bytes - Viewed (0)