Top 7.0% forks on proxy.golang.org
proxy.golang.org : 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.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/emicklei/assert
License: MIT
Latest release: over 1 year ago
First release: about 7 years ago
Namespace: github.com/emicklei
Stars: 2 on GitHub
Forks: 1 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 8 days ago