- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for wantFound (0.09 sec)
-
operator/pkg/tpath/tree_test.go
t.Fatalf("GetPathContext(%s): gotErr:%s, wantErr:%s", tt.desc, gotErr, wantErr) } if gotFound != tt.wantFound { t.Fatalf("GetPathContext(%s): gotFound:%v, wantFound:%v", tt.desc, gotFound, tt.wantFound) } if tt.wantErr != "" || !tt.wantFound { if tt.want != "" { t.Error("tt.want is set but never checked") } return }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 15.6K bytes - Viewed (0) -
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) -
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) -
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) -
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)