- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 461 for got (0.01 sec)
-
cmd/streaming-signature-v4_test.go
} for _, tt := range tests { got, err := parseHexUint([]byte(tt.in)) if tt.wantErr != "" { if err != nil && !strings.Contains(err.Error(), tt.wantErr) { t.Errorf("parseHexUint(%q) = %v, %v; want error %q", tt.in, got, err, tt.wantErr) } } else { if err != nil || got != tt.want { t.Errorf("parseHexUint(%q) = %v, %v; want %v", tt.in, got, err, tt.want) } } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 23 18:58:53 UTC 2021 - 5.7K bytes - Viewed (0) -
cmd/xl-storage_test.go
t.Fatalf("expected: %s, got: %s", testCase.expectedErr, err) } } } func TestXLStorageIsDirEmpty(t *testing.T) { tmp := t.TempDir() // Should give false on non-existent directory. dir1 := slashpath.Join(tmp, "non-existent-directory") if isDirEmpty(dir1, true) { t.Error("expected false for non-existent directory, got true") } // Should give false for not-a-directory.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Aug 14 17:11:51 UTC 2024 - 66.7K bytes - Viewed (0) -
istioctl/pkg/install/k8sversion/version_test.go
} for i, c := range cases { t.Run(fmt.Sprintf("case %d %s", i, c.version), func(t *testing.T) { got, err := extractKubernetesVersion(c.version) if c.errMsg != err && c.isValid { t.Fatalf("\nwanted: %v \nbut found: %v", c.errMsg, err) } if got != c.expected { t.Fatalf("wanted %v got %v", c.expected, got) } }) } } func TestIsK8VersionSupported(t *testing.T) { cases := []struct {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 30 21:50:50 UTC 2024 - 6.5K bytes - Viewed (0) -
internal/config/lambda/event/arn_test.go
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Mar 07 16:12:41 UTC 2023 - 2.2K bytes - Viewed (0) -
internal/bucket/object/lock/lock_test.go
//nolint:gocritic if tt.expectedErr == nil { if err != nil { t.Fatalf("error: expected = <nil>, got = %v", err) } } else if err == nil { t.Fatalf("error: expected = %v, got = <nil>", tt.expectedErr) } else if tt.expectedErr.Error() != err.Error() { t.Fatalf("error: expected = %v, got = %v", tt.expectedErr, err) } } } func TestParseObjectLockConfig(t *testing.T) { tests := []struct {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Jun 29 01:20:27 UTC 2024 - 17.1K bytes - Viewed (0) -
internal/grid/msg.go
const hashLen = 4 if len(h) < hashLen { return nil, nil, fmt.Errorf("want crc len 4, got %v", len(h)) } got := uint32(xxh3.Hash(b[:len(b)-hashLen])) want := binary.LittleEndian.Uint32(h[len(h)-hashLen:]) if got != want { return nil, nil, fmt.Errorf("crc mismatch: 0x%08x (given) != 0x%08x (bytes)", want, got) } h = h[:len(h)-hashLen] } // Extract subroute if any. if m.Flags&FlagSubroute != 0 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jul 25 21:07:21 UTC 2024 - 7.6K bytes - Viewed (0) -
internal/mountinfo/mountinfo_linux_test.go
t.Fatalf("expected 3 mounts, got %d", len(mounts)) } mp := mountInfo{"/dev/0", "/path/to/0", "type0", []string{"flags"}, "0", "0"} if !mountPointsEqual(mounts[0], mp) { t.Errorf("got unexpected MountPoint[0]: %#v", mounts[0]) } mp = mountInfo{"/dev/1", "/path/to/1", "type1", []string{"flags"}, "1", "1"} if !mountPointsEqual(mounts[1], mp) { t.Errorf("got unexpected mountInfo[1]: %#v", mounts[1]) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 7.3K bytes - Viewed (0) -
internal/store/queuestore_test.go
t.Fatalf("List() Expected: 10, got %d", len(keys)) } // re-open store, err = setUpQueueStore(queueDir, 10) if err != nil { t.Fatal("Failed to create a queue store ", err) } keys = store.List() if len(keys) != 10 { t.Fatalf("List() Expected: 10, got %d", len(keys)) } if len(keys) != store.Len() { t.Fatalf("List() Expected: 10, got %d", len(keys)) } // Delete all
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 8.7K bytes - Viewed (0) -
istioctl/pkg/tag/generate_test.go
t.Fatalf("expected FailurePolicy to be nil, got %v", *webhook.FailurePolicy) } if tc.whSVC != "" { if validationWhConf.Service == nil { t.Fatalf("expected validation service %s, got nil", tc.whSVC) } if validationWhConf.Service.Name != tc.whSVC { t.Fatalf("expected validation service %s, got %s", tc.whSVC, validationWhConf.Service.Name) }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 12.1K bytes - Viewed (0) -
internal/event/rulesmap_test.go
if !reflect.DeepEqual(result, testCase.rulesMap) { t.Fatalf("test %v: result: expected: %v, got: %v", i+1, testCase.rulesMap, result) } result.Add(testCase.rulesMapToAdd) if reflect.DeepEqual(result, testCase.rulesMap) { t.Fatalf("test %v: result: expected: not equal, got: equal", i+1) } } } func TestRulesMapAdd(t *testing.T) { rulesMapCase1 := make(RulesMap)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jan 05 18:43:06 UTC 2024 - 6.8K bytes - Viewed (0)