MCPcopy
hub / github.com/minio/minio-go / logError

Function logError

functional_tests.go:171–183  ·  functional_tests.go::logError

As few of the features are not available in Gateway(s) currently, Check if err value is NotImplemented, and log as NA in that case and continue execution. Otherwise log as failure and return

(testName, function string, args map[string]interface{}, startTime time.Time, alert, message string, err error)

Source from the content-addressed store, hash-verified

169// As few of the features are not available in Gateway(s) currently, Check if err value is NotImplemented,
170// and log as NA in that case and continue execution. Otherwise log as failure and return
171func logError(testName, function string, args map[string]interface{}, startTime time.Time, alert, message string, err error) {
172 // If server returns NotImplemented we assume it is gateway mode and hence log it as info and move on to next tests
173 // Special case for ComposeObject API as it is implemented on client side and adds specific error details like `Error in upload-part-copy` in
174 // addition to NotImplemented error returned from server
175 if isErrNotImplemented(err) {
176 logIgnored(testName, function, args, startTime, message)
177 } else {
178 logFailure(testName, function, args, startTime, alert, message, err)
179 if !isRunOnFail() {
180 panic(fmt.Sprintf("Test failed with message: %s, err: %v", message, err))
181 }
182 }
183}
184
185// Log failed test runs, do not call this directly, use logError instead, as that correctly stops the test run
186func logFailure(testName, function string, args map[string]interface{}, startTime time.Time, alert, message string, err error) {

Callers 15

createHTTPTransportFunction · 0.85
testMakeBucketErrorFunction · 0.85
testMetadataSizeLimitFunction · 0.85
testMakeBucketRegionsFunction · 0.85
testPutObjectReadAtFunction · 0.85
testListObjectVersionsFunction · 0.85
testListMultipartUploadFunction · 0.85

Calls 4

isErrNotImplementedFunction · 0.85
logIgnoredFunction · 0.85
logFailureFunction · 0.85
isRunOnFailFunction · 0.85

Tested by

no test coverage detected