github.com/stretchr/testify/assert
Package assert provides a set of comprehensive testing tools for use with the normal Go testing system. All functions in this package return a bool value indicating whether the assertion has passed. 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.11.1
16 days ago
28
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:golang/github.com/stretchr/testify/assert
spec |
| License | MIT |
| Namespace | github.com/stretchr/testify |
| First Release | 16 days ago |
| Last Synced | 1 day ago |
Repository
| Stars | 25,422 on GitHub |
| Forks | 1,679 on GitHub |
| Commits | 807 |
| Committers | 292 |
| Avg per Author | 2.764 |
| DDS | 0.926 |