Ecosyste.ms: Packages

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

Top 6.7% on proxy.golang.org
Top 0.8% dependent packages on proxy.golang.org
Top 0.7% dependent repos on proxy.golang.org
Top 1.4% docker downloads on proxy.golang.org

proxy.golang.org : github.com/powerman/check

Package check provide helpers to complement Go testing package. This package is like testify/assert on steroids. :) Just wrap each (including subtests) *testing.T using check.T() and write tests as usually with testing package. Call new methods provided by this package to have more clean/concise test code and cool dump/diff. To get optional statistics about executed checkers add: When use goconvey tool, to get nice diff in web UI add: ★ How to check for errors: ★ Each check returns bool, so you can easily skip problematic code: ★ You can turn any check into assertion to stop test immediately: ★ You can turn all checks into assertions to stop test immediately: ★ You can provide extra description to each check: ★ There are short synonyms for checks implementing usual ==, !=, etc.: ★ If you need custom check, which isn't available out-of-box - see Should checker, it'll let you plug in your own checker with ease. ★ It will panic when called with arg of wrong type - because this means bug in your test. ★ If you don't see colors in `go test` output it may happens because of two reasons: either your $TERM doesn't contain substring "color" or you're running `go test path/to/your/package`. To force colored output in last case just set this environment variable: There are few special functions (assertion, custom checkers, etc.). Everything else are just trivial (mostly) checkers which works in obvious way and accept values of any types which makes sense (and panics on everything else).

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/powerman/check
Keywords: go, golang, golang-library, unit-testing
License: MIT
Latest release: about 1 year ago
First release: over 6 years ago
Namespace: github.com/powerman
Dependent packages: 38
Dependent repositories: 74
Stars: 6 on GitHub
Forks: 0 on GitHub
Docker dependents: 1
Docker downloads: 135
See more repository details: repos.ecosyste.ms
Last synced: about 1 month ago

    Loading...
    Readme
    Loading...