forked from aergoio/aergo
/
mock_msgsigner.go
63 lines (53 loc) · 1.95 KB
/
mock_msgsigner.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
62
63
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/aergoio/aergo/p2p/p2pcommon (interfaces: MsgSigner)
// Package p2pmock is a generated GoMock package.
package p2pmock
import (
types "github.com/aergoio/aergo/types"
gomock "github.com/golang/mock/gomock"
go_libp2p_peer "github.com/libp2p/go-libp2p-peer"
reflect "reflect"
)
// MockMsgSigner is a mock of MsgSigner interface
type MockMsgSigner struct {
ctrl *gomock.Controller
recorder *MockMsgSignerMockRecorder
}
// MockMsgSignerMockRecorder is the mock recorder for MockMsgSigner
type MockMsgSignerMockRecorder struct {
mock *MockMsgSigner
}
// NewMockMsgSigner creates a new mock instance
func NewMockMsgSigner(ctrl *gomock.Controller) *MockMsgSigner {
mock := &MockMsgSigner{ctrl: ctrl}
mock.recorder = &MockMsgSignerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockMsgSigner) EXPECT() *MockMsgSignerMockRecorder {
return m.recorder
}
// SignMsg mocks base method
func (m *MockMsgSigner) SignMsg(arg0 *types.P2PMessage) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SignMsg", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// SignMsg indicates an expected call of SignMsg
func (mr *MockMsgSignerMockRecorder) SignMsg(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SignMsg", reflect.TypeOf((*MockMsgSigner)(nil).SignMsg), arg0)
}
// VerifyMsg mocks base method
func (m *MockMsgSigner) VerifyMsg(arg0 *types.P2PMessage, arg1 go_libp2p_peer.ID) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "VerifyMsg", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// VerifyMsg indicates an expected call of VerifyMsg
func (mr *MockMsgSignerMockRecorder) VerifyMsg(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyMsg", reflect.TypeOf((*MockMsgSigner)(nil).VerifyMsg), arg0, arg1)
}