- Sort Score
- Result 10 results
- Languages All
Results 11 - 14 of 14 for shouldPass (0.04 sec)
-
cmd/utils_test.go
testCases := []struct { urlStr string shouldPass bool }{ {"", false}, {":", false}, {"http://localhost/", true}, {"http://127.0.0.1/", true}, {"proto://myhostname/path", true}, } // Validates fetching local address. for i, testCase := range testCases { _, err := checkURL(testCase.urlStr) if testCase.shouldPass && err != nil {Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 10.2K bytes - Viewed (0) -
cmd/object-api-listobjects_test.go
testCase.prefix, testCase.marker, testCase.delimiter, testCase.maxKeys) } if err != nil && testCase.shouldPass { t.Errorf("Test %d: %s: Expected to pass, but failed with: <ERROR> %s", i+1, instanceType, err.Error()) } if err == nil && !testCase.shouldPass { t.Errorf("Test %d: %s: Expected to fail with <ERROR> \"%s\", but passed instead", i+1, instanceType, testCase.err.Error()) }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Oct 10 18:57:03 UTC 2025 - 76.1K bytes - Viewed (0) -
cmd/object-handlers_test.go
expectedContent []byte // expected response body. expectedRespStatus int // expected response status body. // Access keys accessKey string secretKey string shouldPass bool removeAuthHeader bool fault streamFault // Custom content encoding. contentEncoding string }{ // Test case - 1.
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 163.1K bytes - Viewed (0) -
cmd/xl-storage_test.go
{"......", true}, } for i, testCase := range testCases { isValidVolname := isValidVolname(testCase.volName) if testCase.shouldPass && !isValidVolname { t.Errorf("Test case %d: Expected \"%s\" to be a valid bucket name", i+1, testCase.volName) } if !testCase.shouldPass && isValidVolname { t.Errorf("Test case %d: Expected bucket name \"%s\" to be invalid", i+1, testCase.volName) } } }Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 66K bytes - Viewed (0)