Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for TestIndex (0.32 sec)

  1. src/cmd/internal/test2json/testdata/framebig.json

    {"Action":"start"}
    {"Action":"run","Test":"TestIndex"}
    {"Action":"output","Test":"TestIndex","Output":"=== RUN   TestIndex\n"}
    {"Action":"output","Test":"TestIndex","Output":"--- PASS: TestIndex (0.00s)\n"}
    {"Action":"pass","Test":"TestIndex"}
    {"Action":"pass","Test":"TestIndex"}
    {"Action":"output","Test":"TestIndex","Output":"=== PASS  TestIndex\n"}
    {"Action":"run","Test":"TestLastIndex"}
    {"Action":"output","Test":"TestLastIndex","Output":"=== RUN   TestLastIndex\n"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 12.2K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modindex/index_test.go

    	"internal/diff"
    	"path/filepath"
    	"reflect"
    	"runtime"
    	"testing"
    )
    
    func init() {
    	isTest = true
    	enabled = true // to allow GODEBUG=goindex=0 go test, when things are very broken
    }
    
    func TestIndex(t *testing.T) {
    	src := filepath.Join(runtime.GOROOT(), "src")
    	checkPkg := func(t *testing.T, m *Module, pkg string, data []byte) {
    		p := m.Package(pkg)
    		bp, err := p.Import(build.Default, build.ImportComment)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 28 23:35:08 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  3. src/index/suffixarray/suffixarray_test.go

    		testLookups(t, &tc, x, 2e9)
    		testLookups(t, &tc, x, -1)
    	}
    }
    
    func TestIndex32(t *testing.T) {
    	testIndex(t)
    }
    
    func TestIndex64(t *testing.T) {
    	maxData32 = -1
    	defer func() {
    		maxData32 = realMaxData32
    	}()
    	testIndex(t)
    }
    
    func TestNew32(t *testing.T) {
    	test(t, func(x []byte) []int {
    		sa := make([]int32, len(x))
    		text_32(x, sa)
    		out := make([]int, len(sa))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. pkg/kube/krt/index_test.go

    	"istio.io/istio/pkg/kube/kclient/clienttest"
    	"istio.io/istio/pkg/kube/krt"
    	"istio.io/istio/pkg/ptr"
    	"istio.io/istio/pkg/slices"
    	"istio.io/istio/pkg/test"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestIndex(t *testing.T) {
    	c := kube.NewFakeClient()
    	kpc := kclient.New[*corev1.Pod](c)
    	pc := clienttest.Wrap(t, kpc)
    	pods := krt.WrapClient[*corev1.Pod](kpc)
    	stop := test.NewStop(t)
    	c.RunAndWait(stop)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 19:55:53 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/util/workloadinstances/index_test.go

    		},
    		WorkloadSelector: &networking.WorkloadSelector{
    			Labels: map[string]string{"app": "wle"},
    		},
    		Resolution: networking.ServiceEntry_STATIC,
    	},
    }
    
    func TestIndex(t *testing.T) {
    	// Setup a couple of workload instances for test
    	wi1 := &model.WorkloadInstance{
    		Name:      selector.Name,
    		Namespace: selector.Namespace,
    		Endpoint: &model.IstioEndpoint{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. src/net/http/routing_index_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package http
    
    import (
    	"fmt"
    	"slices"
    	"strings"
    	"testing"
    )
    
    func TestIndex(t *testing.T) {
    	// Generate every kind of pattern up to some number of segments,
    	// and compare conflicts found during indexing with those found
    	// by exhaustive comparison.
    	patterns := generatePatterns()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. pkg/kube/kclient/index_test.go

    	"istio.io/istio/pkg/test"
    	"istio.io/istio/pkg/test/util/assert"
    	"istio.io/istio/pkg/test/util/retry"
    )
    
    type SaNode struct {
    	ServiceAccount types.NamespacedName
    	Node           string
    }
    
    func TestIndex(t *testing.T) {
    	c := kube.NewFakeClient()
    	pods := New[*corev1.Pod](c)
    	c.RunAndWait(test.NewStop(t))
    	index := CreateIndex[SaNode, *corev1.Pod](pods, func(pod *corev1.Pod) []SaNode {
    		if len(pod.Spec.NodeName) == 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 04 03:49:30 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  8. plugin/pkg/auth/authorizer/node/graph_test.go

    			})
    			assert.Equal(t, expectEdges, startEdges)
    
    			// vertices is a recursive map, no need to sort
    			assert.Equal(t, c.expect.vertices, c.start.vertices)
    		})
    	}
    }
    
    func TestIndex(t *testing.T) {
    	g := NewGraph()
    	g.destinationEdgeThreshold = 3
    
    	a := NewAuthorizer(g, nil, nil)
    
    	addPod := func(podNumber, nodeNumber int) {
    		t.Helper()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 23 23:14:19 UTC 2022
    - 12.3K bytes
    - Viewed (0)
  9. src/syscall/js/js_test.go

    	if dummys.Call("hasOwnProperty", "test").Bool() {
    		t.Errorf("property still exists")
    	}
    
    	expectValueError(t, func() {
    		dummys.Get("zero").Delete("badField")
    	})
    }
    
    func TestIndex(t *testing.T) {
    	if got := dummys.Get("someArray").Index(1).Int(); got != 42 {
    		t.Errorf("got %#v, want %#v", got, 42)
    	}
    
    	expectValueError(t, func() {
    		dummys.Get("zero").Index(1)
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  10. src/slices/slices_test.go

    		0,
    		-1,
    	},
    	{
    		[]int{1, 2, 3},
    		2,
    		1,
    	},
    	{
    		[]int{1, 2, 2, 3},
    		2,
    		1,
    	},
    	{
    		[]int{1, 2, 3, 2},
    		2,
    		1,
    	},
    }
    
    func TestIndex(t *testing.T) {
    	for _, test := range indexTests {
    		if got := Index(test.s, test.v); got != test.want {
    			t.Errorf("Index(%v, %v) = %d, want %d", test.s, test.v, got, test.want)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:06 UTC 2024
    - 33.2K bytes
    - Viewed (0)
Back to top