github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/fvm/environment/mock/transaction_info.go (about) 1 // Code generated by mockery v2.21.4. DO NOT EDIT. 2 3 package mock 4 5 import ( 6 common "github.com/onflow/cadence/runtime/common" 7 8 flow "github.com/onflow/flow-go/model/flow" 9 10 mock "github.com/stretchr/testify/mock" 11 ) 12 13 // TransactionInfo is an autogenerated mock type for the TransactionInfo type 14 type TransactionInfo struct { 15 mock.Mock 16 } 17 18 // GetSigningAccounts provides a mock function with given fields: 19 func (_m *TransactionInfo) GetSigningAccounts() ([]common.Address, error) { 20 ret := _m.Called() 21 22 var r0 []common.Address 23 var r1 error 24 if rf, ok := ret.Get(0).(func() ([]common.Address, error)); ok { 25 return rf() 26 } 27 if rf, ok := ret.Get(0).(func() []common.Address); ok { 28 r0 = rf() 29 } else { 30 if ret.Get(0) != nil { 31 r0 = ret.Get(0).([]common.Address) 32 } 33 } 34 35 if rf, ok := ret.Get(1).(func() error); ok { 36 r1 = rf() 37 } else { 38 r1 = ret.Error(1) 39 } 40 41 return r0, r1 42 } 43 44 // IsServiceAccountAuthorizer provides a mock function with given fields: 45 func (_m *TransactionInfo) IsServiceAccountAuthorizer() bool { 46 ret := _m.Called() 47 48 var r0 bool 49 if rf, ok := ret.Get(0).(func() bool); ok { 50 r0 = rf() 51 } else { 52 r0 = ret.Get(0).(bool) 53 } 54 55 return r0 56 } 57 58 // LimitAccountStorage provides a mock function with given fields: 59 func (_m *TransactionInfo) LimitAccountStorage() bool { 60 ret := _m.Called() 61 62 var r0 bool 63 if rf, ok := ret.Get(0).(func() bool); ok { 64 r0 = rf() 65 } else { 66 r0 = ret.Get(0).(bool) 67 } 68 69 return r0 70 } 71 72 // TransactionFeesEnabled provides a mock function with given fields: 73 func (_m *TransactionInfo) TransactionFeesEnabled() bool { 74 ret := _m.Called() 75 76 var r0 bool 77 if rf, ok := ret.Get(0).(func() bool); ok { 78 r0 = rf() 79 } else { 80 r0 = ret.Get(0).(bool) 81 } 82 83 return r0 84 } 85 86 // TxID provides a mock function with given fields: 87 func (_m *TransactionInfo) TxID() flow.Identifier { 88 ret := _m.Called() 89 90 var r0 flow.Identifier 91 if rf, ok := ret.Get(0).(func() flow.Identifier); ok { 92 r0 = rf() 93 } else { 94 if ret.Get(0) != nil { 95 r0 = ret.Get(0).(flow.Identifier) 96 } 97 } 98 99 return r0 100 } 101 102 // TxIndex provides a mock function with given fields: 103 func (_m *TransactionInfo) TxIndex() uint32 { 104 ret := _m.Called() 105 106 var r0 uint32 107 if rf, ok := ret.Get(0).(func() uint32); ok { 108 r0 = rf() 109 } else { 110 r0 = ret.Get(0).(uint32) 111 } 112 113 return r0 114 } 115 116 type mockConstructorTestingTNewTransactionInfo interface { 117 mock.TestingT 118 Cleanup(func()) 119 } 120 121 // NewTransactionInfo creates a new instance of TransactionInfo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 122 func NewTransactionInfo(t mockConstructorTestingTNewTransactionInfo) *TransactionInfo { 123 mock := &TransactionInfo{} 124 mock.Mock.Test(t) 125 126 t.Cleanup(func() { mock.AssertExpectations(t) }) 127 128 return mock 129 }