Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestHeap (0.1 sec)

  1. src/cmd/link/internal/ld/heap_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package ld
    
    import (
    	"cmd/link/internal/loader"
    	"testing"
    )
    
    func TestHeap(t *testing.T) {
    	tests := [][]loader.Sym{
    		{10, 20, 30, 40, 50, 60, 70, 80, 90, 100},
    		{100, 90, 80, 70, 60, 50, 40, 30, 20, 10},
    		{30, 50, 80, 20, 60, 70, 10, 100, 90, 40},
    	}
    	for _, s := range tests {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 04 19:13:42 UTC 2020
    - 1.9K bytes
    - Viewed (0)
  2. src/internal/trace/batchcursor_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package trace
    
    import (
    	"fmt"
    	"strings"
    	"testing"
    
    	"slices"
    )
    
    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++ {
    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