Optimise template

pull/611/head
Nick Pollett 2018-05-26 21:37:37 +12:00 committed by Ernesto Jiménez
parent c679ae2cc0
commit 6c9d18aaae
1 changed files with 4 additions and 3 deletions

View File

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