mock_blockindex

package
v2.0.4-rc6 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mock_blockindex is a generated GoMock package.

Package mock_blockindex is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBloomFilterIndexer

type MockBloomFilterIndexer struct {
	// contains filtered or unexported fields
}

MockBloomFilterIndexer is a mock of BloomFilterIndexer interface.

func NewMockBloomFilterIndexer

func NewMockBloomFilterIndexer(ctrl *gomock.Controller) *MockBloomFilterIndexer

NewMockBloomFilterIndexer creates a new mock instance.

func (*MockBloomFilterIndexer) BlockFilterByHeight

func (m *MockBloomFilterIndexer) BlockFilterByHeight(arg0 uint64) (bloom.BloomFilter, error)

BlockFilterByHeight mocks base method.

func (*MockBloomFilterIndexer) DeleteTipBlock

func (m *MockBloomFilterIndexer) DeleteTipBlock(arg0 context.Context, arg1 *block.Block) error

DeleteTipBlock mocks base method.

func (*MockBloomFilterIndexer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockBloomFilterIndexer) FilterBlocksInRange

func (m *MockBloomFilterIndexer) FilterBlocksInRange(arg0 *logfilter.LogFilter, arg1, arg2, arg3 uint64) ([]uint64, error)

FilterBlocksInRange mocks base method.

func (*MockBloomFilterIndexer) Height

func (m *MockBloomFilterIndexer) Height() (uint64, error)

Height mocks base method.

func (*MockBloomFilterIndexer) PutBlock

func (m *MockBloomFilterIndexer) PutBlock(arg0 context.Context, arg1 *block.Block) error

PutBlock mocks base method.

func (*MockBloomFilterIndexer) RangeBloomFilterNumElements

func (m *MockBloomFilterIndexer) RangeBloomFilterNumElements() uint64

RangeBloomFilterNumElements mocks base method.

func (*MockBloomFilterIndexer) Start

Start mocks base method.

func (*MockBloomFilterIndexer) Stop

Stop mocks base method.

type MockBloomFilterIndexerMockRecorder

type MockBloomFilterIndexerMockRecorder struct {
	// contains filtered or unexported fields
}

MockBloomFilterIndexerMockRecorder is the mock recorder for MockBloomFilterIndexer.

func (*MockBloomFilterIndexerMockRecorder) BlockFilterByHeight

func (mr *MockBloomFilterIndexerMockRecorder) BlockFilterByHeight(arg0 interface{}) *gomock.Call

BlockFilterByHeight indicates an expected call of BlockFilterByHeight.

func (*MockBloomFilterIndexerMockRecorder) DeleteTipBlock

func (mr *MockBloomFilterIndexerMockRecorder) DeleteTipBlock(arg0, arg1 interface{}) *gomock.Call

DeleteTipBlock indicates an expected call of DeleteTipBlock.

func (*MockBloomFilterIndexerMockRecorder) FilterBlocksInRange

func (mr *MockBloomFilterIndexerMockRecorder) FilterBlocksInRange(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

FilterBlocksInRange indicates an expected call of FilterBlocksInRange.

func (*MockBloomFilterIndexerMockRecorder) Height

Height indicates an expected call of Height.

func (*MockBloomFilterIndexerMockRecorder) PutBlock

func (mr *MockBloomFilterIndexerMockRecorder) PutBlock(arg0, arg1 interface{}) *gomock.Call

PutBlock indicates an expected call of PutBlock.

func (*MockBloomFilterIndexerMockRecorder) RangeBloomFilterNumElements

func (mr *MockBloomFilterIndexerMockRecorder) RangeBloomFilterNumElements() *gomock.Call

RangeBloomFilterNumElements indicates an expected call of RangeBloomFilterNumElements.

func (*MockBloomFilterIndexerMockRecorder) Start

func (mr *MockBloomFilterIndexerMockRecorder) Start(ctx interface{}) *gomock.Call

Start indicates an expected call of Start.

func (*MockBloomFilterIndexerMockRecorder) Stop

func (mr *MockBloomFilterIndexerMockRecorder) Stop(ctx interface{}) *gomock.Call

Stop indicates an expected call of Stop.

type MockIndexer

type MockIndexer struct {
	// contains filtered or unexported fields
}

MockIndexer is a mock of Indexer interface.

func NewMockIndexer

func NewMockIndexer(ctrl *gomock.Controller) *MockIndexer

NewMockIndexer creates a new mock instance.

func (*MockIndexer) DeleteTipBlock

func (m *MockIndexer) DeleteTipBlock(arg0 context.Context, arg1 *block.Block) error

DeleteTipBlock mocks base method.

func (*MockIndexer) EXPECT

func (m *MockIndexer) EXPECT() *MockIndexerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIndexer) GetActionCountByAddress

func (m *MockIndexer) GetActionCountByAddress(arg0 hash.Hash160) (uint64, error)

GetActionCountByAddress mocks base method.

func (*MockIndexer) GetActionHashFromIndex

func (m *MockIndexer) GetActionHashFromIndex(arg0, arg1 uint64) ([][]byte, error)

GetActionHashFromIndex mocks base method.

func (*MockIndexer) GetActionIndex

func (m *MockIndexer) GetActionIndex(arg0 []byte) (*blockindex.ActionIndex, error)

GetActionIndex mocks base method.

func (*MockIndexer) GetActionsByAddress

func (m *MockIndexer) GetActionsByAddress(arg0 hash.Hash160, arg1, arg2 uint64) ([][]byte, error)

GetActionsByAddress mocks base method.

func (*MockIndexer) GetBlockHash

func (m *MockIndexer) GetBlockHash(height uint64) (hash.Hash256, error)

GetBlockHash mocks base method.

func (*MockIndexer) GetBlockHeight

func (m *MockIndexer) GetBlockHeight(hash hash.Hash256) (uint64, error)

GetBlockHeight mocks base method.

func (*MockIndexer) GetBlockIndex

func (m *MockIndexer) GetBlockIndex(arg0 uint64) (*blockindex.BlockIndex, error)

GetBlockIndex mocks base method.

func (*MockIndexer) GetTotalActions

func (m *MockIndexer) GetTotalActions() (uint64, error)

GetTotalActions mocks base method.

func (*MockIndexer) Height

func (m *MockIndexer) Height() (uint64, error)

Height mocks base method.

func (*MockIndexer) PutBlock

func (m *MockIndexer) PutBlock(arg0 context.Context, arg1 *block.Block) error

PutBlock mocks base method.

func (*MockIndexer) PutBlocks

func (m *MockIndexer) PutBlocks(arg0 context.Context, arg1 []*block.Block) error

PutBlocks mocks base method.

func (*MockIndexer) Start

func (m *MockIndexer) Start(arg0 context.Context) error

Start mocks base method.

func (*MockIndexer) Stop

func (m *MockIndexer) Stop(arg0 context.Context) error

Stop mocks base method.

type MockIndexerMockRecorder

type MockIndexerMockRecorder struct {
	// contains filtered or unexported fields
}

MockIndexerMockRecorder is the mock recorder for MockIndexer.

func (*MockIndexerMockRecorder) DeleteTipBlock

func (mr *MockIndexerMockRecorder) DeleteTipBlock(arg0, arg1 interface{}) *gomock.Call

DeleteTipBlock indicates an expected call of DeleteTipBlock.

func (*MockIndexerMockRecorder) GetActionCountByAddress

func (mr *MockIndexerMockRecorder) GetActionCountByAddress(arg0 interface{}) *gomock.Call

GetActionCountByAddress indicates an expected call of GetActionCountByAddress.

func (*MockIndexerMockRecorder) GetActionHashFromIndex

func (mr *MockIndexerMockRecorder) GetActionHashFromIndex(arg0, arg1 interface{}) *gomock.Call

GetActionHashFromIndex indicates an expected call of GetActionHashFromIndex.

func (*MockIndexerMockRecorder) GetActionIndex

func (mr *MockIndexerMockRecorder) GetActionIndex(arg0 interface{}) *gomock.Call

GetActionIndex indicates an expected call of GetActionIndex.

func (*MockIndexerMockRecorder) GetActionsByAddress

func (mr *MockIndexerMockRecorder) GetActionsByAddress(arg0, arg1, arg2 interface{}) *gomock.Call

GetActionsByAddress indicates an expected call of GetActionsByAddress.

func (*MockIndexerMockRecorder) GetBlockHash

func (mr *MockIndexerMockRecorder) GetBlockHash(height interface{}) *gomock.Call

GetBlockHash indicates an expected call of GetBlockHash.

func (*MockIndexerMockRecorder) GetBlockHeight

func (mr *MockIndexerMockRecorder) GetBlockHeight(hash interface{}) *gomock.Call

GetBlockHeight indicates an expected call of GetBlockHeight.

func (*MockIndexerMockRecorder) GetBlockIndex

func (mr *MockIndexerMockRecorder) GetBlockIndex(arg0 interface{}) *gomock.Call

GetBlockIndex indicates an expected call of GetBlockIndex.

func (*MockIndexerMockRecorder) GetTotalActions

func (mr *MockIndexerMockRecorder) GetTotalActions() *gomock.Call

GetTotalActions indicates an expected call of GetTotalActions.

func (*MockIndexerMockRecorder) Height

func (mr *MockIndexerMockRecorder) Height() *gomock.Call

Height indicates an expected call of Height.

func (*MockIndexerMockRecorder) PutBlock

func (mr *MockIndexerMockRecorder) PutBlock(arg0, arg1 interface{}) *gomock.Call

PutBlock indicates an expected call of PutBlock.

func (*MockIndexerMockRecorder) PutBlocks

func (mr *MockIndexerMockRecorder) PutBlocks(arg0, arg1 interface{}) *gomock.Call

PutBlocks indicates an expected call of PutBlocks.

func (*MockIndexerMockRecorder) Start

func (mr *MockIndexerMockRecorder) Start(arg0 interface{}) *gomock.Call

Start indicates an expected call of Start.

func (*MockIndexerMockRecorder) Stop

func (mr *MockIndexerMockRecorder) Stop(arg0 interface{}) *gomock.Call

Stop indicates an expected call of Stop.

Jump to

Keyboard shortcuts

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