commit | b63c46aebc02f130a052a785f4f27bc938f2a4f3 | [log] [tgz] |
---|---|---|
author | Michael Whatcott <mdwhatcott@gmail.com> | Sat Apr 25 22:40:22 2020 |
committer | Michael Whatcott <mdwhatcott@gmail.com> | Sat Apr 25 22:40:22 2020 |
tree | ee1288b369d497d95f5ee807bb8a37ba67c48b10 | |
parent | 88d11b393c3f13efde75318f02fffe99de8b1bdc [diff] |
New assertion: should.WrapError ShouldWrap asserts that the first argument (which must be an error value) 'wraps' the second/final argument (which must also be an error value). It relies on errors.Is to make the determination. See https://golang.org/pkg/errors/#Is