mock

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 3 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 MockBlockApi

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

MockBlockApi is a mock of BlockApi interface.

func NewMockBlockApi

func NewMockBlockApi(ctrl *gomock.Controller) *MockBlockApi

NewMockBlockApi creates a new mock instance.

func (*MockBlockApi) EXPECT

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

func (*MockBlockApi) ExistTxid

func (m *MockBlockApi) ExistTxid(block *types.Block, txid string) (bool, error)

ExistTxid mocks base method.

func (*MockBlockApi) GetHeaderData

func (m *MockBlockApi) GetHeaderData(block *types.Block) (string, *types.BlockHeader, error)

GetHeaderData mocks base method.

func (*MockBlockApi) GetTransactionData

func (m *MockBlockApi) GetTransactionData(block *types.Block, txid string) (*types.Transaction, *types.ByteData, error)

GetTransactionData mocks base method.

func (*MockBlockApi) GetTxCount

func (m *MockBlockApi) GetTxCount(block *types.Block) (uint32, error)

GetTxCount mocks base method.

func (*MockBlockApi) GetTxidList

func (m *MockBlockApi) GetTxidList(block *types.Block) ([]string, error)

GetTxidList mocks base method.

type MockBlockApiMockRecorder

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

MockBlockApiMockRecorder is the mock recorder for MockBlockApi.

func (*MockBlockApiMockRecorder) ExistTxid

func (mr *MockBlockApiMockRecorder) ExistTxid(block, txid interface{}) *gomock.Call

ExistTxid indicates an expected call of ExistTxid.

func (*MockBlockApiMockRecorder) GetHeaderData

func (mr *MockBlockApiMockRecorder) GetHeaderData(block interface{}) *gomock.Call

GetHeaderData indicates an expected call of GetHeaderData.

func (*MockBlockApiMockRecorder) GetTransactionData

func (mr *MockBlockApiMockRecorder) GetTransactionData(block, txid interface{}) *gomock.Call

GetTransactionData indicates an expected call of GetTransactionData.

func (*MockBlockApiMockRecorder) GetTxCount

func (mr *MockBlockApiMockRecorder) GetTxCount(block interface{}) *gomock.Call

GetTxCount indicates an expected call of GetTxCount.

func (*MockBlockApiMockRecorder) GetTxidList

func (mr *MockBlockApiMockRecorder) GetTxidList(block interface{}) *gomock.Call

GetTxidList indicates an expected call of GetTxidList.

Jump to

Keyboard shortcuts

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