diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2019-10-03 23:20:12 -0400 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2019-10-04 21:28:52 -0400 |
| commit | 2a263380091311c9987fbabfb7ccb2f288e58064 (patch) | |
| tree | 6b895bccc7fc3814d0266de06132acd763537d66 /vendor/github.com/stretchr/testify/assert | |
| parent | 3ecf5c37428c072b672b825fcc9493de6e1c5df7 (diff) | |
Moving to go modules
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'vendor/github.com/stretchr/testify/assert')
| -rw-r--r-- | vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl | 5 | ||||
| -rw-r--r-- | vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl b/vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl new file mode 100644 index 00000000..d2bb0b81 --- /dev/null +++ b/vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl @@ -0,0 +1,5 @@ +{{.CommentFormat}} +func {{.DocInfo.Name}}f(t TestingT, {{.ParamsFormat}}) bool { + if h, ok := t.(tHelper); ok { h.Helper() } + return {{.DocInfo.Name}}(t, {{.ForwardedParamsFormat}}) +} diff --git a/vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl b/vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl new file mode 100644 index 00000000..188bb9e1 --- /dev/null +++ b/vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl @@ -0,0 +1,5 @@ +{{.CommentWithoutT "a"}} +func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) bool { + if h, ok := a.t.(tHelper); ok { h.Helper() } + return {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) +} |
