forked from ava-labs/avalanchego
-
Notifications
You must be signed in to change notification settings - Fork 4
/
mock_unsigned_tx.go
135 lines (113 loc) · 4.29 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
// 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/platformvm/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 "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(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))
}
// 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(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)
}
// SyntacticVerify mocks base method.
func (m *MockUnsignedTx) SyntacticVerify(arg0 *snow.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SyntacticVerify", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// SyntacticVerify indicates an expected call of SyntacticVerify.
func (mr *MockUnsignedTxMockRecorder) SyntacticVerify(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SyntacticVerify", reflect.TypeOf((*MockUnsignedTx)(nil).SyntacticVerify), 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)
}