Documentation
¶
Overview ¶
Package internal is a generated GoMock package.
Index ¶
- type MockSyncState
- func (m *MockSyncState) Add(newState state.State) error
- func (m *MockSyncState) All(epoch int64) ([]state.State, error)
- func (m *MockSyncState) EXPECT() *MockSyncStateMockRecorder
- func (m *MockSyncState) Map(epoch int64, process func(state.State) state.State) error
- func (m *MockSyncState) Remove(id state.MessageID, peer state.PeerID) error
- type MockSyncStateMockRecorder
- func (mr *MockSyncStateMockRecorder) Add(newState interface{}) *gomock.Call
- func (mr *MockSyncStateMockRecorder) All(epoch interface{}) *gomock.Call
- func (mr *MockSyncStateMockRecorder) Map(epoch, process interface{}) *gomock.Call
- func (mr *MockSyncStateMockRecorder) Remove(id, peer interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSyncState ¶
type MockSyncState struct {
// contains filtered or unexported fields
}
MockSyncState is a mock of SyncState interface
func NewMockSyncState ¶
func NewMockSyncState(ctrl *gomock.Controller) *MockSyncState
NewMockSyncState creates a new mock instance
func (*MockSyncState) Add ¶
func (m *MockSyncState) Add(newState state.State) error
Add mocks base method
func (*MockSyncState) All ¶
func (m *MockSyncState) All(epoch int64) ([]state.State, error)
All mocks base method
func (*MockSyncState) EXPECT ¶
func (m *MockSyncState) EXPECT() *MockSyncStateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockSyncStateMockRecorder ¶
type MockSyncStateMockRecorder struct {
// contains filtered or unexported fields
}
MockSyncStateMockRecorder is the mock recorder for MockSyncState
func (*MockSyncStateMockRecorder) Add ¶
func (mr *MockSyncStateMockRecorder) Add(newState interface{}) *gomock.Call
Add indicates an expected call of Add
func (*MockSyncStateMockRecorder) All ¶
func (mr *MockSyncStateMockRecorder) All(epoch interface{}) *gomock.Call
All indicates an expected call of All
func (*MockSyncStateMockRecorder) Map ¶
func (mr *MockSyncStateMockRecorder) Map(epoch, process interface{}) *gomock.Call
Map indicates an expected call of Map
func (*MockSyncStateMockRecorder) Remove ¶
func (mr *MockSyncStateMockRecorder) Remove(id, peer interface{}) *gomock.Call
Remove indicates an expected call of Remove
Click to show internal directories.
Click to hide internal directories.