Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: ./interface.go
Generated by this command:
mockgen -typed -package=malfeasance -destination=./mocks.go -source=./interface.go
Package malfeasance is a generated GoMock package.
Index ¶
- Variables
- func Validate(ctx context.Context, logger log.Log, cdb *datastore.CachedDB, ...) (types.NodeID, error)
- type Handler
- type MockSigVerifier
- type MockSigVerifierMockRecorder
- type MockconsensusProtocol
- type MockconsensusProtocolMockRecorder
- type Mocktortoise
- type MocktortoiseMockRecorder
- type SigVerifier
- type SigVerifierVerifyCall
- func (c *SigVerifierVerifyCall) Do(f func(signing.Domain, types.NodeID, []byte, types.EdSignature) bool) *SigVerifierVerifyCall
- func (c *SigVerifierVerifyCall) DoAndReturn(f func(signing.Domain, types.NodeID, []byte, types.EdSignature) bool) *SigVerifierVerifyCall
- func (c *SigVerifierVerifyCall) Return(arg0 bool) *SigVerifierVerifyCall
Constants ¶
This section is empty.
Variables ¶
var (
ErrKnownProof = errors.New("known proof")
)
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler processes MalfeasanceProof from gossip and, if deems it valid, propagates it to peers.
func NewHandler ¶
func (*Handler) HandleMalfeasanceProof ¶
HandleMalfeasanceProof is the gossip receiver for MalfeasanceGossip.
type MockSigVerifier ¶
type MockSigVerifier struct {
// contains filtered or unexported fields
}
MockSigVerifier is a mock of SigVerifier interface.
func NewMockSigVerifier ¶
func NewMockSigVerifier(ctrl *gomock.Controller) *MockSigVerifier
NewMockSigVerifier creates a new mock instance.
func (*MockSigVerifier) EXPECT ¶
func (m *MockSigVerifier) EXPECT() *MockSigVerifierMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockSigVerifierMockRecorder ¶
type MockSigVerifierMockRecorder struct {
// contains filtered or unexported fields
}
MockSigVerifierMockRecorder is the mock recorder for MockSigVerifier.
func (*MockSigVerifierMockRecorder) Verify ¶
func (mr *MockSigVerifierMockRecorder) Verify(arg0, arg1, arg2, arg3 any) *SigVerifierVerifyCall
Verify indicates an expected call of Verify.
type MockconsensusProtocol ¶
type MockconsensusProtocol struct {
// contains filtered or unexported fields
}
MockconsensusProtocol is a mock of consensusProtocol interface.
func NewMockconsensusProtocol ¶
func NewMockconsensusProtocol(ctrl *gomock.Controller) *MockconsensusProtocol
NewMockconsensusProtocol creates a new mock instance.
func (*MockconsensusProtocol) EXPECT ¶
func (m *MockconsensusProtocol) EXPECT() *MockconsensusProtocolMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockconsensusProtocol) HandleEligibility ¶
func (m *MockconsensusProtocol) HandleEligibility(arg0 context.Context, arg1 *types.HareEligibilityGossip)
HandleEligibility mocks base method.
type MockconsensusProtocolMockRecorder ¶
type MockconsensusProtocolMockRecorder struct {
// contains filtered or unexported fields
}
MockconsensusProtocolMockRecorder is the mock recorder for MockconsensusProtocol.
func (*MockconsensusProtocolMockRecorder) HandleEligibility ¶
func (mr *MockconsensusProtocolMockRecorder) HandleEligibility(arg0, arg1 any) *consensusProtocolHandleEligibilityCall
HandleEligibility indicates an expected call of HandleEligibility.
type Mocktortoise ¶
type Mocktortoise struct {
// contains filtered or unexported fields
}
Mocktortoise is a mock of tortoise interface.
func NewMocktortoise ¶
func NewMocktortoise(ctrl *gomock.Controller) *Mocktortoise
NewMocktortoise creates a new mock instance.
func (*Mocktortoise) EXPECT ¶
func (m *Mocktortoise) EXPECT() *MocktortoiseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Mocktortoise) OnMalfeasance ¶
func (m *Mocktortoise) OnMalfeasance(arg0 types.NodeID)
OnMalfeasance mocks base method.
type MocktortoiseMockRecorder ¶
type MocktortoiseMockRecorder struct {
// contains filtered or unexported fields
}
MocktortoiseMockRecorder is the mock recorder for Mocktortoise.
func (*MocktortoiseMockRecorder) OnMalfeasance ¶
func (mr *MocktortoiseMockRecorder) OnMalfeasance(arg0 any) *tortoiseOnMalfeasanceCall
OnMalfeasance indicates an expected call of OnMalfeasance.
type SigVerifier ¶
type SigVerifierVerifyCall ¶ added in v1.1.5
SigVerifierVerifyCall wrap *gomock.Call
func (*SigVerifierVerifyCall) Do ¶ added in v1.1.5
func (c *SigVerifierVerifyCall) Do(f func(signing.Domain, types.NodeID, []byte, types.EdSignature) bool) *SigVerifierVerifyCall
Do rewrite *gomock.Call.Do
func (*SigVerifierVerifyCall) DoAndReturn ¶ added in v1.1.5
func (c *SigVerifierVerifyCall) DoAndReturn(f func(signing.Domain, types.NodeID, []byte, types.EdSignature) bool) *SigVerifierVerifyCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*SigVerifierVerifyCall) Return ¶ added in v1.1.5
func (c *SigVerifierVerifyCall) Return(arg0 bool) *SigVerifierVerifyCall
Return rewrite *gomock.Call.Return