Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient implements a gomock-compatible mock client for service Hello.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
Build a new mock client for service Hello.
mockCtrl := gomock.NewController(t) client := hellotest.NewMockClient(mockCtrl)
Use EXPECT() to set expectations on the mock.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *_MockClientRecorder
EXPECT returns an object that allows you to define an expectation on the Hello mock client.
func (*MockClient) Sink ¶
func (m *MockClient) Sink( ctx context.Context, _Snk *sink.SinkRequest, opts ...yarpc.CallOption, ) (ack yarpc.Ack, err error)
Sink responds to a Sink call based on the mock expectations. This call will fail if the mock does not expect this call. Use EXPECT to expect a call to this function.
client.EXPECT().Sink(gomock.Any(), ...).Return(...) ... := client.Sink(...)
Click to show internal directories.
Click to hide internal directories.