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)
| 184 | |
| 185 | // Log failed test runs, do not call this directly, use logError instead, as that correctly stops the test run |
| 186 | func 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 |
| 201 | func logIgnored(testName, function string, args map[string]interface{}, startTime time.Time, alert string) { |
no test coverage detected