Fail reports a failure through
(t TestingT, failureMessage string, msgAndArgs ...interface{})
| 513 | |
| 514 | // Fail reports a failure through |
| 515 | func Fail(t TestingT, failureMessage string, msgAndArgs ...interface{}) { |
| 516 | if h, ok := t.(tHelper); ok { |
| 517 | h.Helper() |
| 518 | } |
| 519 | if assert.Fail(t, failureMessage, msgAndArgs...) { |
| 520 | return |
| 521 | } |
| 522 | t.FailNow() |
| 523 | } |
| 524 | |
| 525 | // FailNow fails test |
| 526 | func FailNow(t TestingT, failureMessage string, msgAndArgs ...interface{}) { |