Ecosyste.ms: Packages

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

Top 6.3% on proxy.golang.org
Top 6.1% forks on proxy.golang.org

proxy.golang.org : gopkg.in/alecthomas/assert.v0

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.

Registry - Documentation - JSON
purl: pkg:golang/gopkg.in/alecthomas/assert.v0
Keywords: assert, generics, go, golang, testing
License: MIT
Latest release: over 6 years ago
First release: over 6 years ago
Namespace: gopkg.in/alecthomas
Stars: 108 on GitHub
Forks: 5 on GitHub
See more repository details: repos.ecosyste.ms
Funding links: https://github.com/sponsors/alecthomas
Last synced: 7 days ago

    Loading...
    Readme
    Loading...