Helper is called before assert function in require.* functions

pull/731/head
Chris Marchbanks 2018-08-21 19:07:44 -06:00 committed by George Lesica
parent 2894c76efe
commit 78018b09cd
2 changed files with 271 additions and 271 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{{.Comment}}
func {{.DocInfo.Name}}(t TestingT, {{.Params}}) {
if assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) { return }
if h, ok := t.(tHelper); ok { h.Helper() }
if assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) { return }
t.FailNow()
}