forked from aergoio/aergo
/
mock_txnotice.go
70 lines (58 loc) · 2.51 KB
/
mock_txnotice.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
64
65
66
67
68
69
70
// Code generated by MockGen. DO NOT EDIT.
// Source: txnotice.go
// Package p2pmock is a generated GoMock package.
package p2pmock
import (
types "github.com/aergoio/aergo/types"
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockTxNoticeTracer is a mock of TxNoticeTracer interface
type MockTxNoticeTracer struct {
ctrl *gomock.Controller
recorder *MockTxNoticeTracerMockRecorder
}
// MockTxNoticeTracerMockRecorder is the mock recorder for MockTxNoticeTracer
type MockTxNoticeTracerMockRecorder struct {
mock *MockTxNoticeTracer
}
// NewMockTxNoticeTracer creates a new mock instance
func NewMockTxNoticeTracer(ctrl *gomock.Controller) *MockTxNoticeTracer {
mock := &MockTxNoticeTracer{ctrl: ctrl}
mock.recorder = &MockTxNoticeTracerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockTxNoticeTracer) EXPECT() *MockTxNoticeTracerMockRecorder {
return m.recorder
}
// RegisterTxNotice mocks base method
func (m *MockTxNoticeTracer) RegisterTxNotice(txIDs []types.TxID, cnt int, alreadySent []types.PeerID) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "RegisterTxNotice", txIDs, cnt, alreadySent)
}
// RegisterTxNotice indicates an expected call of RegisterTxNotice
func (mr *MockTxNoticeTracerMockRecorder) RegisterTxNotice(txIDs, cnt, alreadySent interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterTxNotice", reflect.TypeOf((*MockTxNoticeTracer)(nil).RegisterTxNotice), txIDs, cnt, alreadySent)
}
// ReportSend mocks base method
func (m *MockTxNoticeTracer) ReportSend(txIDs []types.TxID, peerID types.PeerID) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "ReportSend", txIDs, peerID)
}
// ReportSend indicates an expected call of ReportSend
func (mr *MockTxNoticeTracerMockRecorder) ReportSend(txIDs, peerID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReportSend", reflect.TypeOf((*MockTxNoticeTracer)(nil).ReportSend), txIDs, peerID)
}
// ReportNotSend mocks base method
func (m *MockTxNoticeTracer) ReportNotSend(txIDs []types.TxID, cnt int) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "ReportNotSend", txIDs, cnt)
}
// ReportNotSend indicates an expected call of ReportNotSend
func (mr *MockTxNoticeTracerMockRecorder) ReportNotSend(txIDs, cnt interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReportNotSend", reflect.TypeOf((*MockTxNoticeTracer)(nil).ReportNotSend), txIDs, cnt)
}