mirror of https://github.com/stretchr/testify.git
Update require.go.tmpl
Co-authored-by: Olivier Mengué <dolmen@cpan.org>pull/1610/head
parent
9326036bf5
commit
044c46a89f
|
@ -1,5 +1,5 @@
|
|||
{{ replace .Comment "assert." "require."}}
|
||||
// Instead of returning a boolean result this function calls `t.FailNow()` on failure.
|
||||
// Failure of this check is fatal ([testing.T.FailNow] is called on failure).
|
||||
func {{.DocInfo.Name}}(t TestingT, {{.Params}}) {
|
||||
if h, ok := t.(tHelper); ok { h.Helper() }
|
||||
if assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) { return }
|
||||
|
|
Loading…
Reference in New Issue