github.com/ava-labs/avalanchego@v1.11.11/vms/avm/txs/txsmock/tx.go (about)

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