Documentation ¶
Overview ¶
Package mock_helloworld is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockGreeterClient ¶
type MockGreeterClient struct {
// contains filtered or unexported fields
}
MockGreeterClient is a mock of GreeterClient interface
func NewMockGreeterClient ¶
func NewMockGreeterClient(ctrl *gomock.Controller) *MockGreeterClient
NewMockGreeterClient creates a new mock instance
func (*MockGreeterClient) EXPECT ¶
func (m *MockGreeterClient) EXPECT() *MockGreeterClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockGreeterClient) SayHello ¶
func (m *MockGreeterClient) SayHello(ctx context.Context, in *helloworld.HelloRequest, opts ...grpc.CallOption) (*helloworld.HelloReply, error)
SayHello mocks base method
type MockGreeterClientMockRecorder ¶
type MockGreeterClientMockRecorder struct {
// contains filtered or unexported fields
}
MockGreeterClientMockRecorder is the mock recorder for MockGreeterClient
func (*MockGreeterClientMockRecorder) SayHello ¶
func (mr *MockGreeterClientMockRecorder) SayHello(ctx, in interface{}, opts ...interface{}) *gomock.Call
SayHello indicates an expected call of SayHello
type MockGreeterServer ¶
type MockGreeterServer struct {
// contains filtered or unexported fields
}
MockGreeterServer is a mock of GreeterServer interface
func NewMockGreeterServer ¶
func NewMockGreeterServer(ctrl *gomock.Controller) *MockGreeterServer
NewMockGreeterServer creates a new mock instance
func (*MockGreeterServer) EXPECT ¶
func (m *MockGreeterServer) EXPECT() *MockGreeterServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockGreeterServer) SayHello ¶
func (m *MockGreeterServer) SayHello(arg0 context.Context, arg1 *helloworld.HelloRequest) (*helloworld.HelloReply, error)
SayHello mocks base method
type MockGreeterServerMockRecorder ¶
type MockGreeterServerMockRecorder struct {
// contains filtered or unexported fields
}
MockGreeterServerMockRecorder is the mock recorder for MockGreeterServer
func (*MockGreeterServerMockRecorder) SayHello ¶
func (mr *MockGreeterServerMockRecorder) SayHello(arg0, arg1 interface{}) *gomock.Call
SayHello indicates an expected call of SayHello