Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockDatabase
- func (m *MockDatabase) ClearDB() error
- func (m *MockDatabase) Close() error
- func (m *MockDatabase) ConsensusInfo(ctx context.Context, epoch uint64) (*types.MinimalEpochConsensusInfo, error)
- func (m *MockDatabase) ConsensusInfos(fromEpoch uint64) ([]*types.MinimalEpochConsensusInfo, error)
- func (m *MockDatabase) DatabasePath() string
- func (m *MockDatabase) EXPECT() *MockDatabaseMockRecorder
- func (m *MockDatabase) LatestSavedEpoch() (uint64, error)
- func (m *MockDatabase) SaveConsensusInfo(ctx context.Context, consensusInfo *types.MinimalEpochConsensusInfo) error
- func (m *MockDatabase) SaveLatestEpoch(ctx context.Context) error
- type MockDatabaseMockRecorder
- func (mr *MockDatabaseMockRecorder) ClearDB() *gomock.Call
- func (mr *MockDatabaseMockRecorder) Close() *gomock.Call
- func (mr *MockDatabaseMockRecorder) ConsensusInfo(ctx, epoch interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) ConsensusInfos(fromEpoch interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) DatabasePath() *gomock.Call
- func (mr *MockDatabaseMockRecorder) LatestSavedEpoch() *gomock.Call
- func (mr *MockDatabaseMockRecorder) SaveConsensusInfo(ctx, consensusInfo interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) SaveLatestEpoch(ctx interface{}) *gomock.Call
- type MockReadOnlyDatabase
- func (m *MockReadOnlyDatabase) ConsensusInfo(ctx context.Context, epoch uint64) (*types.MinimalEpochConsensusInfo, error)
- func (m *MockReadOnlyDatabase) ConsensusInfos(fromEpoch uint64) ([]*types.MinimalEpochConsensusInfo, error)
- func (m *MockReadOnlyDatabase) EXPECT() *MockReadOnlyDatabaseMockRecorder
- func (m *MockReadOnlyDatabase) LatestSavedEpoch() (uint64, error)
- type MockReadOnlyDatabaseMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDatabase ¶
type MockDatabase struct {
// contains filtered or unexported fields
}
MockDatabase is a mock of Database interface
func NewMockDatabase ¶
func NewMockDatabase(ctrl *gomock.Controller) *MockDatabase
NewMockDatabase creates a new mock instance
func (*MockDatabase) ConsensusInfo ¶
func (m *MockDatabase) ConsensusInfo(ctx context.Context, epoch uint64) (*types.MinimalEpochConsensusInfo, error)
ConsensusInfo mocks base method
func (*MockDatabase) ConsensusInfos ¶
func (m *MockDatabase) ConsensusInfos(fromEpoch uint64) ([]*types.MinimalEpochConsensusInfo, error)
ConsensusInfos mocks base method
func (*MockDatabase) DatabasePath ¶
func (m *MockDatabase) DatabasePath() string
DatabasePath mocks base method
func (*MockDatabase) EXPECT ¶
func (m *MockDatabase) EXPECT() *MockDatabaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockDatabase) LatestSavedEpoch ¶
func (m *MockDatabase) LatestSavedEpoch() (uint64, error)
LatestSavedEpoch mocks base method
func (*MockDatabase) SaveConsensusInfo ¶
func (m *MockDatabase) SaveConsensusInfo(ctx context.Context, consensusInfo *types.MinimalEpochConsensusInfo) error
SaveConsensusInfo mocks base method
func (*MockDatabase) SaveLatestEpoch ¶
func (m *MockDatabase) SaveLatestEpoch(ctx context.Context) error
SaveLatestEpoch mocks base method
type MockDatabaseMockRecorder ¶
type MockDatabaseMockRecorder struct {
// contains filtered or unexported fields
}
MockDatabaseMockRecorder is the mock recorder for MockDatabase
func (*MockDatabaseMockRecorder) ClearDB ¶
func (mr *MockDatabaseMockRecorder) ClearDB() *gomock.Call
ClearDB indicates an expected call of ClearDB
func (*MockDatabaseMockRecorder) Close ¶
func (mr *MockDatabaseMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockDatabaseMockRecorder) ConsensusInfo ¶
func (mr *MockDatabaseMockRecorder) ConsensusInfo(ctx, epoch interface{}) *gomock.Call
ConsensusInfo indicates an expected call of ConsensusInfo
func (*MockDatabaseMockRecorder) ConsensusInfos ¶
func (mr *MockDatabaseMockRecorder) ConsensusInfos(fromEpoch interface{}) *gomock.Call
ConsensusInfos indicates an expected call of ConsensusInfos
func (*MockDatabaseMockRecorder) DatabasePath ¶
func (mr *MockDatabaseMockRecorder) DatabasePath() *gomock.Call
DatabasePath indicates an expected call of DatabasePath
func (*MockDatabaseMockRecorder) LatestSavedEpoch ¶
func (mr *MockDatabaseMockRecorder) LatestSavedEpoch() *gomock.Call
LatestSavedEpoch indicates an expected call of LatestSavedEpoch
func (*MockDatabaseMockRecorder) SaveConsensusInfo ¶
func (mr *MockDatabaseMockRecorder) SaveConsensusInfo(ctx, consensusInfo interface{}) *gomock.Call
SaveConsensusInfo indicates an expected call of SaveConsensusInfo
func (*MockDatabaseMockRecorder) SaveLatestEpoch ¶
func (mr *MockDatabaseMockRecorder) SaveLatestEpoch(ctx interface{}) *gomock.Call
SaveLatestEpoch indicates an expected call of SaveLatestEpoch
type MockReadOnlyDatabase ¶
type MockReadOnlyDatabase struct {
// contains filtered or unexported fields
}
MockReadOnlyDatabase is a mock of ReadOnlyDatabase interface
func NewMockReadOnlyDatabase ¶
func NewMockReadOnlyDatabase(ctrl *gomock.Controller) *MockReadOnlyDatabase
NewMockReadOnlyDatabase creates a new mock instance
func (*MockReadOnlyDatabase) ConsensusInfo ¶
func (m *MockReadOnlyDatabase) ConsensusInfo(ctx context.Context, epoch uint64) (*types.MinimalEpochConsensusInfo, error)
ConsensusInfo mocks base method
func (*MockReadOnlyDatabase) ConsensusInfos ¶
func (m *MockReadOnlyDatabase) ConsensusInfos(fromEpoch uint64) ([]*types.MinimalEpochConsensusInfo, error)
ConsensusInfos mocks base method
func (*MockReadOnlyDatabase) EXPECT ¶
func (m *MockReadOnlyDatabase) EXPECT() *MockReadOnlyDatabaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockReadOnlyDatabase) LatestSavedEpoch ¶
func (m *MockReadOnlyDatabase) LatestSavedEpoch() (uint64, error)
LatestSavedEpoch mocks base method
type MockReadOnlyDatabaseMockRecorder ¶
type MockReadOnlyDatabaseMockRecorder struct {
// contains filtered or unexported fields
}
MockReadOnlyDatabaseMockRecorder is the mock recorder for MockReadOnlyDatabase
func (*MockReadOnlyDatabaseMockRecorder) ConsensusInfo ¶
func (mr *MockReadOnlyDatabaseMockRecorder) ConsensusInfo(ctx, epoch interface{}) *gomock.Call
ConsensusInfo indicates an expected call of ConsensusInfo
func (*MockReadOnlyDatabaseMockRecorder) ConsensusInfos ¶
func (mr *MockReadOnlyDatabaseMockRecorder) ConsensusInfos(fromEpoch interface{}) *gomock.Call
ConsensusInfos indicates an expected call of ConsensusInfos
func (*MockReadOnlyDatabaseMockRecorder) LatestSavedEpoch ¶
func (mr *MockReadOnlyDatabaseMockRecorder) LatestSavedEpoch() *gomock.Call
LatestSavedEpoch indicates an expected call of LatestSavedEpoch