Version: v1.54.0 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2021 License: MIT Imports: 4 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


type MockClient

type MockClient struct {
	// contains filtered or unexported fields

MockClient implements a gomock-compatible mock client for service BaseService.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

Build a new mock client for service BaseService.

mockCtrl := gomock.NewController(t)
client := baseservicetest.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 BaseService mock client.

func (*MockClient) Healthy

func (m *MockClient) Healthy(
	ctx context.Context,
	opts ...yarpc.CallOption,
) (success bool, err error)

Healthy responds to a Healthy 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().Healthy(gomock.Any(), ...).Return(...)
... := client.Healthy(...)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto