Documentation ¶
Index ¶
- type MockRpcReadWriter
- type MockRpcReadWriter_Expecter
- type MockRpcReadWriter_Read_Call
- func (_c *MockRpcReadWriter_Read_Call) Return(_a0 *goatorepo.Rpc, _a1 error) *MockRpcReadWriter_Read_Call
- func (_c *MockRpcReadWriter_Read_Call) Run(run func(_a0 context.Context)) *MockRpcReadWriter_Read_Call
- func (_c *MockRpcReadWriter_Read_Call) RunAndReturn(run func(context.Context) (*goatorepo.Rpc, error)) *MockRpcReadWriter_Read_Call
- type MockRpcReadWriter_Write_Call
- func (_c *MockRpcReadWriter_Write_Call) Return(_a0 error) *MockRpcReadWriter_Write_Call
- func (_c *MockRpcReadWriter_Write_Call) Run(run func(_a0 context.Context, _a1 *goatorepo.Rpc)) *MockRpcReadWriter_Write_Call
- func (_c *MockRpcReadWriter_Write_Call) RunAndReturn(run func(context.Context, *goatorepo.Rpc) error) *MockRpcReadWriter_Write_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRpcReadWriter ¶
MockRpcReadWriter is an autogenerated mock type for the RpcReadWriter type
func NewMockRpcReadWriter ¶
func NewMockRpcReadWriter(t interface { mock.TestingT Cleanup(func()) }) *MockRpcReadWriter
NewMockRpcReadWriter creates a new instance of MockRpcReadWriter. 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 (*MockRpcReadWriter) EXPECT ¶
func (_m *MockRpcReadWriter) EXPECT() *MockRpcReadWriter_Expecter
type MockRpcReadWriter_Expecter ¶
type MockRpcReadWriter_Expecter struct {
// contains filtered or unexported fields
}
func (*MockRpcReadWriter_Expecter) Read ¶
func (_e *MockRpcReadWriter_Expecter) Read(_a0 interface{}) *MockRpcReadWriter_Read_Call
Read is a helper method to define mock.On call
- _a0 context.Context
func (*MockRpcReadWriter_Expecter) Write ¶
func (_e *MockRpcReadWriter_Expecter) Write(_a0 interface{}, _a1 interface{}) *MockRpcReadWriter_Write_Call
Write is a helper method to define mock.On call
- _a0 context.Context
- _a1 *goatorepo.Rpc
type MockRpcReadWriter_Read_Call ¶
MockRpcReadWriter_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*MockRpcReadWriter_Read_Call) Return ¶
func (_c *MockRpcReadWriter_Read_Call) Return(_a0 *goatorepo.Rpc, _a1 error) *MockRpcReadWriter_Read_Call
func (*MockRpcReadWriter_Read_Call) Run ¶
func (_c *MockRpcReadWriter_Read_Call) Run(run func(_a0 context.Context)) *MockRpcReadWriter_Read_Call
func (*MockRpcReadWriter_Read_Call) RunAndReturn ¶
func (_c *MockRpcReadWriter_Read_Call) RunAndReturn(run func(context.Context) (*goatorepo.Rpc, error)) *MockRpcReadWriter_Read_Call
type MockRpcReadWriter_Write_Call ¶
MockRpcReadWriter_Write_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Write'
func (*MockRpcReadWriter_Write_Call) Return ¶
func (_c *MockRpcReadWriter_Write_Call) Return(_a0 error) *MockRpcReadWriter_Write_Call
func (*MockRpcReadWriter_Write_Call) Run ¶
func (_c *MockRpcReadWriter_Write_Call) Run(run func(_a0 context.Context, _a1 *goatorepo.Rpc)) *MockRpcReadWriter_Write_Call
func (*MockRpcReadWriter_Write_Call) RunAndReturn ¶
func (_c *MockRpcReadWriter_Write_Call) RunAndReturn(run func(context.Context, *goatorepo.Rpc) error) *MockRpcReadWriter_Write_Call