pirmd / verify

verify is a golang package that provides simple functions that I find handy when building unit tests.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VERIFY

GoDoc  Go Report Card 

verify package is a collection of simple functions that I find handy to use for building my unit testing.

INSTALLATION

Everything should work fine using go standard commands (build, get, install...).

USAGE

Running go doc github.com/pirmd/verify should give you helpful guidelines on availables features.

With the package set-up, additional go test flags are offered: . -test.golden-update: updates the golden files with the test result. . -test.mockhttp-update: updates files served through the mock-http transport. . -test.diff: show differences between the test result and expected values. . -test.diff-color: show differences in color between the test result and the expected values. . -test.diff-np: show differences between result and expected values materializing non printable chars.

CONTRIBUTION

If you feel like to contribute, just follow github guidelines on forking then send a pull request

About

verify is a golang package that provides simple functions that I find handy when building unit tests.

License:BSD 2-Clause "Simplified" License


Languages

Language:Go 100.0%