Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for wantFound (0.11 sec)

  1. src/os/exec/dot_test.go

    		found, err := LookPath("execabs-test")
    		if wantErrDot {
    			wantFound := filepath.Join(".", executable)
    			if found != wantFound || !errors.Is(err, ErrDot) {
    				t.Fatalf(`LookPath(%#q) = %#q, %v, want %#q, Is ErrDot`, "execabs-test", found, err, wantFound)
    			}
    		} else {
    			wantFound := filepath.Join(dir, executable)
    			if found != wantFound || err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 18:19:21 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  2. src/slices/sort_test.go

    				if pos != tt.wantPos || found != tt.wantFound {
    					t.Errorf("BinarySearch got (%v, %v), want (%v, %v)", pos, found, tt.wantPos, tt.wantFound)
    				}
    			}
    
    			{
    				pos, found := BinarySearchFunc(tt.data, tt.target, strings.Compare)
    				if pos != tt.wantPos || found != tt.wantFound {
    					t.Errorf("BinarySearchFunc got (%v, %v), want (%v, %v)", pos, found, tt.wantPos, tt.wantFound)
    				}
    			}
    		})
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 19:20:55 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. src/internal/syscall/windows/registry/registry_test.go

    	for _, n := range names {
    		haveNames[n] = false
    	}
    	for _, test := range ValueTests {
    		wantFound := !test.WillFail
    		_, haveFound := haveNames[test.Name]
    		if wantFound && !haveFound {
    			t.Errorf("value %s is not found while enumerating", test.Name)
    		}
    		if haveFound && !wantFound {
    			t.Errorf("value %s is found while enumerating, but expected to fail", test.Name)
    		}
    		if haveFound {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 19:19:00 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  4. pilot/pkg/model/config_test.go

    		{name: "foobar", found: false},
    	}
    
    	for _, c := range cases {
    		gotPort, gotFound := pl.Get(c.name)
    		if c.found != gotFound || !reflect.DeepEqual(gotPort, c.port) {
    			t.Errorf("Get() failed: gotFound=%v wantFound=%v\ngot %+vwant %+v",
    				gotFound, c.found, spew.Sdump(gotPort), spew.Sdump(c.port))
    		}
    	}
    }
    
    func TestSubsetKey(t *testing.T) {
    	hostname := host.Name("hostname")
    	cases := []struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 20 12:54:10 UTC 2023
    - 19K bytes
    - Viewed (0)
  5. cni/pkg/repair/repair_test.go

    			}, tt.wantLabels)
    			if tt.wantCount > 0 {
    				mt.Assert(podsRepaired.Name(), tt.wantTags, monitortest.Exactly(tt.wantCount))
    			}
    		})
    	}
    }
    
    func TestDeletePods(t *testing.T) {
    	tests := []struct {
    		name      string
    		client    kube.Client
    		config    config.RepairConfig
    		wantErr   bool
    		wantPods  []*corev1.Pod
    		wantCount float64
    		wantTags  map[string]string
    	}{
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 24 03:31:28 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/grpc_service_unix_test.go

    		operation   func()
    		labelValues []string
    		wantCount   uint64
    	}{
    		{
    			name: "encrypt",
    			operation: func() {
    				if _, err = service.Encrypt(ctx, "1", []byte("test data")); err != nil {
    					t.Fatalf("failed when execute encrypt, error: %v", err)
    				}
    			},
    			labelValues: []string{testProviderName, "/v2.KeyManagementService/Encrypt", "OK"},
    			wantCount:   1,
    		},
    		{
    			name: "decrypt",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 19:25:52 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  7. pkg/scheduler/schedule_one_test.go

    			// Checking default binding.
    			if wantBound := test.wantBinderID == -1; defaultBound != wantBound {
    				t.Errorf("got bound with default binding: %v, want %v", defaultBound, wantBound)
    			}
    
    			// Checking extenders binding.
    			for i, ext := range test.extenders {
    				wantBound := i == test.wantBinderID
    				if gotBound := ext.(*fakeExtender).gotBind; gotBound != wantBound {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
Back to top