diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-29 21:09:09 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-29 21:09:09 +0200 |
commit | d450c7a883876e0f5356fb5cb54109a0a2a77dfd (patch) | |
tree | 5c04dde6492dc649f84761ba60afc3843b18ff92 /vendor/github.com/stretchr/testify/assert/errors.go | |
parent | 75c921cdf9856c01ebf6ce50abfb31e403008b09 (diff) | |
download | git-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.go | 10 |
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") |