github.com/powerman/check (go): 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).
Keywords: go|golang|golang-library|unit-testing