- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 344 for testCases (0.14 sec)
-
cmd/net_test.go
{"http://8.8.8.8:9000", "http://localhost:9000", false, nil}, } for _, testCase := range testCases { testCase := testCase t.Run("", func(t *testing.T) { sameAddr, err := sameLocalAddrs(testCase.addr1, testCase.addr2) if testCase.expectedErr != nil && err == nil { t.Errorf("should fail but succeeded") } if testCase.expectedErr == nil && err != nil { t.Errorf("should succeed but failed with %v", err)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 19 08:43:09 UTC 2024 - 9.3K bytes - Viewed (0) -
internal/auth/credentials_test.go
{1574812326.000, false}, {time.Duration(3) * time.Minute, false}, } for _, testCase := range testCases { testCase := testCase t.Run("", func(t *testing.T) { _, err := ExpToInt64(testCase.exp) if err != nil && !testCase.expectedFailure { t.Errorf("Expected success but got failure %s", err) } if err == nil && testCase.expectedFailure { t.Error("Expected failure but got success") } }) } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Mar 01 21:09:42 UTC 2024 - 5.4K bytes - Viewed (0) -
internal/config/lambda/event/targetid_test.go
for i, testCase := range testCases { targetID := &TargetID{} err := targetID.UnmarshalJSON(testCase.data) expectErr := (err != nil) if expectErr != testCase.expectErr { t.Fatalf("test %v: error: expected: %v, got: %v", i+1, testCase.expectErr, expectErr) } if !testCase.expectErr { if *targetID != *testCase.expectedTargetID {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Mar 07 16:12:41 UTC 2023 - 3.5K bytes - Viewed (0) -
internal/config/lambda/event/targetidset_test.go
} for i, testCase := range testCases { result := testCase.set.Union(testCase.setToAdd) if !reflect.DeepEqual(testCase.expectedResult, result) { t.Fatalf("test %v: result: expected: %v, got: %v", i+1, testCase.expectedResult, result) } } } func TestTargetIDSetDifference(t *testing.T) { testCases := []struct { set TargetIDSet setToRemove TargetIDSet
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Mar 07 16:12:41 UTC 2023 - 3.9K bytes - Viewed (0) -
cmd/bucket-lifecycle_test.go
} } } // TestRestoreObjStatusRoundTrip restoreObjStatus roundtrip func TestRestoreObjStatusRoundTrip(t *testing.T) { testCases := []restoreObjStatus{ ongoingRestoreObj(), completedRestoreObj(time.Now().UTC()), } for i, tc := range testCases { actual, err := parseRestoreObjStatus(tc.String()) if err != nil { t.Fatalf("Test %d: parse restore object failed: %v", i+1, err) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue May 31 09:57:57 UTC 2022 - 7K bytes - Viewed (0) -
internal/event/name_test.go
} for i, testCase := range testCases { data, err := json.Marshal(testCase.name) expectErr := (err != nil) if expectErr != testCase.expectErr { t.Fatalf("test %v: error: expected: %v, got: %v", i+1, testCase.expectErr, expectErr) } if !testCase.expectErr { if !reflect.DeepEqual(data, testCase.expectedData) { t.Fatalf("test %v: data: expected: %v, got: %v", i+1, string(testCase.expectedData), string(data))
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed May 01 01:11:10 UTC 2024 - 7.4K bytes - Viewed (0) -
cmd/erasure-metadata-utils_test.go
} // Validates list of all the testcases for returning valid errors. for i, testCase := range testCases { gotErr := reduceReadQuorumErrs(context.Background(), testCase.errs, testCase.ignoredErrs, 5) if gotErr != testCase.err { t.Errorf("Test %d : expected %s, got %s", i+1, testCase.err, gotErr) } gotNewErr := reduceWriteQuorumErrs(context.Background(), testCase.errs, testCase.ignoredErrs, 6)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 7.4K bytes - Viewed (0) -
internal/event/rulesmap_test.go
{rulesMapCase4, ObjectCreatedPut, "2000/photo.png", NewTargetIDSet(TargetID{"2", "amqp"})}, } for i, testCase := range testCases { result := testCase.rulesMap.Match(testCase.eventName, testCase.objectName) if !reflect.DeepEqual(result, testCase.expectedResult) { t.Fatalf("test %v: result: expected: %v, got: %v", i+1, testCase.expectedResult, result) } } } func TestNewRulesMap(t *testing.T) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jan 05 18:43:06 UTC 2024 - 6.8K bytes - Viewed (0) -
cmd/xl-storage_unix_test.go
} // Tests if the directory and file creations happen with proper umask. func TestIsValidUmaskVol(t *testing.T) { tmpPath := t.TempDir() testCases := []struct { volName string expectedUmask int }{ {"is-this-valid", getUmask()}, } testCase := testCases[0] // Initialize a new xlStorage layer. disk, err := newLocalXLStorage(tmpPath) if err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 25 19:37:26 UTC 2022 - 3.4K bytes - Viewed (0) -
internal/config/lambda/event/arn_test.go
} for i, testCase := range testCases { arn, err := ParseARN(testCase.s) expectErr := (err != nil) if expectErr != testCase.expectErr { t.Fatalf("test %v: error: expected: %v, got: %v", i+1, testCase.expectErr, expectErr) } if !testCase.expectErr { if *arn != *testCase.expectedARN { t.Fatalf("test %v: data: expected: %v, got: %v", i+1, testCase.expectedARN, arn) } } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Mar 07 16:12:41 UTC 2023 - 2.2K bytes - Viewed (0)