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

Function logFailure

functional_tests.go:186–198  ·  functional_tests.go::logFailure

Log failed test runs, do not call this directly, use logError instead, as that correctly stops the test run

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

Source from the content-addressed store, hash-verified

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) {
187 l := baseLogger(testName, function, args, startTime).With(
188 "status", "FAIL",
189 "alert", alert,
190 "message", message,
191 )
192
193 if err != nil {
194 l = l.With("error", err)
195 }
196
197 l.Error("")
198}
199
200// log not applicable test runs
201func logIgnored(testName, function string, args map[string]interface{}, startTime time.Time, alert string) {

Callers 1

logErrorFunction · 0.85

Calls 2

baseLoggerFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected