summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/stretchr/testify/assert/errors.go
diff options
context:
space:
mode:
authorremyabel <41764622+remyabel@users.noreply.github.com>2018-08-19 23:29:47 -0400
committerGitHub <noreply@github.com>2018-08-19 23:29:47 -0400
commit5c65066cbb27eac0e9cc2dd19354d6889c052406 (patch)
tree4beca6c465c61d81255604f88e38f59e71e3d2bc /vendor/github.com/stretchr/testify/assert/errors.go
parente8b12a086c94f29b8fdcd1b2197b332834e13ca6 (diff)
parent64cf8f5b107a310e6729b68ba8d7638effd3966d (diff)
Merge branch 'master' into 157_remove_bom
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")