Documentation ¶
Index ¶
- type MockLocalServer
- type MockLocalServer_AddRecoveredBlock_Call
- func (_c *MockLocalServer_AddRecoveredBlock_Call) Return(_a0 *metastorev1.AddBlockResponse, _a1 error) *MockLocalServer_AddRecoveredBlock_Call
- func (_c *MockLocalServer_AddRecoveredBlock_Call) Run(run func(_a0 context.Context, _a1 *metastorev1.AddBlockRequest)) *MockLocalServer_AddRecoveredBlock_Call
- func (_c *MockLocalServer_AddRecoveredBlock_Call) RunAndReturn(...) *MockLocalServer_AddRecoveredBlock_Call
- type MockLocalServer_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockLocalServer ¶
MockLocalServer is an autogenerated mock type for the LocalServer type
func NewMockLocalServer ¶
func NewMockLocalServer(t interface { mock.TestingT Cleanup(func()) }) *MockLocalServer
NewMockLocalServer creates a new instance of MockLocalServer. 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 (*MockLocalServer) AddRecoveredBlock ¶
func (_m *MockLocalServer) AddRecoveredBlock(_a0 context.Context, _a1 *metastorev1.AddBlockRequest) (*metastorev1.AddBlockResponse, error)
AddRecoveredBlock provides a mock function with given fields: _a0, _a1
func (*MockLocalServer) EXPECT ¶
func (_m *MockLocalServer) EXPECT() *MockLocalServer_Expecter
type MockLocalServer_AddRecoveredBlock_Call ¶
MockLocalServer_AddRecoveredBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddRecoveredBlock'
func (*MockLocalServer_AddRecoveredBlock_Call) Return ¶
func (_c *MockLocalServer_AddRecoveredBlock_Call) Return(_a0 *metastorev1.AddBlockResponse, _a1 error) *MockLocalServer_AddRecoveredBlock_Call
func (*MockLocalServer_AddRecoveredBlock_Call) Run ¶
func (_c *MockLocalServer_AddRecoveredBlock_Call) Run(run func(_a0 context.Context, _a1 *metastorev1.AddBlockRequest)) *MockLocalServer_AddRecoveredBlock_Call
func (*MockLocalServer_AddRecoveredBlock_Call) RunAndReturn ¶
func (_c *MockLocalServer_AddRecoveredBlock_Call) RunAndReturn(run func(context.Context, *metastorev1.AddBlockRequest) (*metastorev1.AddBlockResponse, error)) *MockLocalServer_AddRecoveredBlock_Call
type MockLocalServer_Expecter ¶
type MockLocalServer_Expecter struct {
// contains filtered or unexported fields
}
func (*MockLocalServer_Expecter) AddRecoveredBlock ¶
func (_e *MockLocalServer_Expecter) AddRecoveredBlock(_a0 interface{}, _a1 interface{}) *MockLocalServer_AddRecoveredBlock_Call
AddRecoveredBlock is a helper method to define mock.On call
- _a0 context.Context
- _a1 *metastorev1.AddBlockRequest
Click to show internal directories.
Click to hide internal directories.