forked from ava-labs/avalanchego
-
Notifications
You must be signed in to change notification settings - Fork 4
/
mock_unsigned_tx.go
137 lines (116 loc) · 4.32 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
// Code generated by MockGen. DO NOT EDIT.
// Source: vms/platformvm/txs/unsigned_tx.go
//
// Generated by this command:
//
// mockgen -source=vms/platformvm/txs/unsigned_tx.go -destination=vms/platformvm/txs/mock_unsigned_tx.go -package=txs -exclude_interfaces=
//
// 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 "go.uber.org/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
}
// 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))
}
// InitCtx mocks base method.
func (m *MockUnsignedTx) InitCtx(ctx *snow.Context) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "InitCtx", ctx)
}
// InitCtx indicates an expected call of InitCtx.
func (mr *MockUnsignedTxMockRecorder) InitCtx(ctx any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitCtx", reflect.TypeOf((*MockUnsignedTx)(nil).InitCtx), ctx)
}
// 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))
}
// Outputs mocks base method.
func (m *MockUnsignedTx) Outputs() []*avax.TransferableOutput {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Outputs")
ret0, _ := ret[0].([]*avax.TransferableOutput)
return ret0
}
// Outputs indicates an expected call of Outputs.
func (mr *MockUnsignedTxMockRecorder) Outputs() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Outputs", reflect.TypeOf((*MockUnsignedTx)(nil).Outputs))
}
// SetBytes mocks base method.
func (m *MockUnsignedTx) SetBytes(unsignedBytes []byte) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetBytes", unsignedBytes)
}
// SetBytes indicates an expected call of SetBytes.
func (mr *MockUnsignedTxMockRecorder) SetBytes(unsignedBytes any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBytes", reflect.TypeOf((*MockUnsignedTx)(nil).SetBytes), unsignedBytes)
}
// SyntacticVerify mocks base method.
func (m *MockUnsignedTx) SyntacticVerify(ctx *snow.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SyntacticVerify", ctx)
ret0, _ := ret[0].(error)
return ret0
}
// SyntacticVerify indicates an expected call of SyntacticVerify.
func (mr *MockUnsignedTxMockRecorder) SyntacticVerify(ctx any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SyntacticVerify", reflect.TypeOf((*MockUnsignedTx)(nil).SyntacticVerify), ctx)
}
// Visit mocks base method.
func (m *MockUnsignedTx) Visit(visitor Visitor) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Visit", visitor)
ret0, _ := ret[0].(error)
return ret0
}
// Visit indicates an expected call of Visit.
func (mr *MockUnsignedTxMockRecorder) Visit(visitor any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Visit", reflect.TypeOf((*MockUnsignedTx)(nil).Visit), visitor)
}