summaryrefslogtreecommitdiff
path: root/vendor/github.com/golang/mock/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/golang/mock/README.md')
-rw-r--r--vendor/github.com/golang/mock/README.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/github.com/golang/mock/README.md b/vendor/github.com/golang/mock/README.md
index daf4f97..e438777 100644
--- a/vendor/github.com/golang/mock/README.md
+++ b/vendor/github.com/golang/mock/README.md
@@ -74,6 +74,14 @@ It supports the following flags:
* `-build_flags`: (reflect mode only) Flags passed verbatim to `go build`.
+* `-mock_names`: A list of custom names for generated mocks. This is specified
+ as a comma-separated list of elements of the form
+ `Repository=MockSensorRepository,Endpoint=MockSensorEndpoint`, where
+ `Repository` is the interface name and `MockSensorRepository` is the desired
+ mock name (mock factory method and mock recorder will be named after the mock).
+ If one of the interfaces has no custom name specified, then default naming
+ convention will be used.
+
For an example of the use of `mockgen`, see the `sample/` directory. In simple
cases, you will need only the `-source` flag.