- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 120 for testCase (0.22 sec)
-
internal/event/targetlist_test.go
{targetListCase3, &ExampleTarget{TargetID{"3", "testcase"}, false, false}, nil, true}, } for i, testCase := range testCases { err := testCase.targetList.Add(testCase.target) expectErr := (err != nil) if expectErr != testCase.expectErr { t.Fatalf("test %v: error: expected: %v, got: %v", i+1, testCase.expectErr, expectErr) }
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Tue Dec 05 10:16:33 GMT 2023 - 6.1K 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
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Tue Mar 07 16:12:41 GMT 2023 - 3.9K bytes - Viewed (0) -
internal/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
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Tue Jun 01 21:59:40 GMT 2021 - 3.9K bytes - Viewed (0) -
cmd/utils_test.go
}, } // Validate all test cases. for _, testCase := range testCases { testCase := testCase t.Run("", func(t *testing.T) { bucketName, objectName := path2BucketObject(testCase.path) if bucketName != testCase.bucket { t.Errorf("failed expected bucket name \"%s\", got \"%s\"", testCase.bucket, bucketName) } if objectName != testCase.object {
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Fri Feb 23 21:28:14 GMT 2024 - 10.2K bytes - Viewed (0) -
internal/config/etcd/etcd_test.go
{"http://localhost:2379", []string{"http://localhost:2379"}, false, true}, } for _, testCase := range testCases { testCase := testCase t.Run(testCase.s, func(t *testing.T) { endpoints, secure, err := parseEndpoints(testCase.s) if err != nil && testCase.success { t.Errorf("expected to succeed but failed with %s", err) } if !testCase.success && err == nil { t.Error("expected failure but succeeded instead") }
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Sun Jan 02 17:15:06 GMT 2022 - 2.1K bytes - Viewed (0) -
internal/config/compress/compress_test.go
{"text/*,application/json", []string{"text/*", "application/json"}, true}, } for _, testCase := range testCases { testCase := testCase t.Run(testCase.str, func(t *testing.T) { gotPatterns, err := parseCompressIncludes(testCase.str) if !testCase.success && err == nil { t.Error("expected failure but success instead") } if testCase.success && err != nil { t.Errorf("expected success but failed instead %s", err) }
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Tue Jun 01 21:59:40 GMT 2021 - 1.8K bytes - Viewed (0) -
cmd/bucket-policy-handlers_test.go
}, } // Iterating over the cases, fetching the policy and validating the response. for i, testCase := range testCases { // expected bucket policy json string. expectedBucketPolicyStr := fmt.Sprintf(testCase.expectedBucketPolicy, testCase.bucketName, testCase.bucketName) // initialize HTTP NewRecorder, this records any mutations to response writer inside the handler. recV4 := httptest.NewRecorder()
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 32.7K bytes - Viewed (0) -
cmd/xl-storage_unix_test.go
// Verify if umask is correct. if int(currentUmask) != testCase.expectedUmask { t.Fatalf("Umask check failed expected %d, got %d", testCase.expectedUmask, currentUmask) } } // Tests if the file creations happen with proper umask. func TestIsValidUmaskFile(t *testing.T) { tmpPath := t.TempDir() testCases := []struct { volName string expectedUmask int }{
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Mon Jul 25 19:37:26 GMT 2022 - 3.4K bytes - Viewed (0) -
internal/disk/stat_test.go
}, } for _, testCase := range testCases { testCase := testCase t.Run("", func(t *testing.T) { tmpfile, err := os.CreateTemp("", "testfile") if err != nil { t.Error(err) } tmpfile.WriteString(testCase.stat) tmpfile.Sync() tmpfile.Close() iostats, err := readDriveStats(tmpfile.Name()) if err != nil && !testCase.expectErr {
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Mon Feb 26 19:34:50 GMT 2024 - 3.6K bytes - Viewed (0) -
internal/http/server_test.go
} for i, testCase := range testCases { server := NewServer(testCase.addrs). UseHandler(testCase.handler). UseShutdownTimeout(DefaultShutdownTimeout) if testCase.certFn != nil { server = server.UseTLSConfig(&tls.Config{ PreferServerCipherSuites: true, GetCertificate: testCase.certFn, }) } if server == nil {
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Wed Mar 27 15:10:40 GMT 2024 - 2.7K bytes - Viewed (0)