aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/stretchr/testify/assert/errors.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-29 21:09:09 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-29 21:09:09 +0200
commitd450c7a883876e0f5356fb5cb54109a0a2a77dfd (patch)
tree5c04dde6492dc649f84761ba60afc3843b18ff92 /vendor/github.com/stretchr/testify/assert/errors.go
parent75c921cdf9856c01ebf6ce50abfb31e403008b09 (diff)
downloadgit-bug-d450c7a883876e0f5356fb5cb54109a0a2a77dfd.tar.gz
use more testify, fix unchecked errors
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 00000000..ac9dc9d1
--- /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")