mocks

package
v0.0.0-test-go-svm-build Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockatxDB

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

MockatxDB is a mock of atxDB interface.

func NewMockatxDB

func NewMockatxDB(ctrl *gomock.Controller) *MockatxDB

NewMockatxDB creates a new mock instance.

func (*MockatxDB) EXPECT

func (m *MockatxDB) EXPECT() *MockatxDBMockRecorder

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

func (*MockatxDB) GetAtxHeader

func (m *MockatxDB) GetAtxHeader(arg0 types.ATXID) (*types.ActivationTxHeader, error)

GetAtxHeader mocks base method.

type MockatxDBMockRecorder

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

MockatxDBMockRecorder is the mock recorder for MockatxDB.

func (*MockatxDBMockRecorder) GetAtxHeader

func (mr *MockatxDBMockRecorder) GetAtxHeader(arg0 interface{}) *gomock.Call

GetAtxHeader indicates an expected call of GetAtxHeader.

type MockeligibilityValidator

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

MockeligibilityValidator is a mock of eligibilityValidator interface.

func NewMockeligibilityValidator

func NewMockeligibilityValidator(ctrl *gomock.Controller) *MockeligibilityValidator

NewMockeligibilityValidator creates a new mock instance.

func (*MockeligibilityValidator) CheckEligibility

func (m *MockeligibilityValidator) CheckEligibility(arg0 context.Context, arg1 *types.Ballot) (bool, error)

CheckEligibility mocks base method.

func (*MockeligibilityValidator) EXPECT

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

type MockeligibilityValidatorMockRecorder

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

MockeligibilityValidatorMockRecorder is the mock recorder for MockeligibilityValidator.

func (*MockeligibilityValidatorMockRecorder) CheckEligibility

func (mr *MockeligibilityValidatorMockRecorder) CheckEligibility(arg0, arg1 interface{}) *gomock.Call

CheckEligibility indicates an expected call of CheckEligibility.

type MockmeshDB

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

MockmeshDB is a mock of meshDB interface.

func NewMockmeshDB

func NewMockmeshDB(ctrl *gomock.Controller) *MockmeshDB

NewMockmeshDB creates a new mock instance.

func (*MockmeshDB) AddBallot

func (m *MockmeshDB) AddBallot(arg0 *types.Ballot) error

AddBallot mocks base method.

func (*MockmeshDB) AddTXsFromProposal

func (m *MockmeshDB) AddTXsFromProposal(arg0 context.Context, arg1 types.LayerID, arg2 types.ProposalID, arg3 []types.TransactionID) error

AddTXsFromProposal mocks base method.

func (*MockmeshDB) EXPECT

func (m *MockmeshDB) EXPECT() *MockmeshDBMockRecorder

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

func (*MockmeshDB) GetBallot

func (m *MockmeshDB) GetBallot(arg0 types.BallotID) (*types.Ballot, error)

GetBallot mocks base method.

func (*MockmeshDB) HasBallot

func (m *MockmeshDB) HasBallot(arg0 types.BallotID) bool

HasBallot mocks base method.

type MockmeshDBMockRecorder

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

MockmeshDBMockRecorder is the mock recorder for MockmeshDB.

func (*MockmeshDBMockRecorder) AddBallot

func (mr *MockmeshDBMockRecorder) AddBallot(arg0 interface{}) *gomock.Call

AddBallot indicates an expected call of AddBallot.

func (*MockmeshDBMockRecorder) AddTXsFromProposal

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

AddTXsFromProposal indicates an expected call of AddTXsFromProposal.

func (*MockmeshDBMockRecorder) GetBallot

func (mr *MockmeshDBMockRecorder) GetBallot(arg0 interface{}) *gomock.Call

GetBallot indicates an expected call of GetBallot.

func (*MockmeshDBMockRecorder) HasBallot

func (mr *MockmeshDBMockRecorder) HasBallot(arg0 interface{}) *gomock.Call

HasBallot indicates an expected call of HasBallot.

type MockproposalDB

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

MockproposalDB is a mock of proposalDB interface.

func NewMockproposalDB

func NewMockproposalDB(ctrl *gomock.Controller) *MockproposalDB

NewMockproposalDB creates a new mock instance.

func (*MockproposalDB) AddProposal

func (m *MockproposalDB) AddProposal(arg0 context.Context, arg1 *types.Proposal) error

AddProposal mocks base method.

func (*MockproposalDB) EXPECT

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

func (*MockproposalDB) HasProposal

func (m *MockproposalDB) HasProposal(arg0 types.ProposalID) bool

HasProposal mocks base method.

type MockproposalDBMockRecorder

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

MockproposalDBMockRecorder is the mock recorder for MockproposalDB.

func (*MockproposalDBMockRecorder) AddProposal

func (mr *MockproposalDBMockRecorder) AddProposal(arg0, arg1 interface{}) *gomock.Call

AddProposal indicates an expected call of AddProposal.

func (*MockproposalDBMockRecorder) HasProposal

func (mr *MockproposalDBMockRecorder) HasProposal(arg0 interface{}) *gomock.Call

HasProposal indicates an expected call of HasProposal.

Jump to

Keyboard shortcuts

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