github.com/alecthomas/assert
Package assert provides a set of comprehensive testing tools for use with the normal Go testing system. The following is a complete example using assert in a standard test function: if you assert many times, use the format below: Assertions allow you to easily write test code, and are global funcs in the `assert` package. All assertion functions take, as the first argument, the `*testing.T` object provided by the testing framework. This allows the assertion funcs to write the failings and other details to the correct place. Every assertion function also takes an optional string message as the final argument, allowing custom error messages to be appended to the message the assertion method outputs.
proxy.golang.org
v1.0.0
over 4 years ago
1
569
2,390
github.com/alecthomas/assert/v2 v2.11.0 💰
Package assert provides type-safe assertions with clean error messages.27 versions - Latest release: over 1 year ago - 184 dependent packages - 1,585 dependent repositories - 167 stars on GitHub
github.com/ALECthomas/assert v1.0.0 💰
A simple assertion library using Go generics1 version - Latest release: over 4 years ago - 167 stars on GitHub
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |