github.com/emicklei/assert
Package assert, for writing checks in unit tests This package provides functions to reduce the amount of code needed to write simple assertions. It implements the best practice pattern where the output of a failure explains what the check "got" and what it wanted. The assert functions are defined such that writing requires less code but still are easy to understand. It works by decorating the standard testing.T type in your test and report (Fatal) the offending asserting call if a check fails. Example which will report Examples: (using the dot import) You can create and use your own checks by implementing the RelationalOperator.
proxy.golang.org
v1.0.1
about 2 years ago
2
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:golang/github.com/emicklei/assert
spec |
| License | MIT |
| Namespace | github.com/emicklei |
| First Release | almost 8 years ago |
| Last Synced | 25 days ago |
Repository
| Stars | 2 on GitHub |
| Forks | 1 on GitHub |