Fail reports a failure through
(t TestingT, failureMessage string, msgAndArgs ...interface{})
| 500 | |
| 501 | // Fail reports a failure through |
| 502 | func Fail(t TestingT, failureMessage string, msgAndArgs ...interface{}) { |
| 503 | if h, ok := t.(tHelper); ok { |
| 504 | h.Helper() |
| 505 | } |
| 506 | if assert.Fail(t, failureMessage, msgAndArgs...) { |
| 507 | return |
| 508 | } |
| 509 | t.FailNow() |
| 510 | } |
| 511 | |
| 512 | // FailNow fails test |
| 513 | func FailNow(t TestingT, failureMessage string, msgAndArgs ...interface{}) { |