github.com/MetalBlockchain/metalgo@v1.11.9/vms/platformvm/txs/mock_unsigned_tx.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: vms/platformvm/txs/unsigned_tx.go 3 // 4 // Generated by this command: 5 // 6 // mockgen -source=vms/platformvm/txs/unsigned_tx.go -destination=vms/platformvm/txs/mock_unsigned_tx.go -package=txs -exclude_interfaces= 7 // 8 9 // Package txs is a generated GoMock package. 10 package txs 11 12 import ( 13 reflect "reflect" 14 15 ids "github.com/MetalBlockchain/metalgo/ids" 16 snow "github.com/MetalBlockchain/metalgo/snow" 17 set "github.com/MetalBlockchain/metalgo/utils/set" 18 avax "github.com/MetalBlockchain/metalgo/vms/components/avax" 19 gomock "go.uber.org/mock/gomock" 20 ) 21 22 // MockUnsignedTx is a mock of UnsignedTx interface. 23 type MockUnsignedTx struct { 24 ctrl *gomock.Controller 25 recorder *MockUnsignedTxMockRecorder 26 } 27 28 // MockUnsignedTxMockRecorder is the mock recorder for MockUnsignedTx. 29 type MockUnsignedTxMockRecorder struct { 30 mock *MockUnsignedTx 31 } 32 33 // NewMockUnsignedTx creates a new mock instance. 34 func NewMockUnsignedTx(ctrl *gomock.Controller) *MockUnsignedTx { 35 mock := &MockUnsignedTx{ctrl: ctrl} 36 mock.recorder = &MockUnsignedTxMockRecorder{mock} 37 return mock 38 } 39 40 // EXPECT returns an object that allows the caller to indicate expected use. 41 func (m *MockUnsignedTx) EXPECT() *MockUnsignedTxMockRecorder { 42 return m.recorder 43 } 44 45 // Bytes mocks base method. 46 func (m *MockUnsignedTx) Bytes() []byte { 47 m.ctrl.T.Helper() 48 ret := m.ctrl.Call(m, "Bytes") 49 ret0, _ := ret[0].([]byte) 50 return ret0 51 } 52 53 // Bytes indicates an expected call of Bytes. 54 func (mr *MockUnsignedTxMockRecorder) Bytes() *gomock.Call { 55 mr.mock.ctrl.T.Helper() 56 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bytes", reflect.TypeOf((*MockUnsignedTx)(nil).Bytes)) 57 } 58 59 // InitCtx mocks base method. 60 func (m *MockUnsignedTx) InitCtx(ctx *snow.Context) { 61 m.ctrl.T.Helper() 62 m.ctrl.Call(m, "InitCtx", ctx) 63 } 64 65 // InitCtx indicates an expected call of InitCtx. 66 func (mr *MockUnsignedTxMockRecorder) InitCtx(ctx any) *gomock.Call { 67 mr.mock.ctrl.T.Helper() 68 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitCtx", reflect.TypeOf((*MockUnsignedTx)(nil).InitCtx), ctx) 69 } 70 71 // InputIDs mocks base method. 72 func (m *MockUnsignedTx) InputIDs() set.Set[ids.ID] { 73 m.ctrl.T.Helper() 74 ret := m.ctrl.Call(m, "InputIDs") 75 ret0, _ := ret[0].(set.Set[ids.ID]) 76 return ret0 77 } 78 79 // InputIDs indicates an expected call of InputIDs. 80 func (mr *MockUnsignedTxMockRecorder) InputIDs() *gomock.Call { 81 mr.mock.ctrl.T.Helper() 82 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InputIDs", reflect.TypeOf((*MockUnsignedTx)(nil).InputIDs)) 83 } 84 85 // Outputs mocks base method. 86 func (m *MockUnsignedTx) Outputs() []*avax.TransferableOutput { 87 m.ctrl.T.Helper() 88 ret := m.ctrl.Call(m, "Outputs") 89 ret0, _ := ret[0].([]*avax.TransferableOutput) 90 return ret0 91 } 92 93 // Outputs indicates an expected call of Outputs. 94 func (mr *MockUnsignedTxMockRecorder) Outputs() *gomock.Call { 95 mr.mock.ctrl.T.Helper() 96 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Outputs", reflect.TypeOf((*MockUnsignedTx)(nil).Outputs)) 97 } 98 99 // SetBytes mocks base method. 100 func (m *MockUnsignedTx) SetBytes(unsignedBytes []byte) { 101 m.ctrl.T.Helper() 102 m.ctrl.Call(m, "SetBytes", unsignedBytes) 103 } 104 105 // SetBytes indicates an expected call of SetBytes. 106 func (mr *MockUnsignedTxMockRecorder) SetBytes(unsignedBytes any) *gomock.Call { 107 mr.mock.ctrl.T.Helper() 108 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBytes", reflect.TypeOf((*MockUnsignedTx)(nil).SetBytes), unsignedBytes) 109 } 110 111 // SyntacticVerify mocks base method. 112 func (m *MockUnsignedTx) SyntacticVerify(ctx *snow.Context) error { 113 m.ctrl.T.Helper() 114 ret := m.ctrl.Call(m, "SyntacticVerify", ctx) 115 ret0, _ := ret[0].(error) 116 return ret0 117 } 118 119 // SyntacticVerify indicates an expected call of SyntacticVerify. 120 func (mr *MockUnsignedTxMockRecorder) SyntacticVerify(ctx any) *gomock.Call { 121 mr.mock.ctrl.T.Helper() 122 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SyntacticVerify", reflect.TypeOf((*MockUnsignedTx)(nil).SyntacticVerify), ctx) 123 } 124 125 // Visit mocks base method. 126 func (m *MockUnsignedTx) Visit(visitor Visitor) error { 127 m.ctrl.T.Helper() 128 ret := m.ctrl.Call(m, "Visit", visitor) 129 ret0, _ := ret[0].(error) 130 return ret0 131 } 132 133 // Visit indicates an expected call of Visit. 134 func (mr *MockUnsignedTxMockRecorder) Visit(visitor any) *gomock.Call { 135 mr.mock.ctrl.T.Helper() 136 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Visit", reflect.TypeOf((*MockUnsignedTx)(nil).Visit), visitor) 137 }