mock_blockchain

package
v1.3.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mock_blockchain is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBlockBuilderFactory added in v0.11.0

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

MockBlockBuilderFactory is a mock of BlockBuilderFactory interface

func NewMockBlockBuilderFactory added in v0.11.0

func NewMockBlockBuilderFactory(ctrl *gomock.Controller) *MockBlockBuilderFactory

NewMockBlockBuilderFactory creates a new mock instance

func (*MockBlockBuilderFactory) EXPECT added in v0.11.0

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

func (*MockBlockBuilderFactory) NewBlockBuilder added in v0.11.0

func (m *MockBlockBuilderFactory) NewBlockBuilder(arg0 context.Context, arg1 func(action.Envelope) (action.SealedEnvelope, error)) (*block.Builder, error)

NewBlockBuilder mocks base method

type MockBlockBuilderFactoryMockRecorder added in v0.11.0

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

MockBlockBuilderFactoryMockRecorder is the mock recorder for MockBlockBuilderFactory

func (*MockBlockBuilderFactoryMockRecorder) NewBlockBuilder added in v0.11.0

func (mr *MockBlockBuilderFactoryMockRecorder) NewBlockBuilder(arg0, arg1 interface{}) *gomock.Call

NewBlockBuilder indicates an expected call of NewBlockBuilder

type MockBlockchain added in v0.2.0

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

MockBlockchain is a mock of Blockchain interface

func NewMockBlockchain added in v0.2.0

func NewMockBlockchain(ctrl *gomock.Controller) *MockBlockchain

NewMockBlockchain creates a new mock instance

func (*MockBlockchain) AddSubscriber added in v0.4.4

func (m *MockBlockchain) AddSubscriber(arg0 blockchain.BlockCreationSubscriber) error

AddSubscriber mocks base method

func (*MockBlockchain) BlockFooterByHeight added in v0.5.0

func (m *MockBlockchain) BlockFooterByHeight(height uint64) (*block.Footer, error)

BlockFooterByHeight mocks base method

func (*MockBlockchain) BlockHeaderByHeight added in v0.5.0

func (m *MockBlockchain) BlockHeaderByHeight(height uint64) (*block.Header, error)

BlockHeaderByHeight mocks base method

func (*MockBlockchain) ChainAddress added in v0.4.0

func (m *MockBlockchain) ChainAddress() string

ChainAddress mocks base method

func (*MockBlockchain) ChainID added in v0.4.0

func (m *MockBlockchain) ChainID() uint32

ChainID mocks base method

func (*MockBlockchain) CommitBlock added in v0.2.0

func (m *MockBlockchain) CommitBlock(blk *block.Block) error

CommitBlock mocks base method

func (*MockBlockchain) Context added in v0.11.0

func (m *MockBlockchain) Context(arg0 context.Context) (context.Context, error)

Context mocks base method

func (*MockBlockchain) EXPECT added in v0.2.0

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

func (*MockBlockchain) Genesis added in v0.11.0

func (m *MockBlockchain) Genesis() genesis.Genesis

Genesis mocks base method

func (*MockBlockchain) MintNewBlock added in v0.2.0

func (m *MockBlockchain) MintNewBlock(timestamp time.Time) (*block.Block, error)

MintNewBlock mocks base method

func (*MockBlockchain) RemoveSubscriber added in v0.4.4

func (m *MockBlockchain) RemoveSubscriber(arg0 blockchain.BlockCreationSubscriber) error

RemoveSubscriber mocks base method

func (*MockBlockchain) Start added in v0.2.0

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

Start mocks base method

func (*MockBlockchain) Stop added in v0.2.0

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

Stop mocks base method

func (*MockBlockchain) TipHash added in v0.2.0

func (m *MockBlockchain) TipHash() hash.Hash256

TipHash mocks base method

func (*MockBlockchain) TipHeight added in v0.2.0

func (m *MockBlockchain) TipHeight() uint64

TipHeight mocks base method

func (*MockBlockchain) ValidateBlock added in v0.2.0

func (m *MockBlockchain) ValidateBlock(blk *block.Block) error

ValidateBlock mocks base method

type MockBlockchainMockRecorder added in v0.2.0

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

MockBlockchainMockRecorder is the mock recorder for MockBlockchain

func (*MockBlockchainMockRecorder) AddSubscriber added in v0.4.4

func (mr *MockBlockchainMockRecorder) AddSubscriber(arg0 interface{}) *gomock.Call

AddSubscriber indicates an expected call of AddSubscriber

func (*MockBlockchainMockRecorder) BlockFooterByHeight added in v0.5.0

func (mr *MockBlockchainMockRecorder) BlockFooterByHeight(height interface{}) *gomock.Call

BlockFooterByHeight indicates an expected call of BlockFooterByHeight

func (*MockBlockchainMockRecorder) BlockHeaderByHeight added in v0.5.0

func (mr *MockBlockchainMockRecorder) BlockHeaderByHeight(height interface{}) *gomock.Call

BlockHeaderByHeight indicates an expected call of BlockHeaderByHeight

func (*MockBlockchainMockRecorder) ChainAddress added in v0.4.0

func (mr *MockBlockchainMockRecorder) ChainAddress() *gomock.Call

ChainAddress indicates an expected call of ChainAddress

func (*MockBlockchainMockRecorder) ChainID added in v0.4.0

func (mr *MockBlockchainMockRecorder) ChainID() *gomock.Call

ChainID indicates an expected call of ChainID

func (*MockBlockchainMockRecorder) CommitBlock added in v0.2.0

func (mr *MockBlockchainMockRecorder) CommitBlock(blk interface{}) *gomock.Call

CommitBlock indicates an expected call of CommitBlock

func (*MockBlockchainMockRecorder) Context added in v0.11.0

func (mr *MockBlockchainMockRecorder) Context(arg0 interface{}) *gomock.Call

Context indicates an expected call of Context

func (*MockBlockchainMockRecorder) Genesis added in v0.11.0

func (mr *MockBlockchainMockRecorder) Genesis() *gomock.Call

Genesis indicates an expected call of Genesis

func (*MockBlockchainMockRecorder) MintNewBlock added in v0.2.0

func (mr *MockBlockchainMockRecorder) MintNewBlock(timestamp interface{}) *gomock.Call

MintNewBlock indicates an expected call of MintNewBlock

func (*MockBlockchainMockRecorder) RemoveSubscriber added in v0.4.4

func (mr *MockBlockchainMockRecorder) RemoveSubscriber(arg0 interface{}) *gomock.Call

RemoveSubscriber indicates an expected call of RemoveSubscriber

func (*MockBlockchainMockRecorder) Start added in v0.2.0

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

Start indicates an expected call of Start

func (*MockBlockchainMockRecorder) Stop added in v0.2.0

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

Stop indicates an expected call of Stop

func (*MockBlockchainMockRecorder) TipHash added in v0.2.0

func (mr *MockBlockchainMockRecorder) TipHash() *gomock.Call

TipHash indicates an expected call of TipHash

func (*MockBlockchainMockRecorder) TipHeight added in v0.2.0

func (mr *MockBlockchainMockRecorder) TipHeight() *gomock.Call

TipHeight indicates an expected call of TipHeight

func (*MockBlockchainMockRecorder) ValidateBlock added in v0.2.0

func (mr *MockBlockchainMockRecorder) ValidateBlock(blk interface{}) *gomock.Call

ValidateBlock indicates an expected call of ValidateBlock

Jump to

Keyboard shortcuts

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