mirror of https://github.com/stretchr/testify.git
Optimise template
parent
c679ae2cc0
commit
6c9d18aaae
|
@ -1,7 +1,8 @@
|
||||||
{{.Comment}}
|
{{.Comment}}
|
||||||
func {{.DocInfo.Name}}(t TestingT, {{.Params}}) {
|
func {{.DocInfo.Name}}(t TestingT, {{.Params}}) {
|
||||||
if h, ok := t.(tHelper); ok { h.Helper() }
|
if assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) {
|
||||||
if !assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) {
|
return
|
||||||
t.FailNow()
|
|
||||||
}
|
}
|
||||||
|
if h, ok := t.(tHelper); ok { h.Helper() }
|
||||||
|
t.FailNow()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue