aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/stretchr/testify/assert/errors.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/errors.go
parent3d88ecd61ae7b43f1227acafaec71e49093491b8 (diff)
downloaddexon-5d895db2fd9e6c381f5696f84b1b64d21df9d337.tar.gz
dexon-5d895db2fd9e6c381f5696f84b1b64d21df9d337.tar.zst
dexon-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/errors.go')
-rw-r--r--vendor/github.com/stretchr/testify/assert/errors.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/github.com/stretchr/testify/assert/errors.go b/vendor/github.com/stretchr/testify/assert/errors.go
new file mode 100644
index 000000000..ac9dc9d1d
--- /dev/null
+++ b/vendor/github.com/stretchr/testify/assert/errors.go
@@ -0,0 +1,10 @@
+package assert
+
+import (
+ "errors"
+)
+
+// AnError is an error instance useful for testing. If the code does not care
+// about error specifics, and only needs to return the error for example, this
+// error should be used to make the test code more readable.
+var AnError = errors.New("assert.AnError general error for testing")