Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockDataStore
- func (m *MockDataStore) BlockContinuityCheck(arg0 context.Context, arg1 structs.BlockWithMeta, arg2, arg3 uint64) ([][2]uint64, error)
- func (m *MockDataStore) BlockTransactionCheck(arg0 context.Context, arg1 structs.BlockWithMeta, arg2, arg3 uint64) ([]uint64, error)
- func (m *MockDataStore) EXPECT() *MockDataStoreMockRecorder
- func (m *MockDataStore) GetBlockForTime(arg0 context.Context, arg1 structs.BlockWithMeta, arg2 time.Time) (structs.Block, bool, error)
- func (m *MockDataStore) GetBlocksHeightsWithNumTx(arg0 context.Context, arg1 structs.BlockWithMeta, arg2, arg3 uint64) ([][2]uint64, error)
- func (m *MockDataStore) GetLatestBlock(arg0 context.Context, arg1 structs.BlockWithMeta) (structs.Block, error)
- func (m *MockDataStore) GetLatestTransaction(arg0 context.Context, arg1 structs.TransactionWithMeta) (structs.Transaction, error)
- func (m *MockDataStore) GetTransactions(arg0 context.Context, arg1 params.TransactionSearch) ([]structs.Transaction, error)
- func (m *MockDataStore) GetTransactionsHeightsWithTxCount(arg0 context.Context, arg1 structs.BlockWithMeta, arg2, arg3 uint64) ([][2]uint64, error)
- func (m *MockDataStore) StoreBlock(arg0 structs.BlockWithMeta) error
- func (m *MockDataStore) StoreTransaction(arg0 structs.TransactionWithMeta) error
- func (m *MockDataStore) StoreTransactions(arg0 []structs.TransactionWithMeta) error
- type MockDataStoreMockRecorder
- func (mr *MockDataStoreMockRecorder) BlockContinuityCheck(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) BlockTransactionCheck(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) GetBlockForTime(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) GetBlocksHeightsWithNumTx(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) GetLatestBlock(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) GetLatestTransaction(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) GetTransactions(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) GetTransactionsHeightsWithTxCount(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) StoreBlock(arg0 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) StoreTransaction(arg0 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) StoreTransactions(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDataStore ¶
type MockDataStore struct {
// contains filtered or unexported fields
}
MockDataStore is a mock of DataStore interface
func NewMockDataStore ¶
func NewMockDataStore(ctrl *gomock.Controller) *MockDataStore
NewMockDataStore creates a new mock instance
func (*MockDataStore) BlockContinuityCheck ¶
func (m *MockDataStore) BlockContinuityCheck(arg0 context.Context, arg1 structs.BlockWithMeta, arg2, arg3 uint64) ([][2]uint64, error)
BlockContinuityCheck mocks base method
func (*MockDataStore) BlockTransactionCheck ¶
func (m *MockDataStore) BlockTransactionCheck(arg0 context.Context, arg1 structs.BlockWithMeta, arg2, arg3 uint64) ([]uint64, error)
BlockTransactionCheck mocks base method
func (*MockDataStore) EXPECT ¶
func (m *MockDataStore) EXPECT() *MockDataStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockDataStore) GetBlockForTime ¶ added in v0.1.2
func (m *MockDataStore) GetBlockForTime(arg0 context.Context, arg1 structs.BlockWithMeta, arg2 time.Time) (structs.Block, bool, error)
GetBlockForTime mocks base method
func (*MockDataStore) GetBlocksHeightsWithNumTx ¶ added in v0.0.2
func (m *MockDataStore) GetBlocksHeightsWithNumTx(arg0 context.Context, arg1 structs.BlockWithMeta, arg2, arg3 uint64) ([][2]uint64, error)
GetBlocksHeightsWithNumTx mocks base method
func (*MockDataStore) GetLatestBlock ¶
func (m *MockDataStore) GetLatestBlock(arg0 context.Context, arg1 structs.BlockWithMeta) (structs.Block, error)
GetLatestBlock mocks base method
func (*MockDataStore) GetLatestTransaction ¶
func (m *MockDataStore) GetLatestTransaction(arg0 context.Context, arg1 structs.TransactionWithMeta) (structs.Transaction, error)
GetLatestTransaction mocks base method
func (*MockDataStore) GetTransactions ¶
func (m *MockDataStore) GetTransactions(arg0 context.Context, arg1 params.TransactionSearch) ([]structs.Transaction, error)
GetTransactions mocks base method
func (*MockDataStore) GetTransactionsHeightsWithTxCount ¶ added in v0.0.2
func (m *MockDataStore) GetTransactionsHeightsWithTxCount(arg0 context.Context, arg1 structs.BlockWithMeta, arg2, arg3 uint64) ([][2]uint64, error)
GetTransactionsHeightsWithTxCount mocks base method
func (*MockDataStore) StoreBlock ¶
func (m *MockDataStore) StoreBlock(arg0 structs.BlockWithMeta) error
StoreBlock mocks base method
func (*MockDataStore) StoreTransaction ¶
func (m *MockDataStore) StoreTransaction(arg0 structs.TransactionWithMeta) error
StoreTransaction mocks base method
func (*MockDataStore) StoreTransactions ¶
func (m *MockDataStore) StoreTransactions(arg0 []structs.TransactionWithMeta) error
StoreTransactions mocks base method
type MockDataStoreMockRecorder ¶
type MockDataStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockDataStoreMockRecorder is the mock recorder for MockDataStore
func (*MockDataStoreMockRecorder) BlockContinuityCheck ¶
func (mr *MockDataStoreMockRecorder) BlockContinuityCheck(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
BlockContinuityCheck indicates an expected call of BlockContinuityCheck
func (*MockDataStoreMockRecorder) BlockTransactionCheck ¶
func (mr *MockDataStoreMockRecorder) BlockTransactionCheck(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
BlockTransactionCheck indicates an expected call of BlockTransactionCheck
func (*MockDataStoreMockRecorder) GetBlockForTime ¶ added in v0.1.2
func (mr *MockDataStoreMockRecorder) GetBlockForTime(arg0, arg1, arg2 interface{}) *gomock.Call
GetBlockForTime indicates an expected call of GetBlockForTime
func (*MockDataStoreMockRecorder) GetBlocksHeightsWithNumTx ¶ added in v0.0.2
func (mr *MockDataStoreMockRecorder) GetBlocksHeightsWithNumTx(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
GetBlocksHeightsWithNumTx indicates an expected call of GetBlocksHeightsWithNumTx
func (*MockDataStoreMockRecorder) GetLatestBlock ¶
func (mr *MockDataStoreMockRecorder) GetLatestBlock(arg0, arg1 interface{}) *gomock.Call
GetLatestBlock indicates an expected call of GetLatestBlock
func (*MockDataStoreMockRecorder) GetLatestTransaction ¶
func (mr *MockDataStoreMockRecorder) GetLatestTransaction(arg0, arg1 interface{}) *gomock.Call
GetLatestTransaction indicates an expected call of GetLatestTransaction
func (*MockDataStoreMockRecorder) GetTransactions ¶
func (mr *MockDataStoreMockRecorder) GetTransactions(arg0, arg1 interface{}) *gomock.Call
GetTransactions indicates an expected call of GetTransactions
func (*MockDataStoreMockRecorder) GetTransactionsHeightsWithTxCount ¶ added in v0.0.2
func (mr *MockDataStoreMockRecorder) GetTransactionsHeightsWithTxCount(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
GetTransactionsHeightsWithTxCount indicates an expected call of GetTransactionsHeightsWithTxCount
func (*MockDataStoreMockRecorder) StoreBlock ¶
func (mr *MockDataStoreMockRecorder) StoreBlock(arg0 interface{}) *gomock.Call
StoreBlock indicates an expected call of StoreBlock
func (*MockDataStoreMockRecorder) StoreTransaction ¶
func (mr *MockDataStoreMockRecorder) StoreTransaction(arg0 interface{}) *gomock.Call
StoreTransaction indicates an expected call of StoreTransaction
func (*MockDataStoreMockRecorder) StoreTransactions ¶
func (mr *MockDataStoreMockRecorder) StoreTransactions(arg0 interface{}) *gomock.Call
StoreTransactions indicates an expected call of StoreTransactions