mocks

package
v0.2.8-beta.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 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 Mockmesh

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

Mockmesh is a mock of mesh interface.

func NewMockmesh

func NewMockmesh(ctrl *gomock.Controller) *Mockmesh

NewMockmesh creates a new mock instance.

func (*Mockmesh) AddProposal

func (m *Mockmesh) AddProposal(arg0 *types.Proposal) error

AddProposal mocks base method.

func (*Mockmesh) EXPECT

func (m *Mockmesh) EXPECT() *MockmeshMockRecorder

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

func (*Mockmesh) GetBallot

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

GetBallot mocks base method.

func (*Mockmesh) HasBallot

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

HasBallot mocks base method.

func (*Mockmesh) HasProposal

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

HasProposal mocks base method.

type MockmeshMockRecorder

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

MockmeshMockRecorder is the mock recorder for Mockmesh.

func (*MockmeshMockRecorder) AddProposal

func (mr *MockmeshMockRecorder) AddProposal(arg0 interface{}) *gomock.Call

AddProposal indicates an expected call of AddProposal.

func (*MockmeshMockRecorder) GetBallot

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

GetBallot indicates an expected call of GetBallot.

func (*MockmeshMockRecorder) HasBallot

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

HasBallot indicates an expected call of HasBallot.

func (*MockmeshMockRecorder) HasProposal

func (mr *MockmeshMockRecorder) 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