You need to sign in or sign up before continuing.
Implement testing package for gomock based tests
This change set refactors the client to use interfaces for its service fields instead of structs. This allows applications using the client to mock the API methods.
This change set also comes with a testing
package that provides
gomock
. It's possible to generate custom mocks / fakes or whatever,
too. See the README for details.
Edited by Timo Furrer