Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for makeBatchCursor (0.29 sec)

  1. src/internal/trace/batchcursor_test.go

    )
    
    func TestHeap(t *testing.T) {
    	var heap []*batchCursor
    
    	// Insert a bunch of values into the heap.
    	checkHeap(t, heap)
    	heap = heapInsert(heap, makeBatchCursor(5))
    	checkHeap(t, heap)
    	for i := int64(-20); i < 20; i++ {
    		heap = heapInsert(heap, makeBatchCursor(i))
    		checkHeap(t, heap)
    	}
    
    	// Update an element in the middle to be the new minimum.
    	for i := range heap {
    		if heap[i].ev.time == 5 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top