Errorf implements Reporter.Errorf.
(message string, args ...interface{})
| 37 | |
| 38 | // Errorf implements Reporter.Errorf. |
| 39 | func (r *RequireReporter) Errorf(message string, args ...interface{}) { |
| 40 | r.backend.FailNow(fmt.Sprintf(message, args...)) |
| 41 | } |
| 42 | |
| 43 | // FatalReporter is a struct that implements the Reporter interface |
| 44 | // and calls t.Fatalf() when a test fails. |