secondservicetest

package
v1.26.2 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2018 License: MIT Imports: 4 Imported by: 0

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 SecondService.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

Build a new mock client for service SecondService.

mockCtrl := gomock.NewController(t)
client := secondservicetest.NewMockClient(mockCtrl)

Use EXPECT() to set expectations on the mock.

func (*MockClient) BlahBlah

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

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

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *_MockClientRecorder

EXPECT returns an object that allows you to define an expectation on the SecondService mock client.

func (*MockClient) SecondtestString

func (m *MockClient) SecondtestString(
	ctx context.Context,
	_Thing *string,
	opts ...yarpc.CallOption,
) (success string, err error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL