mock

package
v0.0.11-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

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) ClearDB

func (m *MockDatabase) ClearDB() error

ClearDB mocks base method

func (*MockDatabase) Close

func (m *MockDatabase) Close() error

Close mocks base method

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

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

ConsensusInfo mocks base method

func (*MockReadOnlyDatabase) ConsensusInfos

func (m *MockReadOnlyDatabase) ConsensusInfos(fromEpoch uint64) ([]*types.MinimalEpochConsensusInfo, error)

ConsensusInfos mocks base method

func (*MockReadOnlyDatabase) EXPECT

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL