Home

Awesome

gomonkey

gomonkey is a library to make monkey patching in unit tests easy, and the core idea of monkey patching comes from Bouke, you can read this blogpost for an explanation on how it works.

Features

Notes

Supported Platform:

Installation

$ go get github.com/agiledragon/gomonkey@v2.0.2
$ go get github.com/agiledragon/gomonkey/v2@v2.11.0

Test Method

$ cd test 
$ go test -gcflags=all=-l

Using gomonkey

Please refer to the test cases as idioms, very complete and detailed.