summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/stretchr/testify/require/require.go.tmpl
diff options
context:
space:
mode:
authorEthan Koenig <ethantkoenig@gmail.com>2017-12-10 18:23:34 -0800
committerLunny Xiao <xiaolunwen@gmail.com>2017-12-11 10:23:34 +0800
commit58a7de2aeae7ca08fc886d3586ee077094a9bc6c (patch)
tree4955f3d669bc4f6d60a79b1e5e0e70425d7eff3e /vendor/github.com/stretchr/testify/require/require.go.tmpl
parent682ac11958fed286bb0ca4d488084953f50779ef (diff)
downloadgitea-58a7de2aeae7ca08fc886d3586ee077094a9bc6c.tar.gz
gitea-58a7de2aeae7ca08fc886d3586ee077094a9bc6c.zip
Update code.gitea.io/git (#3137)
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 0000000000..d2c38f6f28
--- /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}}) {
+ t.FailNow()
+ }
+}