-
Notifications
You must be signed in to change notification settings - Fork 53
/
acceptor_mock.go
61 lines (50 loc) · 1.78 KB
/
acceptor_mock.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
49
50
51
52
53
54
55
56
57
58
59
60
61
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/relab/hotstuff/consensus (interfaces: Acceptor)
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
consensus "github.com/relab/hotstuff/consensus"
)
// MockAcceptor is a mock of Acceptor interface.
type MockAcceptor struct {
ctrl *gomock.Controller
recorder *MockAcceptorMockRecorder
}
// MockAcceptorMockRecorder is the mock recorder for MockAcceptor.
type MockAcceptorMockRecorder struct {
mock *MockAcceptor
}
// NewMockAcceptor creates a new mock instance.
func NewMockAcceptor(ctrl *gomock.Controller) *MockAcceptor {
mock := &MockAcceptor{ctrl: ctrl}
mock.recorder = &MockAcceptorMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockAcceptor) EXPECT() *MockAcceptorMockRecorder {
return m.recorder
}
// Accept mocks base method.
func (m *MockAcceptor) Accept(arg0 consensus.Command) bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Accept", arg0)
ret0, _ := ret[0].(bool)
return ret0
}
// Accept indicates an expected call of Accept.
func (mr *MockAcceptorMockRecorder) Accept(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Accept", reflect.TypeOf((*MockAcceptor)(nil).Accept), arg0)
}
// Proposed mocks base method.
func (m *MockAcceptor) Proposed(arg0 consensus.Command) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Proposed", arg0)
}
// Proposed indicates an expected call of Proposed.
func (mr *MockAcceptorMockRecorder) Proposed(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Proposed", reflect.TypeOf((*MockAcceptor)(nil).Proposed), arg0)
}