forked from ava-labs/avalanchego
-
Notifications
You must be signed in to change notification settings - Fork 4
/
mock_unsigned_tx.go
163 lines (137 loc) · 5.18 KB
/
mock_unsigned_tx.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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
// 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 (interfaces: UnsignedTx)
// Package txs is a generated GoMock package.
package txs
import (
reflect "reflect"
ids "github.com/MetalBlockchain/metalgo/ids"
snow "github.com/MetalBlockchain/metalgo/snow"
set "github.com/MetalBlockchain/metalgo/utils/set"
avax "github.com/MetalBlockchain/metalgo/vms/components/avax"
gomock "github.com/golang/mock/gomock"
)
// MockUnsignedTx is a mock of UnsignedTx interface.
type MockUnsignedTx struct {
ctrl *gomock.Controller
recorder *MockUnsignedTxMockRecorder
}
// MockUnsignedTxMockRecorder is the mock recorder for MockUnsignedTx.
type MockUnsignedTxMockRecorder struct {
mock *MockUnsignedTx
}
// NewMockUnsignedTx creates a new mock instance.
func NewMockUnsignedTx(ctrl *gomock.Controller) *MockUnsignedTx {
mock := &MockUnsignedTx{ctrl: ctrl}
mock.recorder = &MockUnsignedTxMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockUnsignedTx) EXPECT() *MockUnsignedTxMockRecorder {
return m.recorder
}
// AssetIDs mocks base method.
func (m *MockUnsignedTx) AssetIDs() set.Set[ids.ID] {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AssetIDs")
ret0, _ := ret[0].(set.Set[ids.ID])
return ret0
}
// AssetIDs indicates an expected call of AssetIDs.
func (mr *MockUnsignedTxMockRecorder) AssetIDs() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssetIDs", reflect.TypeOf((*MockUnsignedTx)(nil).AssetIDs))
}
// Bytes mocks base method.
func (m *MockUnsignedTx) Bytes() []byte {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Bytes")
ret0, _ := ret[0].([]byte)
return ret0
}
// Bytes indicates an expected call of Bytes.
func (mr *MockUnsignedTxMockRecorder) Bytes() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bytes", reflect.TypeOf((*MockUnsignedTx)(nil).Bytes))
}
// ConsumedAssetIDs mocks base method.
func (m *MockUnsignedTx) ConsumedAssetIDs() set.Set[ids.ID] {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ConsumedAssetIDs")
ret0, _ := ret[0].(set.Set[ids.ID])
return ret0
}
// ConsumedAssetIDs indicates an expected call of ConsumedAssetIDs.
func (mr *MockUnsignedTxMockRecorder) ConsumedAssetIDs() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConsumedAssetIDs", reflect.TypeOf((*MockUnsignedTx)(nil).ConsumedAssetIDs))
}
// InitCtx mocks base method.
func (m *MockUnsignedTx) InitCtx(arg0 *snow.Context) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "InitCtx", arg0)
}
// InitCtx indicates an expected call of InitCtx.
func (mr *MockUnsignedTxMockRecorder) InitCtx(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitCtx", reflect.TypeOf((*MockUnsignedTx)(nil).InitCtx), arg0)
}
// InputIDs mocks base method.
func (m *MockUnsignedTx) InputIDs() set.Set[ids.ID] {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "InputIDs")
ret0, _ := ret[0].(set.Set[ids.ID])
return ret0
}
// InputIDs indicates an expected call of InputIDs.
func (mr *MockUnsignedTxMockRecorder) InputIDs() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InputIDs", reflect.TypeOf((*MockUnsignedTx)(nil).InputIDs))
}
// InputUTXOs mocks base method.
func (m *MockUnsignedTx) InputUTXOs() []*avax.UTXOID {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "InputUTXOs")
ret0, _ := ret[0].([]*avax.UTXOID)
return ret0
}
// InputUTXOs indicates an expected call of InputUTXOs.
func (mr *MockUnsignedTxMockRecorder) InputUTXOs() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InputUTXOs", reflect.TypeOf((*MockUnsignedTx)(nil).InputUTXOs))
}
// NumCredentials mocks base method.
func (m *MockUnsignedTx) NumCredentials() int {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NumCredentials")
ret0, _ := ret[0].(int)
return ret0
}
// NumCredentials indicates an expected call of NumCredentials.
func (mr *MockUnsignedTxMockRecorder) NumCredentials() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NumCredentials", reflect.TypeOf((*MockUnsignedTx)(nil).NumCredentials))
}
// SetBytes mocks base method.
func (m *MockUnsignedTx) SetBytes(arg0 []byte) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetBytes", arg0)
}
// SetBytes indicates an expected call of SetBytes.
func (mr *MockUnsignedTxMockRecorder) SetBytes(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBytes", reflect.TypeOf((*MockUnsignedTx)(nil).SetBytes), arg0)
}
// Visit mocks base method.
func (m *MockUnsignedTx) Visit(arg0 Visitor) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Visit", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Visit indicates an expected call of Visit.
func (mr *MockUnsignedTxMockRecorder) Visit(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Visit", reflect.TypeOf((*MockUnsignedTx)(nil).Visit), arg0)
}