Documentation ¶
Index ¶
- type MockBidiStreamingServer
- func (_m *MockBidiStreamingServer[Req, Res]) Context() context.Context
- func (_m *MockBidiStreamingServer[Req, Res]) EXPECT() *MockBidiStreamingServer_Expecter[Req, Res]
- func (_m *MockBidiStreamingServer[Req, Res]) Recv() (*Req, error)
- func (_m *MockBidiStreamingServer[Req, Res]) RecvMsg(m interface{}) error
- func (_m *MockBidiStreamingServer[Req, Res]) Send(_a0 *Res) error
- func (_m *MockBidiStreamingServer[Req, Res]) SendHeader(_a0 metadata.MD) error
- func (_m *MockBidiStreamingServer[Req, Res]) SendMsg(m interface{}) error
- func (_m *MockBidiStreamingServer[Req, Res]) SetHeader(_a0 metadata.MD) error
- func (_m *MockBidiStreamingServer[Req, Res]) SetTrailer(_a0 metadata.MD)
- type MockBidiStreamingServer_Context_Call
- func (_c *MockBidiStreamingServer_Context_Call[Req, Res]) Return(_a0 context.Context) *MockBidiStreamingServer_Context_Call[Req, Res]
- func (_c *MockBidiStreamingServer_Context_Call[Req, Res]) Run(run func()) *MockBidiStreamingServer_Context_Call[Req, Res]
- func (_c *MockBidiStreamingServer_Context_Call[Req, Res]) RunAndReturn(run func() context.Context) *MockBidiStreamingServer_Context_Call[Req, Res]
- type MockBidiStreamingServer_Expecter
- func (_e *MockBidiStreamingServer_Expecter[Req, Res]) Context() *MockBidiStreamingServer_Context_Call[Req, Res]
- func (_e *MockBidiStreamingServer_Expecter[Req, Res]) Recv() *MockBidiStreamingServer_Recv_Call[Req, Res]
- func (_e *MockBidiStreamingServer_Expecter[Req, Res]) RecvMsg(m interface{}) *MockBidiStreamingServer_RecvMsg_Call[Req, Res]
- func (_e *MockBidiStreamingServer_Expecter[Req, Res]) Send(_a0 interface{}) *MockBidiStreamingServer_Send_Call[Req, Res]
- func (_e *MockBidiStreamingServer_Expecter[Req, Res]) SendHeader(_a0 interface{}) *MockBidiStreamingServer_SendHeader_Call[Req, Res]
- func (_e *MockBidiStreamingServer_Expecter[Req, Res]) SendMsg(m interface{}) *MockBidiStreamingServer_SendMsg_Call[Req, Res]
- func (_e *MockBidiStreamingServer_Expecter[Req, Res]) SetHeader(_a0 interface{}) *MockBidiStreamingServer_SetHeader_Call[Req, Res]
- func (_e *MockBidiStreamingServer_Expecter[Req, Res]) SetTrailer(_a0 interface{}) *MockBidiStreamingServer_SetTrailer_Call[Req, Res]
- type MockBidiStreamingServer_RecvMsg_Call
- func (_c *MockBidiStreamingServer_RecvMsg_Call[Req, Res]) Return(_a0 error) *MockBidiStreamingServer_RecvMsg_Call[Req, Res]
- func (_c *MockBidiStreamingServer_RecvMsg_Call[Req, Res]) Run(run func(m interface{})) *MockBidiStreamingServer_RecvMsg_Call[Req, Res]
- func (_c *MockBidiStreamingServer_RecvMsg_Call[Req, Res]) RunAndReturn(run func(interface{}) error) *MockBidiStreamingServer_RecvMsg_Call[Req, Res]
- type MockBidiStreamingServer_Recv_Call
- func (_c *MockBidiStreamingServer_Recv_Call[Req, Res]) Return(_a0 *Req, _a1 error) *MockBidiStreamingServer_Recv_Call[Req, Res]
- func (_c *MockBidiStreamingServer_Recv_Call[Req, Res]) Run(run func()) *MockBidiStreamingServer_Recv_Call[Req, Res]
- func (_c *MockBidiStreamingServer_Recv_Call[Req, Res]) RunAndReturn(run func() (*Req, error)) *MockBidiStreamingServer_Recv_Call[Req, Res]
- type MockBidiStreamingServer_SendHeader_Call
- func (_c *MockBidiStreamingServer_SendHeader_Call[Req, Res]) Return(_a0 error) *MockBidiStreamingServer_SendHeader_Call[Req, Res]
- func (_c *MockBidiStreamingServer_SendHeader_Call[Req, Res]) Run(run func(_a0 metadata.MD)) *MockBidiStreamingServer_SendHeader_Call[Req, Res]
- func (_c *MockBidiStreamingServer_SendHeader_Call[Req, Res]) RunAndReturn(run func(metadata.MD) error) *MockBidiStreamingServer_SendHeader_Call[Req, Res]
- type MockBidiStreamingServer_SendMsg_Call
- func (_c *MockBidiStreamingServer_SendMsg_Call[Req, Res]) Return(_a0 error) *MockBidiStreamingServer_SendMsg_Call[Req, Res]
- func (_c *MockBidiStreamingServer_SendMsg_Call[Req, Res]) Run(run func(m interface{})) *MockBidiStreamingServer_SendMsg_Call[Req, Res]
- func (_c *MockBidiStreamingServer_SendMsg_Call[Req, Res]) RunAndReturn(run func(interface{}) error) *MockBidiStreamingServer_SendMsg_Call[Req, Res]
- type MockBidiStreamingServer_Send_Call
- func (_c *MockBidiStreamingServer_Send_Call[Req, Res]) Return(_a0 error) *MockBidiStreamingServer_Send_Call[Req, Res]
- func (_c *MockBidiStreamingServer_Send_Call[Req, Res]) Run(run func(_a0 *Res)) *MockBidiStreamingServer_Send_Call[Req, Res]
- func (_c *MockBidiStreamingServer_Send_Call[Req, Res]) RunAndReturn(run func(*Res) error) *MockBidiStreamingServer_Send_Call[Req, Res]
- type MockBidiStreamingServer_SetHeader_Call
- func (_c *MockBidiStreamingServer_SetHeader_Call[Req, Res]) Return(_a0 error) *MockBidiStreamingServer_SetHeader_Call[Req, Res]
- func (_c *MockBidiStreamingServer_SetHeader_Call[Req, Res]) Run(run func(_a0 metadata.MD)) *MockBidiStreamingServer_SetHeader_Call[Req, Res]
- func (_c *MockBidiStreamingServer_SetHeader_Call[Req, Res]) RunAndReturn(run func(metadata.MD) error) *MockBidiStreamingServer_SetHeader_Call[Req, Res]
- type MockBidiStreamingServer_SetTrailer_Call
- func (_c *MockBidiStreamingServer_SetTrailer_Call[Req, Res]) Return() *MockBidiStreamingServer_SetTrailer_Call[Req, Res]
- func (_c *MockBidiStreamingServer_SetTrailer_Call[Req, Res]) Run(run func(_a0 metadata.MD)) *MockBidiStreamingServer_SetTrailer_Call[Req, Res]
- func (_c *MockBidiStreamingServer_SetTrailer_Call[Req, Res]) RunAndReturn(run func(metadata.MD)) *MockBidiStreamingServer_SetTrailer_Call[Req, Res]
- type MockStreamClientInterceptor
- type MockStreamClientInterceptor_Execute_Call
- func (_c *MockStreamClientInterceptor_Execute_Call) Return(_a0 grpc.ClientStream, _a1 error) *MockStreamClientInterceptor_Execute_Call
- func (_c *MockStreamClientInterceptor_Execute_Call) Run(...) *MockStreamClientInterceptor_Execute_Call
- func (_c *MockStreamClientInterceptor_Execute_Call) RunAndReturn(...) *MockStreamClientInterceptor_Execute_Call
- type MockStreamClientInterceptor_Expecter
- type MockStreamServerInterceptor
- type MockStreamServerInterceptor_Execute_Call
- func (_c *MockStreamServerInterceptor_Execute_Call) Return(_a0 error) *MockStreamServerInterceptor_Execute_Call
- func (_c *MockStreamServerInterceptor_Execute_Call) Run(...) *MockStreamServerInterceptor_Execute_Call
- func (_c *MockStreamServerInterceptor_Execute_Call) RunAndReturn(...) *MockStreamServerInterceptor_Execute_Call
- type MockStreamServerInterceptor_Expecter
- type MockUnaryClientInterceptor
- type MockUnaryClientInterceptor_Execute_Call
- func (_c *MockUnaryClientInterceptor_Execute_Call) Return(_a0 error) *MockUnaryClientInterceptor_Execute_Call
- func (_c *MockUnaryClientInterceptor_Execute_Call) Run(...) *MockUnaryClientInterceptor_Execute_Call
- func (_c *MockUnaryClientInterceptor_Execute_Call) RunAndReturn(...) *MockUnaryClientInterceptor_Execute_Call
- type MockUnaryClientInterceptor_Expecter
- type MockUnaryServerInterceptor
- type MockUnaryServerInterceptor_Execute_Call
- func (_c *MockUnaryServerInterceptor_Execute_Call) Return(resp interface{}, err error) *MockUnaryServerInterceptor_Execute_Call
- func (_c *MockUnaryServerInterceptor_Execute_Call) Run(...) *MockUnaryServerInterceptor_Execute_Call
- func (_c *MockUnaryServerInterceptor_Execute_Call) RunAndReturn(...) *MockUnaryServerInterceptor_Execute_Call
- type MockUnaryServerInterceptor_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBidiStreamingServer ¶ added in v0.1.8
MockBidiStreamingServer is an autogenerated mock type for the BidiStreamingServer type
func NewMockBidiStreamingServer ¶ added in v0.1.8
func NewMockBidiStreamingServer[Req interface{}, Res interface{}](t interface { mock.TestingT Cleanup(func()) }) *MockBidiStreamingServer[Req, Res]
NewMockBidiStreamingServer creates a new instance of MockBidiStreamingServer. 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 (*MockBidiStreamingServer[Req, Res]) Context ¶ added in v0.1.8
func (_m *MockBidiStreamingServer[Req, Res]) Context() context.Context
Context provides a mock function with given fields:
func (*MockBidiStreamingServer[Req, Res]) EXPECT ¶ added in v0.1.8
func (_m *MockBidiStreamingServer[Req, Res]) EXPECT() *MockBidiStreamingServer_Expecter[Req, Res]
func (*MockBidiStreamingServer[Req, Res]) Recv ¶ added in v0.1.8
func (_m *MockBidiStreamingServer[Req, Res]) Recv() (*Req, error)
Recv provides a mock function with given fields:
func (*MockBidiStreamingServer[Req, Res]) RecvMsg ¶ added in v0.1.8
func (_m *MockBidiStreamingServer[Req, Res]) RecvMsg(m interface{}) error
RecvMsg provides a mock function with given fields: m
func (*MockBidiStreamingServer[Req, Res]) Send ¶ added in v0.1.8
func (_m *MockBidiStreamingServer[Req, Res]) Send(_a0 *Res) error
Send provides a mock function with given fields: _a0
func (*MockBidiStreamingServer[Req, Res]) SendHeader ¶ added in v0.1.8
func (_m *MockBidiStreamingServer[Req, Res]) SendHeader(_a0 metadata.MD) error
SendHeader provides a mock function with given fields: _a0
func (*MockBidiStreamingServer[Req, Res]) SendMsg ¶ added in v0.1.8
func (_m *MockBidiStreamingServer[Req, Res]) SendMsg(m interface{}) error
SendMsg provides a mock function with given fields: m
func (*MockBidiStreamingServer[Req, Res]) SetHeader ¶ added in v0.1.8
func (_m *MockBidiStreamingServer[Req, Res]) SetHeader(_a0 metadata.MD) error
SetHeader provides a mock function with given fields: _a0
func (*MockBidiStreamingServer[Req, Res]) SetTrailer ¶ added in v0.1.8
func (_m *MockBidiStreamingServer[Req, Res]) SetTrailer(_a0 metadata.MD)
SetTrailer provides a mock function with given fields: _a0
type MockBidiStreamingServer_Context_Call ¶ added in v0.1.8
MockBidiStreamingServer_Context_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Context'
func (*MockBidiStreamingServer_Context_Call[Req, Res]) Return ¶ added in v0.1.8
func (_c *MockBidiStreamingServer_Context_Call[Req, Res]) Return(_a0 context.Context) *MockBidiStreamingServer_Context_Call[Req, Res]
func (*MockBidiStreamingServer_Context_Call[Req, Res]) Run ¶ added in v0.1.8
func (_c *MockBidiStreamingServer_Context_Call[Req, Res]) Run(run func()) *MockBidiStreamingServer_Context_Call[Req, Res]
func (*MockBidiStreamingServer_Context_Call[Req, Res]) RunAndReturn ¶ added in v0.1.8
func (_c *MockBidiStreamingServer_Context_Call[Req, Res]) RunAndReturn(run func() context.Context) *MockBidiStreamingServer_Context_Call[Req, Res]
type MockBidiStreamingServer_Expecter ¶ added in v0.1.8
type MockBidiStreamingServer_Expecter[Req interface{}, Res interface{}] struct {
// contains filtered or unexported fields
}
func (*MockBidiStreamingServer_Expecter[Req, Res]) Context ¶ added in v0.1.8
func (_e *MockBidiStreamingServer_Expecter[Req, Res]) Context() *MockBidiStreamingServer_Context_Call[Req, Res]
Context is a helper method to define mock.On call
func (*MockBidiStreamingServer_Expecter[Req, Res]) Recv ¶ added in v0.1.8
func (_e *MockBidiStreamingServer_Expecter[Req, Res]) Recv() *MockBidiStreamingServer_Recv_Call[Req, Res]
Recv is a helper method to define mock.On call
func (*MockBidiStreamingServer_Expecter[Req, Res]) RecvMsg ¶ added in v0.1.8
func (_e *MockBidiStreamingServer_Expecter[Req, Res]) RecvMsg(m interface{}) *MockBidiStreamingServer_RecvMsg_Call[Req, Res]
RecvMsg is a helper method to define mock.On call
- m interface{}
func (*MockBidiStreamingServer_Expecter[Req, Res]) Send ¶ added in v0.1.8
func (_e *MockBidiStreamingServer_Expecter[Req, Res]) Send(_a0 interface{}) *MockBidiStreamingServer_Send_Call[Req, Res]
Send is a helper method to define mock.On call
- _a0 *Res
func (*MockBidiStreamingServer_Expecter[Req, Res]) SendHeader ¶ added in v0.1.8
func (_e *MockBidiStreamingServer_Expecter[Req, Res]) SendHeader(_a0 interface{}) *MockBidiStreamingServer_SendHeader_Call[Req, Res]
SendHeader is a helper method to define mock.On call
- _a0 metadata.MD
func (*MockBidiStreamingServer_Expecter[Req, Res]) SendMsg ¶ added in v0.1.8
func (_e *MockBidiStreamingServer_Expecter[Req, Res]) SendMsg(m interface{}) *MockBidiStreamingServer_SendMsg_Call[Req, Res]
SendMsg is a helper method to define mock.On call
- m interface{}
func (*MockBidiStreamingServer_Expecter[Req, Res]) SetHeader ¶ added in v0.1.8
func (_e *MockBidiStreamingServer_Expecter[Req, Res]) SetHeader(_a0 interface{}) *MockBidiStreamingServer_SetHeader_Call[Req, Res]
SetHeader is a helper method to define mock.On call
- _a0 metadata.MD
func (*MockBidiStreamingServer_Expecter[Req, Res]) SetTrailer ¶ added in v0.1.8
func (_e *MockBidiStreamingServer_Expecter[Req, Res]) SetTrailer(_a0 interface{}) *MockBidiStreamingServer_SetTrailer_Call[Req, Res]
SetTrailer is a helper method to define mock.On call
- _a0 metadata.MD
type MockBidiStreamingServer_RecvMsg_Call ¶ added in v0.1.8
MockBidiStreamingServer_RecvMsg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RecvMsg'
func (*MockBidiStreamingServer_RecvMsg_Call[Req, Res]) Return ¶ added in v0.1.8
func (_c *MockBidiStreamingServer_RecvMsg_Call[Req, Res]) Return(_a0 error) *MockBidiStreamingServer_RecvMsg_Call[Req, Res]
func (*MockBidiStreamingServer_RecvMsg_Call[Req, Res]) Run ¶ added in v0.1.8
func (_c *MockBidiStreamingServer_RecvMsg_Call[Req, Res]) Run(run func(m interface{})) *MockBidiStreamingServer_RecvMsg_Call[Req, Res]
func (*MockBidiStreamingServer_RecvMsg_Call[Req, Res]) RunAndReturn ¶ added in v0.1.8
func (_c *MockBidiStreamingServer_RecvMsg_Call[Req, Res]) RunAndReturn(run func(interface{}) error) *MockBidiStreamingServer_RecvMsg_Call[Req, Res]
type MockBidiStreamingServer_Recv_Call ¶ added in v0.1.8
MockBidiStreamingServer_Recv_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Recv'
func (*MockBidiStreamingServer_Recv_Call[Req, Res]) Return ¶ added in v0.1.8
func (_c *MockBidiStreamingServer_Recv_Call[Req, Res]) Return(_a0 *Req, _a1 error) *MockBidiStreamingServer_Recv_Call[Req, Res]
func (*MockBidiStreamingServer_Recv_Call[Req, Res]) Run ¶ added in v0.1.8
func (_c *MockBidiStreamingServer_Recv_Call[Req, Res]) Run(run func()) *MockBidiStreamingServer_Recv_Call[Req, Res]
func (*MockBidiStreamingServer_Recv_Call[Req, Res]) RunAndReturn ¶ added in v0.1.8
func (_c *MockBidiStreamingServer_Recv_Call[Req, Res]) RunAndReturn(run func() (*Req, error)) *MockBidiStreamingServer_Recv_Call[Req, Res]
type MockBidiStreamingServer_SendHeader_Call ¶ added in v0.1.8
type MockBidiStreamingServer_SendHeader_Call[Req interface{}, Res interface{}] struct {
*mock.Call
}
MockBidiStreamingServer_SendHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendHeader'
func (*MockBidiStreamingServer_SendHeader_Call[Req, Res]) Return ¶ added in v0.1.8
func (_c *MockBidiStreamingServer_SendHeader_Call[Req, Res]) Return(_a0 error) *MockBidiStreamingServer_SendHeader_Call[Req, Res]
func (*MockBidiStreamingServer_SendHeader_Call[Req, Res]) Run ¶ added in v0.1.8
func (_c *MockBidiStreamingServer_SendHeader_Call[Req, Res]) Run(run func(_a0 metadata.MD)) *MockBidiStreamingServer_SendHeader_Call[Req, Res]
func (*MockBidiStreamingServer_SendHeader_Call[Req, Res]) RunAndReturn ¶ added in v0.1.8
func (_c *MockBidiStreamingServer_SendHeader_Call[Req, Res]) RunAndReturn(run func(metadata.MD) error) *MockBidiStreamingServer_SendHeader_Call[Req, Res]
type MockBidiStreamingServer_SendMsg_Call ¶ added in v0.1.8
MockBidiStreamingServer_SendMsg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendMsg'
func (*MockBidiStreamingServer_SendMsg_Call[Req, Res]) Return ¶ added in v0.1.8
func (_c *MockBidiStreamingServer_SendMsg_Call[Req, Res]) Return(_a0 error) *MockBidiStreamingServer_SendMsg_Call[Req, Res]
func (*MockBidiStreamingServer_SendMsg_Call[Req, Res]) Run ¶ added in v0.1.8
func (_c *MockBidiStreamingServer_SendMsg_Call[Req, Res]) Run(run func(m interface{})) *MockBidiStreamingServer_SendMsg_Call[Req, Res]
func (*MockBidiStreamingServer_SendMsg_Call[Req, Res]) RunAndReturn ¶ added in v0.1.8
func (_c *MockBidiStreamingServer_SendMsg_Call[Req, Res]) RunAndReturn(run func(interface{}) error) *MockBidiStreamingServer_SendMsg_Call[Req, Res]
type MockBidiStreamingServer_Send_Call ¶ added in v0.1.8
MockBidiStreamingServer_Send_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Send'
func (*MockBidiStreamingServer_Send_Call[Req, Res]) Return ¶ added in v0.1.8
func (_c *MockBidiStreamingServer_Send_Call[Req, Res]) Return(_a0 error) *MockBidiStreamingServer_Send_Call[Req, Res]
func (*MockBidiStreamingServer_Send_Call[Req, Res]) Run ¶ added in v0.1.8
func (_c *MockBidiStreamingServer_Send_Call[Req, Res]) Run(run func(_a0 *Res)) *MockBidiStreamingServer_Send_Call[Req, Res]
func (*MockBidiStreamingServer_Send_Call[Req, Res]) RunAndReturn ¶ added in v0.1.8
func (_c *MockBidiStreamingServer_Send_Call[Req, Res]) RunAndReturn(run func(*Res) error) *MockBidiStreamingServer_Send_Call[Req, Res]
type MockBidiStreamingServer_SetHeader_Call ¶ added in v0.1.8
MockBidiStreamingServer_SetHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHeader'
func (*MockBidiStreamingServer_SetHeader_Call[Req, Res]) Return ¶ added in v0.1.8
func (_c *MockBidiStreamingServer_SetHeader_Call[Req, Res]) Return(_a0 error) *MockBidiStreamingServer_SetHeader_Call[Req, Res]
func (*MockBidiStreamingServer_SetHeader_Call[Req, Res]) Run ¶ added in v0.1.8
func (_c *MockBidiStreamingServer_SetHeader_Call[Req, Res]) Run(run func(_a0 metadata.MD)) *MockBidiStreamingServer_SetHeader_Call[Req, Res]
func (*MockBidiStreamingServer_SetHeader_Call[Req, Res]) RunAndReturn ¶ added in v0.1.8
func (_c *MockBidiStreamingServer_SetHeader_Call[Req, Res]) RunAndReturn(run func(metadata.MD) error) *MockBidiStreamingServer_SetHeader_Call[Req, Res]
type MockBidiStreamingServer_SetTrailer_Call ¶ added in v0.1.8
type MockBidiStreamingServer_SetTrailer_Call[Req interface{}, Res interface{}] struct {
*mock.Call
}
MockBidiStreamingServer_SetTrailer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetTrailer'
func (*MockBidiStreamingServer_SetTrailer_Call[Req, Res]) Return ¶ added in v0.1.8
func (_c *MockBidiStreamingServer_SetTrailer_Call[Req, Res]) Return() *MockBidiStreamingServer_SetTrailer_Call[Req, Res]
func (*MockBidiStreamingServer_SetTrailer_Call[Req, Res]) Run ¶ added in v0.1.8
func (_c *MockBidiStreamingServer_SetTrailer_Call[Req, Res]) Run(run func(_a0 metadata.MD)) *MockBidiStreamingServer_SetTrailer_Call[Req, Res]
func (*MockBidiStreamingServer_SetTrailer_Call[Req, Res]) RunAndReturn ¶ added in v0.1.8
func (_c *MockBidiStreamingServer_SetTrailer_Call[Req, Res]) RunAndReturn(run func(metadata.MD)) *MockBidiStreamingServer_SetTrailer_Call[Req, Res]
type MockStreamClientInterceptor ¶
MockStreamClientInterceptor is an autogenerated mock type for the StreamClientInterceptor type
func NewMockStreamClientInterceptor ¶
func NewMockStreamClientInterceptor(t interface { mock.TestingT Cleanup(func()) }) *MockStreamClientInterceptor
NewMockStreamClientInterceptor creates a new instance of MockStreamClientInterceptor. 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 (*MockStreamClientInterceptor) EXPECT ¶
func (_m *MockStreamClientInterceptor) EXPECT() *MockStreamClientInterceptor_Expecter
func (*MockStreamClientInterceptor) Execute ¶
func (_m *MockStreamClientInterceptor) Execute(ctx context.Context, desc *grpc.StreamDesc, cc *grpc.ClientConn, method string, streamer grpc.Streamer, opts ...grpc.CallOption) (grpc.ClientStream, error)
Execute provides a mock function with given fields: ctx, desc, cc, method, streamer, opts
type MockStreamClientInterceptor_Execute_Call ¶
MockStreamClientInterceptor_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*MockStreamClientInterceptor_Execute_Call) Return ¶
func (_c *MockStreamClientInterceptor_Execute_Call) Return(_a0 grpc.ClientStream, _a1 error) *MockStreamClientInterceptor_Execute_Call
func (*MockStreamClientInterceptor_Execute_Call) Run ¶
func (_c *MockStreamClientInterceptor_Execute_Call) Run(run func(ctx context.Context, desc *grpc.StreamDesc, cc *grpc.ClientConn, method string, streamer grpc.Streamer, opts ...grpc.CallOption)) *MockStreamClientInterceptor_Execute_Call
func (*MockStreamClientInterceptor_Execute_Call) RunAndReturn ¶
func (_c *MockStreamClientInterceptor_Execute_Call) RunAndReturn(run func(context.Context, *grpc.StreamDesc, *grpc.ClientConn, string, grpc.Streamer, ...grpc.CallOption) (grpc.ClientStream, error)) *MockStreamClientInterceptor_Execute_Call
type MockStreamClientInterceptor_Expecter ¶
type MockStreamClientInterceptor_Expecter struct {
// contains filtered or unexported fields
}
func (*MockStreamClientInterceptor_Expecter) Execute ¶
func (_e *MockStreamClientInterceptor_Expecter) Execute(ctx interface{}, desc interface{}, cc interface{}, method interface{}, streamer interface{}, opts ...interface{}) *MockStreamClientInterceptor_Execute_Call
Execute is a helper method to define mock.On call
- ctx context.Context
- desc *grpc.StreamDesc
- cc *grpc.ClientConn
- method string
- streamer grpc.Streamer
- opts ...grpc.CallOption
type MockStreamServerInterceptor ¶
MockStreamServerInterceptor is an autogenerated mock type for the StreamServerInterceptor type
func NewMockStreamServerInterceptor ¶
func NewMockStreamServerInterceptor(t interface { mock.TestingT Cleanup(func()) }) *MockStreamServerInterceptor
NewMockStreamServerInterceptor creates a new instance of MockStreamServerInterceptor. 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 (*MockStreamServerInterceptor) EXPECT ¶
func (_m *MockStreamServerInterceptor) EXPECT() *MockStreamServerInterceptor_Expecter
func (*MockStreamServerInterceptor) Execute ¶
func (_m *MockStreamServerInterceptor) Execute(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error
Execute provides a mock function with given fields: srv, ss, info, handler
type MockStreamServerInterceptor_Execute_Call ¶
MockStreamServerInterceptor_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*MockStreamServerInterceptor_Execute_Call) Return ¶
func (_c *MockStreamServerInterceptor_Execute_Call) Return(_a0 error) *MockStreamServerInterceptor_Execute_Call
func (*MockStreamServerInterceptor_Execute_Call) Run ¶
func (_c *MockStreamServerInterceptor_Execute_Call) Run(run func(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler)) *MockStreamServerInterceptor_Execute_Call
func (*MockStreamServerInterceptor_Execute_Call) RunAndReturn ¶
func (_c *MockStreamServerInterceptor_Execute_Call) RunAndReturn(run func(interface{}, grpc.ServerStream, *grpc.StreamServerInfo, grpc.StreamHandler) error) *MockStreamServerInterceptor_Execute_Call
type MockStreamServerInterceptor_Expecter ¶
type MockStreamServerInterceptor_Expecter struct {
// contains filtered or unexported fields
}
func (*MockStreamServerInterceptor_Expecter) Execute ¶
func (_e *MockStreamServerInterceptor_Expecter) Execute(srv interface{}, ss interface{}, info interface{}, handler interface{}) *MockStreamServerInterceptor_Execute_Call
Execute is a helper method to define mock.On call
- srv interface{}
- ss grpc.ServerStream
- info *grpc.StreamServerInfo
- handler grpc.StreamHandler
type MockUnaryClientInterceptor ¶
MockUnaryClientInterceptor is an autogenerated mock type for the UnaryClientInterceptor type
func NewMockUnaryClientInterceptor ¶
func NewMockUnaryClientInterceptor(t interface { mock.TestingT Cleanup(func()) }) *MockUnaryClientInterceptor
NewMockUnaryClientInterceptor creates a new instance of MockUnaryClientInterceptor. 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 (*MockUnaryClientInterceptor) EXPECT ¶
func (_m *MockUnaryClientInterceptor) EXPECT() *MockUnaryClientInterceptor_Expecter
func (*MockUnaryClientInterceptor) Execute ¶
func (_m *MockUnaryClientInterceptor) Execute(ctx context.Context, method string, req interface{}, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error
Execute provides a mock function with given fields: ctx, method, req, reply, cc, invoker, opts
type MockUnaryClientInterceptor_Execute_Call ¶
MockUnaryClientInterceptor_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*MockUnaryClientInterceptor_Execute_Call) Return ¶
func (_c *MockUnaryClientInterceptor_Execute_Call) Return(_a0 error) *MockUnaryClientInterceptor_Execute_Call
func (*MockUnaryClientInterceptor_Execute_Call) Run ¶
func (_c *MockUnaryClientInterceptor_Execute_Call) Run(run func(ctx context.Context, method string, req interface{}, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption)) *MockUnaryClientInterceptor_Execute_Call
func (*MockUnaryClientInterceptor_Execute_Call) RunAndReturn ¶
func (_c *MockUnaryClientInterceptor_Execute_Call) RunAndReturn(run func(context.Context, string, interface{}, interface{}, *grpc.ClientConn, grpc.UnaryInvoker, ...grpc.CallOption) error) *MockUnaryClientInterceptor_Execute_Call
type MockUnaryClientInterceptor_Expecter ¶
type MockUnaryClientInterceptor_Expecter struct {
// contains filtered or unexported fields
}
func (*MockUnaryClientInterceptor_Expecter) Execute ¶
func (_e *MockUnaryClientInterceptor_Expecter) Execute(ctx interface{}, method interface{}, req interface{}, reply interface{}, cc interface{}, invoker interface{}, opts ...interface{}) *MockUnaryClientInterceptor_Execute_Call
Execute is a helper method to define mock.On call
- ctx context.Context
- method string
- req interface{}
- reply interface{}
- cc *grpc.ClientConn
- invoker grpc.UnaryInvoker
- opts ...grpc.CallOption
type MockUnaryServerInterceptor ¶
MockUnaryServerInterceptor is an autogenerated mock type for the UnaryServerInterceptor type
func NewMockUnaryServerInterceptor ¶
func NewMockUnaryServerInterceptor(t interface { mock.TestingT Cleanup(func()) }) *MockUnaryServerInterceptor
NewMockUnaryServerInterceptor creates a new instance of MockUnaryServerInterceptor. 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 (*MockUnaryServerInterceptor) EXPECT ¶
func (_m *MockUnaryServerInterceptor) EXPECT() *MockUnaryServerInterceptor_Expecter
func (*MockUnaryServerInterceptor) Execute ¶
func (_m *MockUnaryServerInterceptor) Execute(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
Execute provides a mock function with given fields: ctx, req, info, handler
type MockUnaryServerInterceptor_Execute_Call ¶
MockUnaryServerInterceptor_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*MockUnaryServerInterceptor_Execute_Call) Return ¶
func (_c *MockUnaryServerInterceptor_Execute_Call) Return(resp interface{}, err error) *MockUnaryServerInterceptor_Execute_Call
func (*MockUnaryServerInterceptor_Execute_Call) Run ¶
func (_c *MockUnaryServerInterceptor_Execute_Call) Run(run func(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler)) *MockUnaryServerInterceptor_Execute_Call
func (*MockUnaryServerInterceptor_Execute_Call) RunAndReturn ¶
func (_c *MockUnaryServerInterceptor_Execute_Call) RunAndReturn(run func(context.Context, interface{}, *grpc.UnaryServerInfo, grpc.UnaryHandler) (interface{}, error)) *MockUnaryServerInterceptor_Execute_Call
type MockUnaryServerInterceptor_Expecter ¶
type MockUnaryServerInterceptor_Expecter struct {
// contains filtered or unexported fields
}
func (*MockUnaryServerInterceptor_Expecter) Execute ¶
func (_e *MockUnaryServerInterceptor_Expecter) Execute(ctx interface{}, req interface{}, info interface{}, handler interface{}) *MockUnaryServerInterceptor_Execute_Call
Execute is a helper method to define mock.On call
- ctx context.Context
- req interface{}
- info *grpc.UnaryServerInfo
- handler grpc.UnaryHandler