aboutsummaryrefslogtreecommitdiffsponsor
path: root/vendor/github.com/stretchr/testify/require/require.go.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/stretchr/testify/require/require.go.tmpl')
-rw-r--r--vendor/github.com/stretchr/testify/require/require.go.tmpl6
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 0000000..55e42dd
--- /dev/null
+++ b/vendor/github.com/stretchr/testify/require/require.go.tmpl
@@ -0,0 +1,6 @@
+{{.Comment}}
+func {{.DocInfo.Name}}(t TestingT, {{.Params}}) {
+ if h, ok := t.(tHelper); ok { h.Helper() }
+ if assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) { return }
+ t.FailNow()
+}