improved the way calls worked

This commit is contained in:
Mat Ryer
2017-07-07 15:12:32 +01:00
parent 09e12df472
commit 000d593524
3 changed files with 42 additions and 13 deletions

View File

@@ -95,6 +95,7 @@ The mocked structure implements the interface, where each method calls the assoc
* Keep mocked logic inside the test that is using it
* Only mock the fields you need
* It will panic if a nil function gets called
* Name arguments in the interface for a better experience
* Use closured variables inside your test function to capture details about the calls to the methods
* Use `.CallsTo.Method` to track the calls
* Use `go:generate` to invoke the `moq` command