diff options
author | Michael Muré <batolettre@gmail.com> | 2018-10-01 11:37:17 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-10-01 11:37:17 +0200 |
commit | 3402230a5537d95ce26bf7fa0d33330823a59f08 (patch) | |
tree | abdc5a871e995446da40406754adc11c4e3befe7 /vendor/github.com/stretchr/testify/require/require.go.tmpl | |
parent | 7f86898ef9a8f9e866835ece3c9824a8edc58036 (diff) | |
download | git-bug-3402230a5537d95ce26bf7fa0d33330823a59f08.tar.gz |
bug: use a value embedding for OpBase
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, 6 insertions, 0 deletions
diff --git a/vendor/github.com/stretchr/testify/require/require.go.tmpl b/vendor/github.com/stretchr/testify/require/require.go.tmpl new file mode 100644 index 00000000..6ffc751b --- /dev/null +++ b/vendor/github.com/stretchr/testify/require/require.go.tmpl @@ -0,0 +1,6 @@ +{{.Comment}} +func {{.DocInfo.Name}}(t TestingT, {{.Params}}) { + if assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) { return } + if h, ok := t.(tHelper); ok { h.Helper() } + t.FailNow() +} |