Documentation
¶
Index ¶
- type MockTestServiceServer
- func (_mock *MockTestServiceServer) CacheableUnaryCall(context1 context.Context, simpleRequest *grpc_testing.SimpleRequest) (*grpc_testing.SimpleResponse, error)
- func (_m *MockTestServiceServer) EXPECT() *MockTestServiceServer_Expecter
- func (_mock *MockTestServiceServer) EmptyCall(context1 context.Context, empty *grpc_testing.Empty) (*grpc_testing.Empty, error)
- func (_mock *MockTestServiceServer) FullDuplexCall(...) error
- func (_mock *MockTestServiceServer) HalfDuplexCall(...) error
- func (_mock *MockTestServiceServer) StreamingInputCall(...) error
- func (_mock *MockTestServiceServer) StreamingOutputCall(streamingOutputCallRequest *grpc_testing.StreamingOutputCallRequest, ...) error
- func (_mock *MockTestServiceServer) UnaryCall(context1 context.Context, simpleRequest *grpc_testing.SimpleRequest) (*grpc_testing.SimpleResponse, error)
- func (_mock *MockTestServiceServer) UnimplementedCall(context1 context.Context, empty *grpc_testing.Empty) (*grpc_testing.Empty, error)
- type MockTestServiceServer_CacheableUnaryCall_Call
- func (_c *MockTestServiceServer_CacheableUnaryCall_Call) Return(simpleResponse *grpc_testing.SimpleResponse, err error) *MockTestServiceServer_CacheableUnaryCall_Call
- func (_c *MockTestServiceServer_CacheableUnaryCall_Call) Run(run func(context1 context.Context, simpleRequest *grpc_testing.SimpleRequest)) *MockTestServiceServer_CacheableUnaryCall_Call
- func (_c *MockTestServiceServer_CacheableUnaryCall_Call) RunAndReturn(...) *MockTestServiceServer_CacheableUnaryCall_Call
- type MockTestServiceServer_EmptyCall_Call
- func (_c *MockTestServiceServer_EmptyCall_Call) Return(empty1 *grpc_testing.Empty, err error) *MockTestServiceServer_EmptyCall_Call
- func (_c *MockTestServiceServer_EmptyCall_Call) Run(run func(context1 context.Context, empty *grpc_testing.Empty)) *MockTestServiceServer_EmptyCall_Call
- func (_c *MockTestServiceServer_EmptyCall_Call) RunAndReturn(...) *MockTestServiceServer_EmptyCall_Call
- type MockTestServiceServer_Expecter
- func (_e *MockTestServiceServer_Expecter) CacheableUnaryCall(context1 interface{}, simpleRequest interface{}) *MockTestServiceServer_CacheableUnaryCall_Call
- func (_e *MockTestServiceServer_Expecter) EmptyCall(context1 interface{}, empty interface{}) *MockTestServiceServer_EmptyCall_Call
- func (_e *MockTestServiceServer_Expecter) FullDuplexCall(bidiStreamingServer interface{}) *MockTestServiceServer_FullDuplexCall_Call
- func (_e *MockTestServiceServer_Expecter) HalfDuplexCall(bidiStreamingServer interface{}) *MockTestServiceServer_HalfDuplexCall_Call
- func (_e *MockTestServiceServer_Expecter) StreamingInputCall(clientStreamingServer interface{}) *MockTestServiceServer_StreamingInputCall_Call
- func (_e *MockTestServiceServer_Expecter) StreamingOutputCall(streamingOutputCallRequest interface{}, serverStreamingServer interface{}) *MockTestServiceServer_StreamingOutputCall_Call
- func (_e *MockTestServiceServer_Expecter) UnaryCall(context1 interface{}, simpleRequest interface{}) *MockTestServiceServer_UnaryCall_Call
- func (_e *MockTestServiceServer_Expecter) UnimplementedCall(context1 interface{}, empty interface{}) *MockTestServiceServer_UnimplementedCall_Call
- type MockTestServiceServer_FullDuplexCall_Call
- func (_c *MockTestServiceServer_FullDuplexCall_Call) Return(err error) *MockTestServiceServer_FullDuplexCall_Call
- func (_c *MockTestServiceServer_FullDuplexCall_Call) Run(run func(...)) *MockTestServiceServer_FullDuplexCall_Call
- func (_c *MockTestServiceServer_FullDuplexCall_Call) RunAndReturn(run func(...) error) *MockTestServiceServer_FullDuplexCall_Call
- type MockTestServiceServer_HalfDuplexCall_Call
- func (_c *MockTestServiceServer_HalfDuplexCall_Call) Return(err error) *MockTestServiceServer_HalfDuplexCall_Call
- func (_c *MockTestServiceServer_HalfDuplexCall_Call) Run(run func(...)) *MockTestServiceServer_HalfDuplexCall_Call
- func (_c *MockTestServiceServer_HalfDuplexCall_Call) RunAndReturn(run func(...) error) *MockTestServiceServer_HalfDuplexCall_Call
- type MockTestServiceServer_StreamingInputCall_Call
- func (_c *MockTestServiceServer_StreamingInputCall_Call) Return(err error) *MockTestServiceServer_StreamingInputCall_Call
- func (_c *MockTestServiceServer_StreamingInputCall_Call) Run(run func(...)) *MockTestServiceServer_StreamingInputCall_Call
- func (_c *MockTestServiceServer_StreamingInputCall_Call) RunAndReturn(run func(...) error) *MockTestServiceServer_StreamingInputCall_Call
- type MockTestServiceServer_StreamingOutputCall_Call
- func (_c *MockTestServiceServer_StreamingOutputCall_Call) Return(err error) *MockTestServiceServer_StreamingOutputCall_Call
- func (_c *MockTestServiceServer_StreamingOutputCall_Call) Run(...) *MockTestServiceServer_StreamingOutputCall_Call
- func (_c *MockTestServiceServer_StreamingOutputCall_Call) RunAndReturn(...) *MockTestServiceServer_StreamingOutputCall_Call
- type MockTestServiceServer_UnaryCall_Call
- func (_c *MockTestServiceServer_UnaryCall_Call) Return(simpleResponse *grpc_testing.SimpleResponse, err error) *MockTestServiceServer_UnaryCall_Call
- func (_c *MockTestServiceServer_UnaryCall_Call) Run(run func(context1 context.Context, simpleRequest *grpc_testing.SimpleRequest)) *MockTestServiceServer_UnaryCall_Call
- func (_c *MockTestServiceServer_UnaryCall_Call) RunAndReturn(...) *MockTestServiceServer_UnaryCall_Call
- type MockTestServiceServer_UnimplementedCall_Call
- func (_c *MockTestServiceServer_UnimplementedCall_Call) Return(empty1 *grpc_testing.Empty, err error) *MockTestServiceServer_UnimplementedCall_Call
- func (_c *MockTestServiceServer_UnimplementedCall_Call) Run(run func(context1 context.Context, empty *grpc_testing.Empty)) *MockTestServiceServer_UnimplementedCall_Call
- func (_c *MockTestServiceServer_UnimplementedCall_Call) RunAndReturn(...) *MockTestServiceServer_UnimplementedCall_Call
- type MockTestServiceServer_mustEmbedUnimplementedTestServiceServer_Call
- func (_c *MockTestServiceServer_mustEmbedUnimplementedTestServiceServer_Call) Return() *MockTestServiceServer_mustEmbedUnimplementedTestServiceServer_Call
- func (_c *MockTestServiceServer_mustEmbedUnimplementedTestServiceServer_Call) Run(run func()) *MockTestServiceServer_mustEmbedUnimplementedTestServiceServer_Call
- func (_c *MockTestServiceServer_mustEmbedUnimplementedTestServiceServer_Call) RunAndReturn(run func()) *MockTestServiceServer_mustEmbedUnimplementedTestServiceServer_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTestServiceServer ¶
type MockTestServiceServer struct {
grpc_testing.UnimplementedTestServiceServer
mock.Mock
}
MockTestServiceServer is an autogenerated mock type for the TestServiceServer type
func NewMockTestServiceServer ¶
func NewMockTestServiceServer(t interface {
mock.TestingT
Cleanup(func())
}) *MockTestServiceServer
NewMockTestServiceServer creates a new instance of MockTestServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockTestServiceServer) CacheableUnaryCall ¶
func (_mock *MockTestServiceServer) CacheableUnaryCall(context1 context.Context, simpleRequest *grpc_testing.SimpleRequest) (*grpc_testing.SimpleResponse, error)
CacheableUnaryCall provides a mock function for the type MockTestServiceServer
func (*MockTestServiceServer) EXPECT ¶
func (_m *MockTestServiceServer) EXPECT() *MockTestServiceServer_Expecter
func (*MockTestServiceServer) EmptyCall ¶
func (_mock *MockTestServiceServer) EmptyCall(context1 context.Context, empty *grpc_testing.Empty) (*grpc_testing.Empty, error)
EmptyCall provides a mock function for the type MockTestServiceServer
func (*MockTestServiceServer) FullDuplexCall ¶
func (_mock *MockTestServiceServer) FullDuplexCall(bidiStreamingServer grpc.BidiStreamingServer[grpc_testing.StreamingOutputCallRequest, grpc_testing.StreamingOutputCallResponse]) error
FullDuplexCall provides a mock function for the type MockTestServiceServer
func (*MockTestServiceServer) HalfDuplexCall ¶
func (_mock *MockTestServiceServer) HalfDuplexCall(bidiStreamingServer grpc.BidiStreamingServer[grpc_testing.StreamingOutputCallRequest, grpc_testing.StreamingOutputCallResponse]) error
HalfDuplexCall provides a mock function for the type MockTestServiceServer
func (*MockTestServiceServer) StreamingInputCall ¶
func (_mock *MockTestServiceServer) StreamingInputCall(clientStreamingServer grpc.ClientStreamingServer[grpc_testing.StreamingInputCallRequest, grpc_testing.StreamingInputCallResponse]) error
StreamingInputCall provides a mock function for the type MockTestServiceServer
func (*MockTestServiceServer) StreamingOutputCall ¶
func (_mock *MockTestServiceServer) StreamingOutputCall(streamingOutputCallRequest *grpc_testing.StreamingOutputCallRequest, serverStreamingServer grpc.ServerStreamingServer[grpc_testing.StreamingOutputCallResponse]) error
StreamingOutputCall provides a mock function for the type MockTestServiceServer
func (*MockTestServiceServer) UnaryCall ¶
func (_mock *MockTestServiceServer) UnaryCall(context1 context.Context, simpleRequest *grpc_testing.SimpleRequest) (*grpc_testing.SimpleResponse, error)
UnaryCall provides a mock function for the type MockTestServiceServer
func (*MockTestServiceServer) UnimplementedCall ¶
func (_mock *MockTestServiceServer) UnimplementedCall(context1 context.Context, empty *grpc_testing.Empty) (*grpc_testing.Empty, error)
UnimplementedCall provides a mock function for the type MockTestServiceServer
type MockTestServiceServer_CacheableUnaryCall_Call ¶
MockTestServiceServer_CacheableUnaryCall_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CacheableUnaryCall'
func (*MockTestServiceServer_CacheableUnaryCall_Call) Return ¶
func (_c *MockTestServiceServer_CacheableUnaryCall_Call) Return(simpleResponse *grpc_testing.SimpleResponse, err error) *MockTestServiceServer_CacheableUnaryCall_Call
func (*MockTestServiceServer_CacheableUnaryCall_Call) Run ¶
func (_c *MockTestServiceServer_CacheableUnaryCall_Call) Run(run func(context1 context.Context, simpleRequest *grpc_testing.SimpleRequest)) *MockTestServiceServer_CacheableUnaryCall_Call
func (*MockTestServiceServer_CacheableUnaryCall_Call) RunAndReturn ¶
func (_c *MockTestServiceServer_CacheableUnaryCall_Call) RunAndReturn(run func(context1 context.Context, simpleRequest *grpc_testing.SimpleRequest) (*grpc_testing.SimpleResponse, error)) *MockTestServiceServer_CacheableUnaryCall_Call
type MockTestServiceServer_EmptyCall_Call ¶
MockTestServiceServer_EmptyCall_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EmptyCall'
func (*MockTestServiceServer_EmptyCall_Call) Return ¶
func (_c *MockTestServiceServer_EmptyCall_Call) Return(empty1 *grpc_testing.Empty, err error) *MockTestServiceServer_EmptyCall_Call
func (*MockTestServiceServer_EmptyCall_Call) Run ¶
func (_c *MockTestServiceServer_EmptyCall_Call) Run(run func(context1 context.Context, empty *grpc_testing.Empty)) *MockTestServiceServer_EmptyCall_Call
func (*MockTestServiceServer_EmptyCall_Call) RunAndReturn ¶
func (_c *MockTestServiceServer_EmptyCall_Call) RunAndReturn(run func(context1 context.Context, empty *grpc_testing.Empty) (*grpc_testing.Empty, error)) *MockTestServiceServer_EmptyCall_Call
type MockTestServiceServer_Expecter ¶
type MockTestServiceServer_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTestServiceServer_Expecter) CacheableUnaryCall ¶
func (_e *MockTestServiceServer_Expecter) CacheableUnaryCall(context1 interface{}, simpleRequest interface{}) *MockTestServiceServer_CacheableUnaryCall_Call
CacheableUnaryCall is a helper method to define mock.On call
- context1 context.Context
- simpleRequest *grpc_testing.SimpleRequest
func (*MockTestServiceServer_Expecter) EmptyCall ¶
func (_e *MockTestServiceServer_Expecter) EmptyCall(context1 interface{}, empty interface{}) *MockTestServiceServer_EmptyCall_Call
EmptyCall is a helper method to define mock.On call
- context1 context.Context
- empty *grpc_testing.Empty
func (*MockTestServiceServer_Expecter) FullDuplexCall ¶
func (_e *MockTestServiceServer_Expecter) FullDuplexCall(bidiStreamingServer interface{}) *MockTestServiceServer_FullDuplexCall_Call
FullDuplexCall is a helper method to define mock.On call
- bidiStreamingServer grpc.BidiStreamingServer[grpc_testing.StreamingOutputCallRequest, grpc_testing.StreamingOutputCallResponse]
func (*MockTestServiceServer_Expecter) HalfDuplexCall ¶
func (_e *MockTestServiceServer_Expecter) HalfDuplexCall(bidiStreamingServer interface{}) *MockTestServiceServer_HalfDuplexCall_Call
HalfDuplexCall is a helper method to define mock.On call
- bidiStreamingServer grpc.BidiStreamingServer[grpc_testing.StreamingOutputCallRequest, grpc_testing.StreamingOutputCallResponse]
func (*MockTestServiceServer_Expecter) StreamingInputCall ¶
func (_e *MockTestServiceServer_Expecter) StreamingInputCall(clientStreamingServer interface{}) *MockTestServiceServer_StreamingInputCall_Call
StreamingInputCall is a helper method to define mock.On call
- clientStreamingServer grpc.ClientStreamingServer[grpc_testing.StreamingInputCallRequest, grpc_testing.StreamingInputCallResponse]
func (*MockTestServiceServer_Expecter) StreamingOutputCall ¶
func (_e *MockTestServiceServer_Expecter) StreamingOutputCall(streamingOutputCallRequest interface{}, serverStreamingServer interface{}) *MockTestServiceServer_StreamingOutputCall_Call
StreamingOutputCall is a helper method to define mock.On call
- streamingOutputCallRequest *grpc_testing.StreamingOutputCallRequest
- serverStreamingServer grpc.ServerStreamingServer[grpc_testing.StreamingOutputCallResponse]
func (*MockTestServiceServer_Expecter) UnaryCall ¶
func (_e *MockTestServiceServer_Expecter) UnaryCall(context1 interface{}, simpleRequest interface{}) *MockTestServiceServer_UnaryCall_Call
UnaryCall is a helper method to define mock.On call
- context1 context.Context
- simpleRequest *grpc_testing.SimpleRequest
func (*MockTestServiceServer_Expecter) UnimplementedCall ¶
func (_e *MockTestServiceServer_Expecter) UnimplementedCall(context1 interface{}, empty interface{}) *MockTestServiceServer_UnimplementedCall_Call
UnimplementedCall is a helper method to define mock.On call
- context1 context.Context
- empty *grpc_testing.Empty
type MockTestServiceServer_FullDuplexCall_Call ¶
MockTestServiceServer_FullDuplexCall_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FullDuplexCall'
func (*MockTestServiceServer_FullDuplexCall_Call) Return ¶
func (_c *MockTestServiceServer_FullDuplexCall_Call) Return(err error) *MockTestServiceServer_FullDuplexCall_Call
func (*MockTestServiceServer_FullDuplexCall_Call) Run ¶
func (_c *MockTestServiceServer_FullDuplexCall_Call) Run(run func(bidiStreamingServer grpc.BidiStreamingServer[grpc_testing.StreamingOutputCallRequest, grpc_testing.StreamingOutputCallResponse])) *MockTestServiceServer_FullDuplexCall_Call
func (*MockTestServiceServer_FullDuplexCall_Call) RunAndReturn ¶
func (_c *MockTestServiceServer_FullDuplexCall_Call) RunAndReturn(run func(bidiStreamingServer grpc.BidiStreamingServer[grpc_testing.StreamingOutputCallRequest, grpc_testing.StreamingOutputCallResponse]) error) *MockTestServiceServer_FullDuplexCall_Call
type MockTestServiceServer_HalfDuplexCall_Call ¶
MockTestServiceServer_HalfDuplexCall_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HalfDuplexCall'
func (*MockTestServiceServer_HalfDuplexCall_Call) Return ¶
func (_c *MockTestServiceServer_HalfDuplexCall_Call) Return(err error) *MockTestServiceServer_HalfDuplexCall_Call
func (*MockTestServiceServer_HalfDuplexCall_Call) Run ¶
func (_c *MockTestServiceServer_HalfDuplexCall_Call) Run(run func(bidiStreamingServer grpc.BidiStreamingServer[grpc_testing.StreamingOutputCallRequest, grpc_testing.StreamingOutputCallResponse])) *MockTestServiceServer_HalfDuplexCall_Call
func (*MockTestServiceServer_HalfDuplexCall_Call) RunAndReturn ¶
func (_c *MockTestServiceServer_HalfDuplexCall_Call) RunAndReturn(run func(bidiStreamingServer grpc.BidiStreamingServer[grpc_testing.StreamingOutputCallRequest, grpc_testing.StreamingOutputCallResponse]) error) *MockTestServiceServer_HalfDuplexCall_Call
type MockTestServiceServer_StreamingInputCall_Call ¶
MockTestServiceServer_StreamingInputCall_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StreamingInputCall'
func (*MockTestServiceServer_StreamingInputCall_Call) Return ¶
func (_c *MockTestServiceServer_StreamingInputCall_Call) Return(err error) *MockTestServiceServer_StreamingInputCall_Call
func (*MockTestServiceServer_StreamingInputCall_Call) Run ¶
func (_c *MockTestServiceServer_StreamingInputCall_Call) Run(run func(clientStreamingServer grpc.ClientStreamingServer[grpc_testing.StreamingInputCallRequest, grpc_testing.StreamingInputCallResponse])) *MockTestServiceServer_StreamingInputCall_Call
func (*MockTestServiceServer_StreamingInputCall_Call) RunAndReturn ¶
func (_c *MockTestServiceServer_StreamingInputCall_Call) RunAndReturn(run func(clientStreamingServer grpc.ClientStreamingServer[grpc_testing.StreamingInputCallRequest, grpc_testing.StreamingInputCallResponse]) error) *MockTestServiceServer_StreamingInputCall_Call
type MockTestServiceServer_StreamingOutputCall_Call ¶
MockTestServiceServer_StreamingOutputCall_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StreamingOutputCall'
func (*MockTestServiceServer_StreamingOutputCall_Call) Return ¶
func (_c *MockTestServiceServer_StreamingOutputCall_Call) Return(err error) *MockTestServiceServer_StreamingOutputCall_Call
func (*MockTestServiceServer_StreamingOutputCall_Call) Run ¶
func (_c *MockTestServiceServer_StreamingOutputCall_Call) Run(run func(streamingOutputCallRequest *grpc_testing.StreamingOutputCallRequest, serverStreamingServer grpc.ServerStreamingServer[grpc_testing.StreamingOutputCallResponse])) *MockTestServiceServer_StreamingOutputCall_Call
func (*MockTestServiceServer_StreamingOutputCall_Call) RunAndReturn ¶
func (_c *MockTestServiceServer_StreamingOutputCall_Call) RunAndReturn(run func(streamingOutputCallRequest *grpc_testing.StreamingOutputCallRequest, serverStreamingServer grpc.ServerStreamingServer[grpc_testing.StreamingOutputCallResponse]) error) *MockTestServiceServer_StreamingOutputCall_Call
type MockTestServiceServer_UnaryCall_Call ¶
MockTestServiceServer_UnaryCall_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnaryCall'
func (*MockTestServiceServer_UnaryCall_Call) Return ¶
func (_c *MockTestServiceServer_UnaryCall_Call) Return(simpleResponse *grpc_testing.SimpleResponse, err error) *MockTestServiceServer_UnaryCall_Call
func (*MockTestServiceServer_UnaryCall_Call) Run ¶
func (_c *MockTestServiceServer_UnaryCall_Call) Run(run func(context1 context.Context, simpleRequest *grpc_testing.SimpleRequest)) *MockTestServiceServer_UnaryCall_Call
func (*MockTestServiceServer_UnaryCall_Call) RunAndReturn ¶
func (_c *MockTestServiceServer_UnaryCall_Call) RunAndReturn(run func(context1 context.Context, simpleRequest *grpc_testing.SimpleRequest) (*grpc_testing.SimpleResponse, error)) *MockTestServiceServer_UnaryCall_Call
type MockTestServiceServer_UnimplementedCall_Call ¶
MockTestServiceServer_UnimplementedCall_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnimplementedCall'
func (*MockTestServiceServer_UnimplementedCall_Call) Return ¶
func (_c *MockTestServiceServer_UnimplementedCall_Call) Return(empty1 *grpc_testing.Empty, err error) *MockTestServiceServer_UnimplementedCall_Call
func (*MockTestServiceServer_UnimplementedCall_Call) Run ¶
func (_c *MockTestServiceServer_UnimplementedCall_Call) Run(run func(context1 context.Context, empty *grpc_testing.Empty)) *MockTestServiceServer_UnimplementedCall_Call
func (*MockTestServiceServer_UnimplementedCall_Call) RunAndReturn ¶
func (_c *MockTestServiceServer_UnimplementedCall_Call) RunAndReturn(run func(context1 context.Context, empty *grpc_testing.Empty) (*grpc_testing.Empty, error)) *MockTestServiceServer_UnimplementedCall_Call
type MockTestServiceServer_mustEmbedUnimplementedTestServiceServer_Call ¶
MockTestServiceServer_mustEmbedUnimplementedTestServiceServer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'mustEmbedUnimplementedTestServiceServer'
func (*MockTestServiceServer_mustEmbedUnimplementedTestServiceServer_Call) RunAndReturn ¶
func (_c *MockTestServiceServer_mustEmbedUnimplementedTestServiceServer_Call) RunAndReturn(run func()) *MockTestServiceServer_mustEmbedUnimplementedTestServiceServer_Call