-
Notifications
You must be signed in to change notification settings - Fork 211
/
mocks.go
48 lines (39 loc) · 1.6 KB
/
mocks.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Code generated by MockGen. DO NOT EDIT.
// Source: ./interface.go
// Package malfeasance is a generated GoMock package.
package malfeasance
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
types "github.com/spacemeshos/go-spacemesh/common/types"
)
// MockconsensusProtocol is a mock of consensusProtocol interface.
type MockconsensusProtocol struct {
ctrl *gomock.Controller
recorder *MockconsensusProtocolMockRecorder
}
// MockconsensusProtocolMockRecorder is the mock recorder for MockconsensusProtocol.
type MockconsensusProtocolMockRecorder struct {
mock *MockconsensusProtocol
}
// NewMockconsensusProtocol creates a new mock instance.
func NewMockconsensusProtocol(ctrl *gomock.Controller) *MockconsensusProtocol {
mock := &MockconsensusProtocol{ctrl: ctrl}
mock.recorder = &MockconsensusProtocolMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockconsensusProtocol) EXPECT() *MockconsensusProtocolMockRecorder {
return m.recorder
}
// HandleEligibility mocks base method.
func (m *MockconsensusProtocol) HandleEligibility(arg0 context.Context, arg1 *types.HareEligibilityGossip) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "HandleEligibility", arg0, arg1)
}
// HandleEligibility indicates an expected call of HandleEligibility.
func (mr *MockconsensusProtocolMockRecorder) HandleEligibility(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandleEligibility", reflect.TypeOf((*MockconsensusProtocol)(nil).HandleEligibility), arg0, arg1)
}