diff options
| author | Alex Flint <[email protected]> | 2018-11-20 12:09:59 -0800 |
|---|---|---|
| committer | Alex Flint <[email protected]> | 2018-11-20 12:09:59 -0800 |
| commit | d7246f2485afaca12c2d4c1b04aca2e3d4d9a27b (patch) | |
| tree | eac50712b08582067812200c41f0ac9bdb28778a /vendor/github.com/stretchr/testify/require/require.go.tmpl | |
| parent | 27a7b2fb3d6b5f628fdd9572b41bf6fb37c37d0c (diff) | |
go mod vendor
Diffstat (limited to 'vendor/github.com/stretchr/testify/require/require.go.tmpl')
| -rw-r--r-- | vendor/github.com/stretchr/testify/require/require.go.tmpl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/stretchr/testify/require/require.go.tmpl b/vendor/github.com/stretchr/testify/require/require.go.tmpl index ab1b1e9..6ffc751 100644 --- a/vendor/github.com/stretchr/testify/require/require.go.tmpl +++ b/vendor/github.com/stretchr/testify/require/require.go.tmpl @@ -1,6 +1,6 @@ {{.Comment}} func {{.DocInfo.Name}}(t TestingT, {{.Params}}) { - 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() } |
