Documentation ¶
Index ¶
- type MockClientStream
- func (_m *MockClientStream) CloseSend() error
- func (_m *MockClientStream) Context() context.Context
- func (_m *MockClientStream) EXPECT() *MockClientStream_Expecter
- func (_m *MockClientStream) Header() (metadata.MD, error)
- func (_m *MockClientStream) RecvMsg(m interface{}) error
- func (_m *MockClientStream) SendMsg(m interface{}) error
- func (_m *MockClientStream) Trailer() metadata.MD
- type MockClientStream_CloseSend_Call
- type MockClientStream_Context_Call
- func (_c *MockClientStream_Context_Call) Return(_a0 context.Context) *MockClientStream_Context_Call
- func (_c *MockClientStream_Context_Call) Run(run func()) *MockClientStream_Context_Call
- func (_c *MockClientStream_Context_Call) RunAndReturn(run func() context.Context) *MockClientStream_Context_Call
- type MockClientStream_Expecter
- func (_e *MockClientStream_Expecter) CloseSend() *MockClientStream_CloseSend_Call
- func (_e *MockClientStream_Expecter) Context() *MockClientStream_Context_Call
- func (_e *MockClientStream_Expecter) Header() *MockClientStream_Header_Call
- func (_e *MockClientStream_Expecter) RecvMsg(m interface{}) *MockClientStream_RecvMsg_Call
- func (_e *MockClientStream_Expecter) SendMsg(m interface{}) *MockClientStream_SendMsg_Call
- func (_e *MockClientStream_Expecter) Trailer() *MockClientStream_Trailer_Call
- type MockClientStream_Header_Call
- func (_c *MockClientStream_Header_Call) Return(_a0 metadata.MD, _a1 error) *MockClientStream_Header_Call
- func (_c *MockClientStream_Header_Call) Run(run func()) *MockClientStream_Header_Call
- func (_c *MockClientStream_Header_Call) RunAndReturn(run func() (metadata.MD, error)) *MockClientStream_Header_Call
- type MockClientStream_RecvMsg_Call
- func (_c *MockClientStream_RecvMsg_Call) Return(_a0 error) *MockClientStream_RecvMsg_Call
- func (_c *MockClientStream_RecvMsg_Call) Run(run func(m interface{})) *MockClientStream_RecvMsg_Call
- func (_c *MockClientStream_RecvMsg_Call) RunAndReturn(run func(interface{}) error) *MockClientStream_RecvMsg_Call
- type MockClientStream_SendMsg_Call
- func (_c *MockClientStream_SendMsg_Call) Return(_a0 error) *MockClientStream_SendMsg_Call
- func (_c *MockClientStream_SendMsg_Call) Run(run func(m interface{})) *MockClientStream_SendMsg_Call
- func (_c *MockClientStream_SendMsg_Call) RunAndReturn(run func(interface{}) error) *MockClientStream_SendMsg_Call
- type MockClientStream_Trailer_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClientStream ¶
MockClientStream is an autogenerated mock type for the ClientStream type
func NewMockClientStream ¶
func NewMockClientStream(t interface { mock.TestingT Cleanup(func()) }) *MockClientStream
NewMockClientStream creates a new instance of MockClientStream. 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 (*MockClientStream) CloseSend ¶
func (_m *MockClientStream) CloseSend() error
CloseSend provides a mock function with given fields:
func (*MockClientStream) Context ¶
func (_m *MockClientStream) Context() context.Context
Context provides a mock function with given fields:
func (*MockClientStream) EXPECT ¶
func (_m *MockClientStream) EXPECT() *MockClientStream_Expecter
func (*MockClientStream) Header ¶
func (_m *MockClientStream) Header() (metadata.MD, error)
Header provides a mock function with given fields:
func (*MockClientStream) RecvMsg ¶
func (_m *MockClientStream) RecvMsg(m interface{}) error
RecvMsg provides a mock function with given fields: m
func (*MockClientStream) SendMsg ¶
func (_m *MockClientStream) SendMsg(m interface{}) error
SendMsg provides a mock function with given fields: m
func (*MockClientStream) Trailer ¶
func (_m *MockClientStream) Trailer() metadata.MD
Trailer provides a mock function with given fields:
type MockClientStream_CloseSend_Call ¶
MockClientStream_CloseSend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CloseSend'
func (*MockClientStream_CloseSend_Call) Return ¶
func (_c *MockClientStream_CloseSend_Call) Return(_a0 error) *MockClientStream_CloseSend_Call
func (*MockClientStream_CloseSend_Call) Run ¶
func (_c *MockClientStream_CloseSend_Call) Run(run func()) *MockClientStream_CloseSend_Call
func (*MockClientStream_CloseSend_Call) RunAndReturn ¶
func (_c *MockClientStream_CloseSend_Call) RunAndReturn(run func() error) *MockClientStream_CloseSend_Call
type MockClientStream_Context_Call ¶
MockClientStream_Context_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Context'
func (*MockClientStream_Context_Call) Return ¶
func (_c *MockClientStream_Context_Call) Return(_a0 context.Context) *MockClientStream_Context_Call
func (*MockClientStream_Context_Call) Run ¶
func (_c *MockClientStream_Context_Call) Run(run func()) *MockClientStream_Context_Call
func (*MockClientStream_Context_Call) RunAndReturn ¶
func (_c *MockClientStream_Context_Call) RunAndReturn(run func() context.Context) *MockClientStream_Context_Call
type MockClientStream_Expecter ¶
type MockClientStream_Expecter struct {
// contains filtered or unexported fields
}
func (*MockClientStream_Expecter) CloseSend ¶
func (_e *MockClientStream_Expecter) CloseSend() *MockClientStream_CloseSend_Call
CloseSend is a helper method to define mock.On call
func (*MockClientStream_Expecter) Context ¶
func (_e *MockClientStream_Expecter) Context() *MockClientStream_Context_Call
Context is a helper method to define mock.On call
func (*MockClientStream_Expecter) Header ¶
func (_e *MockClientStream_Expecter) Header() *MockClientStream_Header_Call
Header is a helper method to define mock.On call
func (*MockClientStream_Expecter) RecvMsg ¶
func (_e *MockClientStream_Expecter) RecvMsg(m interface{}) *MockClientStream_RecvMsg_Call
RecvMsg is a helper method to define mock.On call
- m interface{}
func (*MockClientStream_Expecter) SendMsg ¶
func (_e *MockClientStream_Expecter) SendMsg(m interface{}) *MockClientStream_SendMsg_Call
SendMsg is a helper method to define mock.On call
- m interface{}
func (*MockClientStream_Expecter) Trailer ¶
func (_e *MockClientStream_Expecter) Trailer() *MockClientStream_Trailer_Call
Trailer is a helper method to define mock.On call
type MockClientStream_Header_Call ¶
MockClientStream_Header_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Header'
func (*MockClientStream_Header_Call) Return ¶
func (_c *MockClientStream_Header_Call) Return(_a0 metadata.MD, _a1 error) *MockClientStream_Header_Call
func (*MockClientStream_Header_Call) Run ¶
func (_c *MockClientStream_Header_Call) Run(run func()) *MockClientStream_Header_Call
func (*MockClientStream_Header_Call) RunAndReturn ¶
func (_c *MockClientStream_Header_Call) RunAndReturn(run func() (metadata.MD, error)) *MockClientStream_Header_Call
type MockClientStream_RecvMsg_Call ¶
MockClientStream_RecvMsg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RecvMsg'
func (*MockClientStream_RecvMsg_Call) Return ¶
func (_c *MockClientStream_RecvMsg_Call) Return(_a0 error) *MockClientStream_RecvMsg_Call
func (*MockClientStream_RecvMsg_Call) Run ¶
func (_c *MockClientStream_RecvMsg_Call) Run(run func(m interface{})) *MockClientStream_RecvMsg_Call
func (*MockClientStream_RecvMsg_Call) RunAndReturn ¶
func (_c *MockClientStream_RecvMsg_Call) RunAndReturn(run func(interface{}) error) *MockClientStream_RecvMsg_Call
type MockClientStream_SendMsg_Call ¶
MockClientStream_SendMsg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendMsg'
func (*MockClientStream_SendMsg_Call) Return ¶
func (_c *MockClientStream_SendMsg_Call) Return(_a0 error) *MockClientStream_SendMsg_Call
func (*MockClientStream_SendMsg_Call) Run ¶
func (_c *MockClientStream_SendMsg_Call) Run(run func(m interface{})) *MockClientStream_SendMsg_Call
func (*MockClientStream_SendMsg_Call) RunAndReturn ¶
func (_c *MockClientStream_SendMsg_Call) RunAndReturn(run func(interface{}) error) *MockClientStream_SendMsg_Call
type MockClientStream_Trailer_Call ¶
MockClientStream_Trailer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Trailer'
func (*MockClientStream_Trailer_Call) Return ¶
func (_c *MockClientStream_Trailer_Call) Return(_a0 metadata.MD) *MockClientStream_Trailer_Call
func (*MockClientStream_Trailer_Call) Run ¶
func (_c *MockClientStream_Trailer_Call) Run(run func()) *MockClientStream_Trailer_Call
func (*MockClientStream_Trailer_Call) RunAndReturn ¶
func (_c *MockClientStream_Trailer_Call) RunAndReturn(run func() metadata.MD) *MockClientStream_Trailer_Call