mirror of
https://github.com/stretchr/testify.git
synced 2025-05-02 05:30:14 +00:00
Use Go 1.9 t.Helper() to remove testify from the output of the tests and stop using `\r` to try to overwrite the output. This means in Go 1.7 and Go 1.8 testify will appear as failing the test.
8 lines
183 B
Cheetah
8 lines
183 B
Cheetah
{{.Comment}}
|
|
func {{.DocInfo.Name}}(t TestingT, {{.Params}}) {
|
|
if h, ok := t.(tHelper); ok { h.Helper() }
|
|
if !assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) {
|
|
t.FailNow()
|
|
}
|
|
}
|