github.com/pborman/check
Package check is designed for testing, including table drive tests, to check the value of a returned error. The return value of a check is either an empty string (they matched) or a string describing why the check failed. Errors can be checked against different types of values (see Error) depending on the use case. Example Usage: When a string is passed, check.Error normally just checks to see that error message contains the string, case sensitive. Strings cast to Case are checked case insensitive while Equal and CaseEqual require the entire error message to be matched either case sensitive or insensitive respectively.
proxy.golang.org
v1.0.2
about 5 years ago
3
1
4
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:golang/github.com/pborman/check
spec |
| License | Apache-2.0 |
| Namespace | github.com/pborman |
| First Release | over 5 years ago |
| Last Synced | 25 days ago |
Repository
| Stars | 0 on GitHub |
| Forks | 0 on GitHub |