mirror of
https://github.com/stretchr/testify.git
synced 2025-07-09 03:59:17 +00:00
Update require.go.tmpl
Co-authored-by: Olivier Mengué <dolmen@cpan.org>
This commit is contained in:
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…
x
Reference in New Issue
Block a user