- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestHeap_Add (0.2 sec)
-
pkg/scheduler/internal/heap/heap_test.go
if err != nil || prevNum > num { t.Errorf("got %v out of order, last was %v", obj, prevNum) } prevNum = num } } // Tests Heap.Add and ensures that heap invariant is preserved after adding items. func TestHeap_Add(t *testing.T) { h := New(testHeapObjectKeyFunc, compareInts) h.Add(mkHeapObj("foo", 10)) h.Add(mkHeapObj("bar", 1)) h.Add(mkHeapObj("baz", 11)) h.Add(mkHeapObj("zab", 30))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 05 02:24:38 UTC 2023 - 7.9K bytes - Viewed (0)