- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for wantFound (0.18 sec)
-
operator/pkg/tpath/struct_test.go
if GotFound != tt.wantFound { t.Fatalf("GetFromStructPath(%s): gotFound:%v, wantFound:%v", tt.desc, GotFound, tt.wantFound) } if gotErr, wantErr := errToString(gotErr), tt.wantErr; gotErr != wantErr { t.Fatalf("GetFromStructPath(%s): gotErr:%s, wantErr:%s", tt.desc, gotErr, wantErr) } if tt.wantErr != "" || !tt.wantFound { return } gotYAML := util.ToYAML(GotOut)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 2.7K bytes - Viewed (0) -
src/sort/search_test.go
for x := 1; x <= size*2+1; x++ { var wantFound bool var wantPos int cmp := func(i int) int { // Encodes the unmaterialized sequence with elem[i] == (i+1)*2 return x - (i+1)*2 } pos, found := Find(size, cmp) if x%2 == 0 { wantPos = x/2 - 1 wantFound = true } else { wantPos = x / 2 wantFound = false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 07 14:42:13 UTC 2022 - 6.8K bytes - Viewed (0) -
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) -
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/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) -
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) -
test/maymorestack.go
var count uint32 //go:nosplit func mayMoreStack() { count++ } func main() { const wantCount = 128 anotherFunc(wantCount - 1) // -1 because the call to main already counted if count == 0 { panic("mayMoreStack not called") } else if count != wantCount { println(count, "!=", wantCount) panic("wrong number of calls to mayMoreStack") } } //go:noinline func anotherFunc(n int) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 05 00:52:06 UTC 2021 - 1.1K 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)