From a788edc546e11546989075caaa1ed7878443c732 Mon Sep 17 00:00:00 2001 From: Mat Ryer Date: Mon, 29 Aug 2016 13:34:34 +0100 Subject: [PATCH] added another tip --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0c83bc7..d064137 100644 --- a/README.md +++ b/README.md @@ -60,4 +60,5 @@ 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 +* Use closured variables inside your test function to capture details about the calls to the methods * Use `go:generate` to invoke the `moq` command