FailNow fails test
(t TestingT, failureMessage string, msgAndArgs ...interface{})
| 511 | |
| 512 | // FailNow fails test |
| 513 | func FailNow(t TestingT, failureMessage string, msgAndArgs ...interface{}) { |
| 514 | if h, ok := t.(tHelper); ok { |
| 515 | h.Helper() |
| 516 | } |
| 517 | if assert.FailNow(t, failureMessage, msgAndArgs...) { |
| 518 | return |
| 519 | } |
| 520 | t.FailNow() |
| 521 | } |
| 522 | |
| 523 | // FailNowf fails test |
| 524 | func FailNowf(t TestingT, failureMessage string, msg string, args ...interface{}) { |