- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 29 for popHead (0.27 sec)
-
platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/platform/JUnitPlatformUserGuideIntegrationTest.groovy
@Test @DisplayName("is empty") void isEmpty() { assertTrue(stack.isEmpty()); } @Test @DisplayName("throws EmptyStackException when popped") void throwsExceptionWhenPopped() { assertThrows(EmptyStackException.class, () -> stack.pop()); } @Nested @DisplayName("after pushing an element")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 20:52:40 UTC 2023 - 12.7K bytes - Viewed (0) -
pkg/scheduler/internal/queue/scheduling_queue_test.go
// Simulate a pod being popped by the scheduler, // At this time, unschedulable pod should be popped. p1, err := q.Pop(logger) if err != nil { t.Errorf("Error while popping the head of the queue: %v", err) } if p1.Pod != unschedulablePod { t.Errorf("Expected that test-pod-unscheduled was popped, got %v", p1.Pod.Name) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 146.9K bytes - Viewed (0) -
pkg/scheduler/internal/heap/heap_test.go
// Retrieve head without removing it head := h.Peek() if e, a := i, head.(testHeapObject).val; a != e { t.Errorf("expected %d, got %d", e, a) } } // Make sure that the numbers are popped in ascending order. prevNum := 0 for i := 0; i < amount; i++ { obj, err := h.Pop() num := obj.(testHeapObject).val.(int) // All the items must be sorted. if err != nil || prevNum > num {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 05 02:24:38 UTC 2023 - 7.9K bytes - Viewed (0) -
src/go/ast/commentmap.go
s.pop(n.Pos()) *s = append((*s), n) } // pop pops all nodes that appear lexically before pos // (i.e., whose lexical extent has ended before or at pos). // It returns the last node popped. func (s *nodeStack) pop(pos token.Pos) (top Node) { i := len(*s) for i > 0 && (*s)[i-1].End() <= pos { top = (*s)[i-1] i-- } *s = (*s)[0:i] return top }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8.9K bytes - Viewed (0) -
pkg/scheduler/internal/queue/scheduling_queue.go
// are popped from this heap before the scheduler looks at activeQ podBackoffQ *heap.Heap // unschedulablePods holds pods that have been tried and determined unschedulable. unschedulablePods *UnschedulablePods // schedulingCycle represents sequence number of scheduling cycle and is incremented // when a pod is popped. schedulingCycle int64
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 61.4K bytes - Viewed (0) -
src/runtime/mgcstack.go
// will not keep heap objects live. Unlike the main garbage // collection, we can't sweep the dead stack objects; they live on in // a moribund state until the stack frame that contains them is // popped. // // A stack can look like this: // // +----------+ // | foo() | // | +------+ | // | | A | | <---\ // | +------+ | | // | | | // | +------+ | | // | | B | | |
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 21 21:06:52 UTC 2023 - 10.6K bytes - Viewed (0) -
src/cmd/compile/internal/wasm/ssa.go
- restore local SP from global SP - pop int32 from top of Wasm stack. If nonzero, exit function immediately. - use results from Go stack (starting at SP+sizeof(args)) - note that the callee will have popped the return address Prologue: - initialize local SP from global SP - jump to the location indicated by the block ID argument (which appears in local variable 0) - at block 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 00:21:13 UTC 2023 - 17.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/cache_watcher_test.go
go w.processInterval(ctx, intervalFromEvents(initEvents), 0) watchInitializationSignal.Wait() // note that we can add three events even though the chanSize is two because // one event has been popped off from the input chan if !w.add(&watchCacheEvent{Object: makePod(5), ResourceVersion: 5}, time.NewTimer(1*time.Second)) { t.Fatal("failed adding an even to the watcher") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 09:20:10 UTC 2024 - 22.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/arch/x86/x86asm/gnu.go
IRETQ: "iretq", LODSB: "lods", LODSD: "lods", LODSQ: "lods", LODSW: "lods", MOVSD: "movsl", MOVSD_XMM: "movsd", OUTSD: "outsl", POPA: "popaw", POPAD: "popa", POPF: "popfw", POPFD: "popf", PUSHA: "pushaw", PUSHAD: "pusha", PUSHF: "pushfw", PUSHFD: "pushf", SCASB: "scas", SCASD: "scas", SCASQ: "scas",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 21.4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/decl.go
// A dependency on a grey object indicates a cycle which may or may not be // valid. // // When objects turn grey, they are pushed on the object path (a stack); // they are popped again when they turn black. Thus, if a grey object (a // cycle) is encountered, it is on the object path, and all the objects // it depends on are the remaining objects on that path. Color encoding
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 29.6K bytes - Viewed (0)