- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 684 for want (0.05 sec)
-
src/bufio/bufio_test.go
} } } func TestReaderSize(t *testing.T) { if got, want := NewReader(nil).Size(), DefaultBufSize; got != want { t.Errorf("NewReader's Reader.Size = %d; want %d", got, want) } if got, want := NewReaderSize(nil, 1234).Size(), 1234; got != want { t.Errorf("NewReaderSize's Reader.Size = %d; want %d", got, want) } }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Nov 01 21:52:12 UTC 2024 - 51.6K bytes - Viewed (0) -
src/archive/tar/tar_test.go
} if got, want := h2.Uname, v.h.Uname; got != want { t.Errorf("i=%d: Uname: got %q, want %q", i, got, want) } if got, want := h2.Gname, v.h.Gname; got != want { t.Errorf("i=%d: Gname: got %q, want %q", i, got, want) } if got, want := h2.Linkname, v.h.Linkname; got != want { t.Errorf("i=%d: Linkname: got %v, want %v", i, got, want) }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Jul 25 00:25:45 UTC 2024 - 23.9K bytes - Viewed (0) -
cmd/data-usage_test.go
t.Error("lastupdate not set") } if !want.Info.LastUpdate.Equal(got.Info.LastUpdate) { t.Fatalf("deserialize LastUpdate mismatch\nwant: %+v\ngot: %+v", want, got) } if len(want.Cache) != len(got.Cache) { t.Errorf("deserialize mismatch length\nwant: %+v\ngot: %+v", len(want.Cache), len(got.Cache)) } for wkey, wval := range want.Cache { gotv := got.Cache[wkey] if !equalAsJSON(gotv, wval) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Oct 04 22:23:33 UTC 2024 - 14.7K bytes - Viewed (0) -
cmd/kms-handlers_test.go
for i, want := range keys { if want.CreatedBy != kms.StubCreatedBy { t.Fatalf("want key created by %s, got %s", kms.StubCreatedBy, want.CreatedBy) } if want.CreatedAt != kms.StubCreatedAt { t.Fatalf("want key created at %s, got %s", kms.StubCreatedAt, want.CreatedAt) } if test.wantKeyNames[i] != want.Name { t.Fatalf("want key name %s, got %s", test.wantKeyNames[i], want.Name) } } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Aug 18 06:43:03 UTC 2024 - 22.3K bytes - Viewed (0) -
internal/arn/arn_test.go
Region: "us-east-1", ResourceType: "role", ResourceID: "my-role", }, want: "arn:minio::us-east-1::role/my-role", }, } for _, tt := range tests { t.Run(tt.want, func(t *testing.T) { if got := tt.arn.String(); got != tt.want { t.Errorf("ARN.String() = %v, want %v", got, tt.want) } }) } } func TestNewIAMRoleARN(t *testing.T) { type args struct { resourceID string
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Apr 04 08:31:34 UTC 2024 - 5.1K bytes - Viewed (0) -
istioctl/pkg/multicluster/remote_secret_test.go
objs: []runtime.Object{kubeSystemNamespace, sa, saSecret}, name: "cluster-foo", want: "cal-want", }, { testName: "success with type defined", objs: []runtime.Object{kubeSystemNamespace, sa, saSecret}, name: "cluster-foo", secType: "config", want: "cal-want", }, { testName: "failure due to multiple secrets",
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 24 17:36:49 UTC 2024 - 20.7K bytes - Viewed (0) -
internal/pubsub/pubsub_test.go
t.Fatalf("expected 2 subscribers") } if want, got := int32(2), ps.NumSubscribers(Mask(1)); got != want { t.Fatalf("want %d subscribers, got %d", want, got) } if want, got := int32(2), ps.NumSubscribers(Mask(2)); got != want { t.Fatalf("want %d subscribers, got %d", want, got) } if want, got := int32(2), ps.NumSubscribers(Mask(1|2)); got != want { t.Fatalf("want %d subscribers, got %d", want, got) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Aug 14 17:11:51 UTC 2024 - 5.8K bytes - Viewed (0) -
cmd/data-scanner_test.go
} versioned := vcfg.Status == "Enabled" wants := make([]ObjectInfo, 2) for i, fi := range fivs[:2] { wants[i] = fi.ToObjectInfo(bucket, obj, versioned) } gots, err := item.applyNewerNoncurrentVersionLimit(context.TODO(), objAPI, fivs, es) if err != nil { t.Fatalf("Failed with err: %v", err) } if len(gots) != len(wants) { t.Fatalf("Expected %d objects but got %d", len(wants), len(gots)) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 03 11:18:58 UTC 2024 - 6.9K bytes - Viewed (0) -
src/cmd/api/api_test.go
{"net/http/internal/bar", false}, {"internal/foo", false}, {"internal", false}, } for _, tt := range tests { got := !internalPkg.MatchString(tt.pkg) if got != tt.want { t.Errorf("%s is internal = %v; want %v", tt.pkg, got, tt.want) } } } func BenchmarkAll(b *testing.B) { for i := 0; i < b.N; i++ { for _, context := range contexts {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Jan 04 17:31:12 UTC 2024 - 7.1K bytes - Viewed (0) -
internal/crypto/metadata_test.go
t.Errorf("Test %d: got error '%v' - want error '%v'", i, err, test.ExpectedErr) } if err == nil && test.ExpectedErr != nil { t.Errorf("Test %d: got error '%v' - want error '%v'", i, err, test.ExpectedErr) } if err != nil && test.ExpectedErr != nil { if err.Error() != test.ExpectedErr.Error() { t.Errorf("Test %d: got error '%v' - want error '%v'", i, err, test.ExpectedErr) } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jul 12 20:51:54 UTC 2024 - 18.7K bytes - Viewed (0)