mirror of https://github.com/stretchr/testify.git
Optimise template
parent
c679ae2cc0
commit
6c9d18aaae
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue