forked from ava-labs/avalanchego
-
Notifications
You must be signed in to change notification settings - Fork 4
/
mock_mempool.go
145 lines (121 loc) · 4.5 KB
/
mock_mempool.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
// Copyright (C) 2019-2023, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/MetalBlockchain/metalgo/vms/avm/txs/mempool (interfaces: Mempool)
// Package mempool is a generated GoMock package.
package mempool
import (
reflect "reflect"
ids "github.com/MetalBlockchain/metalgo/ids"
txs "github.com/MetalBlockchain/metalgo/vms/avm/txs"
gomock "github.com/golang/mock/gomock"
)
// MockMempool is a mock of Mempool interface.
type MockMempool struct {
ctrl *gomock.Controller
recorder *MockMempoolMockRecorder
}
// MockMempoolMockRecorder is the mock recorder for MockMempool.
type MockMempoolMockRecorder struct {
mock *MockMempool
}
// NewMockMempool creates a new mock instance.
func NewMockMempool(ctrl *gomock.Controller) *MockMempool {
mock := &MockMempool{ctrl: ctrl}
mock.recorder = &MockMempoolMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockMempool) EXPECT() *MockMempoolMockRecorder {
return m.recorder
}
// Add mocks base method.
func (m *MockMempool) Add(arg0 *txs.Tx) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Add", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Add indicates an expected call of Add.
func (mr *MockMempoolMockRecorder) Add(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockMempool)(nil).Add), arg0)
}
// Get mocks base method.
func (m *MockMempool) Get(arg0 ids.ID) *txs.Tx {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Get", arg0)
ret0, _ := ret[0].(*txs.Tx)
return ret0
}
// Get indicates an expected call of Get.
func (mr *MockMempoolMockRecorder) Get(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockMempool)(nil).Get), arg0)
}
// GetDropReason mocks base method.
func (m *MockMempool) GetDropReason(arg0 ids.ID) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetDropReason", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// GetDropReason indicates an expected call of GetDropReason.
func (mr *MockMempoolMockRecorder) GetDropReason(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDropReason", reflect.TypeOf((*MockMempool)(nil).GetDropReason), arg0)
}
// Has mocks base method.
func (m *MockMempool) Has(arg0 ids.ID) bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Has", arg0)
ret0, _ := ret[0].(bool)
return ret0
}
// Has indicates an expected call of Has.
func (mr *MockMempoolMockRecorder) Has(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Has", reflect.TypeOf((*MockMempool)(nil).Has), arg0)
}
// MarkDropped mocks base method.
func (m *MockMempool) MarkDropped(arg0 ids.ID, arg1 error) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "MarkDropped", arg0, arg1)
}
// MarkDropped indicates an expected call of MarkDropped.
func (mr *MockMempoolMockRecorder) MarkDropped(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MarkDropped", reflect.TypeOf((*MockMempool)(nil).MarkDropped), arg0, arg1)
}
// Peek mocks base method.
func (m *MockMempool) Peek(arg0 int) *txs.Tx {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Peek", arg0)
ret0, _ := ret[0].(*txs.Tx)
return ret0
}
// Peek indicates an expected call of Peek.
func (mr *MockMempoolMockRecorder) Peek(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Peek", reflect.TypeOf((*MockMempool)(nil).Peek), arg0)
}
// Remove mocks base method.
func (m *MockMempool) Remove(arg0 []*txs.Tx) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Remove", arg0)
}
// Remove indicates an expected call of Remove.
func (mr *MockMempoolMockRecorder) Remove(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Remove", reflect.TypeOf((*MockMempool)(nil).Remove), arg0)
}
// RequestBuildBlock mocks base method.
func (m *MockMempool) RequestBuildBlock() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "RequestBuildBlock")
}
// RequestBuildBlock indicates an expected call of RequestBuildBlock.
func (mr *MockMempoolMockRecorder) RequestBuildBlock() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestBuildBlock", reflect.TypeOf((*MockMempool)(nil).RequestBuildBlock))
}