An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

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.

Ecosystem
proxy.golang.org
Latest Release
v1.0.1
about 2 years ago
Versions
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
Rankings on proxy.golang.org
Overall Top 7.8%
Forks Top 7.0%