Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockatxDB
- type MockatxDBMockRecorder
- type MockeligibilityValidator
- type MockeligibilityValidatorMockRecorder
- type MockmeshDB
- func (m *MockmeshDB) AddBallot(arg0 *types.Ballot) error
- func (m *MockmeshDB) AddTXsFromProposal(arg0 context.Context, arg1 types.LayerID, arg2 types.ProposalID, ...) error
- func (m *MockmeshDB) EXPECT() *MockmeshDBMockRecorder
- func (m *MockmeshDB) GetBallot(arg0 types.BallotID) (*types.Ballot, error)
- func (m *MockmeshDB) HasBallot(arg0 types.BallotID) bool
- type MockmeshDBMockRecorder
- func (mr *MockmeshDBMockRecorder) AddBallot(arg0 interface{}) *gomock.Call
- func (mr *MockmeshDBMockRecorder) AddTXsFromProposal(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockmeshDBMockRecorder) GetBallot(arg0 interface{}) *gomock.Call
- func (mr *MockmeshDBMockRecorder) HasBallot(arg0 interface{}) *gomock.Call
- type MockproposalDB
- type MockproposalDBMockRecorder
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 ¶
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 ¶
func (m *MockeligibilityValidator) EXPECT() *MockeligibilityValidatorMockRecorder
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.
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 ¶
AddProposal mocks base method.
func (*MockproposalDB) EXPECT ¶
func (m *MockproposalDB) EXPECT() *MockproposalDBMockRecorder
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.