mockengine

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2019 License: AGPL-3.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mockengine is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockEngine

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

MockEngine is a mock of Engine interface

func NewMockEngine

func NewMockEngine(ctrl *gomock.Controller) *MockEngine

NewMockEngine creates a new mock instance

func (*MockEngine) EXPECT

func (m *MockEngine) EXPECT() *MockEngineMockRecorder

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

func (*MockEngine) Finalize

func (m *MockEngine) Finalize(arg0 context.Context, arg1 chain.Reader, arg2 *pb.Header, arg3 state.Reader, arg4 []*pb.Transaction) (*pb.Block, error)

Finalize mocks base method

func (*MockEngine) Prepare

func (m *MockEngine) Prepare(arg0 chain.Reader, arg1 *pb.Header) error

Prepare mocks base method

func (*MockEngine) VerifyHeader

func (m *MockEngine) VerifyHeader(arg0 chain.Reader, arg1 *pb.Header) error

VerifyHeader mocks base method

type MockEngineMockRecorder

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

MockEngineMockRecorder is the mock recorder for MockEngine

func (*MockEngineMockRecorder) Finalize

func (mr *MockEngineMockRecorder) Finalize(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

Finalize indicates an expected call of Finalize

func (*MockEngineMockRecorder) Prepare

func (mr *MockEngineMockRecorder) Prepare(arg0, arg1 interface{}) *gomock.Call

Prepare indicates an expected call of Prepare

func (*MockEngineMockRecorder) VerifyHeader

func (mr *MockEngineMockRecorder) VerifyHeader(arg0, arg1 interface{}) *gomock.Call

VerifyHeader indicates an expected call of VerifyHeader

type MockPoW

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

MockPoW is a mock of PoW interface

func NewMockPoW

func NewMockPoW(ctrl *gomock.Controller) *MockPoW

NewMockPoW creates a new mock instance

func (*MockPoW) Difficulty

func (m *MockPoW) Difficulty() uint64

Difficulty mocks base method

func (*MockPoW) EXPECT

func (m *MockPoW) EXPECT() *MockPoWMockRecorder

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

func (*MockPoW) Finalize

func (m *MockPoW) Finalize(arg0 context.Context, arg1 chain.Reader, arg2 *pb.Header, arg3 state.Reader, arg4 []*pb.Transaction) (*pb.Block, error)

Finalize mocks base method

func (*MockPoW) Prepare

func (m *MockPoW) Prepare(arg0 chain.Reader, arg1 *pb.Header) error

Prepare mocks base method

func (*MockPoW) Reward

func (m *MockPoW) Reward() uint64

Reward mocks base method

func (*MockPoW) VerifyHeader

func (m *MockPoW) VerifyHeader(arg0 chain.Reader, arg1 *pb.Header) error

VerifyHeader mocks base method

type MockPoWMockRecorder

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

MockPoWMockRecorder is the mock recorder for MockPoW

func (*MockPoWMockRecorder) Difficulty

func (mr *MockPoWMockRecorder) Difficulty() *gomock.Call

Difficulty indicates an expected call of Difficulty

func (*MockPoWMockRecorder) Finalize

func (mr *MockPoWMockRecorder) Finalize(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

Finalize indicates an expected call of Finalize

func (*MockPoWMockRecorder) Prepare

func (mr *MockPoWMockRecorder) Prepare(arg0, arg1 interface{}) *gomock.Call

Prepare indicates an expected call of Prepare

func (*MockPoWMockRecorder) Reward

func (mr *MockPoWMockRecorder) Reward() *gomock.Call

Reward indicates an expected call of Reward

func (*MockPoWMockRecorder) VerifyHeader

func (mr *MockPoWMockRecorder) VerifyHeader(arg0, arg1 interface{}) *gomock.Call

VerifyHeader indicates an expected call of VerifyHeader

Jump to

Keyboard shortcuts

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