aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/stretchr/testify/assert/forward_assertions.go
diff options
context:
space:
mode:
authorRobert Zaremba <robert.zaremba@scale-it.pl>2017-11-10 09:54:48 +0800
committerRobert Zaremba <robert.zaremba@scale-it.pl>2017-11-11 07:29:41 +0800
commit5d895db2fd9e6c381f5696f84b1b64d21df9d337 (patch)
treee20a12d9f2b1290145e4dcea2c4fece1b43b6824 /vendor/github.com/stretchr/testify/assert/forward_assertions.go
parent3d88ecd61ae7b43f1227acafaec71e49093491b8 (diff)
downloadgo-tangerine-5d895db2fd9e6c381f5696f84b1b64d21df9d337.tar
go-tangerine-5d895db2fd9e6c381f5696f84b1b64d21df9d337.tar.gz
go-tangerine-5d895db2fd9e6c381f5696f84b1b64d21df9d337.tar.bz2
go-tangerine-5d895db2fd9e6c381f5696f84b1b64d21df9d337.tar.lz
go-tangerine-5d895db2fd9e6c381f5696f84b1b64d21df9d337.tar.xz
go-tangerine-5d895db2fd9e6c381f5696f84b1b64d21df9d337.tar.zst
go-tangerine-5d895db2fd9e6c381f5696f84b1b64d21df9d337.zip
vendor: add github.com/stretchr/testify test dependency
github.com/stretchr/testify is a useful library for doing assertion in tests. It makes assertions in test more less verbose and more comfortable to read and use.
Diffstat (limited to 'vendor/github.com/stretchr/testify/assert/forward_assertions.go')
-rw-r--r--vendor/github.com/stretchr/testify/assert/forward_assertions.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/github.com/stretchr/testify/assert/forward_assertions.go b/vendor/github.com/stretchr/testify/assert/forward_assertions.go
new file mode 100644
index 000000000..9ad56851d
--- /dev/null
+++ b/vendor/github.com/stretchr/testify/assert/forward_assertions.go
@@ -0,0 +1,16 @@
+package assert
+
+// Assertions provides assertion methods around the
+// TestingT interface.
+type Assertions struct {
+ t TestingT
+}
+
+// New makes a new Assertions object for the specified TestingT.
+func New(t TestingT) *Assertions {
+ return &Assertions{
+ t: t,
+ }
+}
+
+//go:generate go run ../_codegen/main.go -output-package=assert -template=assertion_forward.go.tmpl -include-format-funcs