From 621e49bb465f500cc46d47e39e828cf76d6381d7 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 24 Jul 2018 14:35:44 +0200 Subject: update vendor --- vendor/github.com/golang/mock/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'vendor/github.com/golang/mock/README.md') 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. -- cgit v1.2.3