- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for gotObjs (0.18 sec)
-
src/cmd/compile/internal/types2/api_test.go
// Assert that declarations were type checked nonetheless. var gotObjs []string for id, obj := range info.Defs { if obj != nil { objStr := strings.ReplaceAll(fmt.Sprintf("%s:%T", id.Value, obj), "types2", "types") gotObjs = append(gotObjs, objStr) } } wantObjs := "f:*types.Func" if !strings.Contains(fmt.Sprint(gotObjs), wantObjs) { t.Errorf("%q: got %s, want substring %q",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 93.3K bytes - Viewed (0) -
src/go/types/api_test.go
// Assert that declarations were type checked nonetheless. var gotObjs []string for id, obj := range info.Defs { if obj != nil { objStr := strings.ReplaceAll(fmt.Sprintf("%s:%T", id.Name, obj), "types2", "types") gotObjs = append(gotObjs, objStr) } } wantObjs := "f:*types.Func" if !strings.Contains(fmt.Sprint(gotObjs), wantObjs) { t.Errorf("%q: got %s, want substring %q",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 94.2K bytes - Viewed (0) -
cmd/metacache-stream_test.go
func Test_metacacheReader_next(t *testing.T) { r := loadMetacacheSample(t) defer r.Close() for i, want := range loadMetacacheSampleNames { gotObj, err := r.next() if err != nil { t.Fatal(err) } if gotObj.name != want { t.Errorf("entry %d, want %q, got %q", i, want, gotObj.name) } } } func Test_metacacheReader_peek(t *testing.T) { r := loadMetacacheSample(t) defer r.Close()
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 15K bytes - Viewed (0) -
cmd/erasure-sets_test.go
} // Tests hashing order to be consistent. for i, testCase := range testCases { gotObj := sets.getHashedSet(testCase.objectName) if gotObj != testCase.expectedObj { t.Errorf("Test case %d: Expected \"%#v\" but failed \"%#v\"", i+1, testCase.expectedObj, gotObj) } }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Feb 12 07:21:56 UTC 2024 - 6.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/watch_test.go
t.Fatalf("Unexpected error: %v", err) } if got.Type != action { t.Errorf("Unexpected type: %v", got.Type) } gotObj, err := runtime.Decode(codec, got.Object) if err != nil { t.Fatalf("Decode error: %v\n%v", err, got) } if e, a := object, gotObj; !reflect.DeepEqual(e, a) { t.Errorf("Expected %#v, got %#v", e, a) } } for _, item := range watchTestTable {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 30 17:27:39 UTC 2023 - 30K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/etcd_test.go
} fetchObject := func(name string) (*unstructured.Unstructured, error) { gotObj, err := storage.CustomResource.Get(ctx, name, &metav1.GetOptions{}) if err != nil { return nil, fmt.Errorf("error fetching custom resource %s: %v", name, err) } return gotObj.(*unstructured.Unstructured), nil } applyPatch := func(labelName, labelValue string) rest.TransformFunc {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 19:06:46 UTC 2024 - 25.2K bytes - Viewed (0) -
src/os/exec/lp_windows_test.go
out, err := cmd.Output() if err == nil { gotAbs := strings.TrimSpace(string(out)) wantAbs := "" if tt.want != "" { wantAbs = filepath.Join(root, tt.want) } if gotAbs != wantAbs { // cmd.exe disagrees. Probably the test case is wrong? t.Fatalf("%v\n\tresolved to %s\n\twant %s", cmd, gotAbs, wantAbs) } } else if tt.wantErr == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 13 19:38:12 UTC 2023 - 16.3K bytes - Viewed (0) -
operator/pkg/object/objects_test.go
gotK8sObjs, err := ParseK8sObjectsFromYAMLManifest(testManifestYaml) if err != nil { gotK8sObjsMap := gotK8sObjs.ToMap() for objHash, want := range tt.objsMap { if gotObj, ok := gotK8sObjsMap[objHash]; ok { gotObjYaml := gotObj.YAMLDebugString() if !util.IsYAMLEqual(gotObjYaml, want) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Sep 21 07:16:46 UTC 2023 - 18.4K bytes - Viewed (0)