github.com/koko1123/flow-go-1@v0.29.6/fvm/environment/mock/transaction_info.go (about)

     1  // Code generated by mockery v2.13.1. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import (
     6  	common "github.com/onflow/cadence/runtime/common"
     7  
     8  	flow "github.com/koko1123/flow-go-1/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  	if rf, ok := ret.Get(0).(func() []common.Address); ok {
    24  		r0 = rf()
    25  	} else {
    26  		if ret.Get(0) != nil {
    27  			r0 = ret.Get(0).([]common.Address)
    28  		}
    29  	}
    30  
    31  	var r1 error
    32  	if rf, ok := ret.Get(1).(func() error); ok {
    33  		r1 = rf()
    34  	} else {
    35  		r1 = ret.Error(1)
    36  	}
    37  
    38  	return r0, r1
    39  }
    40  
    41  // IsServiceAccountAuthorizer provides a mock function with given fields:
    42  func (_m *TransactionInfo) IsServiceAccountAuthorizer() bool {
    43  	ret := _m.Called()
    44  
    45  	var r0 bool
    46  	if rf, ok := ret.Get(0).(func() bool); ok {
    47  		r0 = rf()
    48  	} else {
    49  		r0 = ret.Get(0).(bool)
    50  	}
    51  
    52  	return r0
    53  }
    54  
    55  // LimitAccountStorage provides a mock function with given fields:
    56  func (_m *TransactionInfo) LimitAccountStorage() bool {
    57  	ret := _m.Called()
    58  
    59  	var r0 bool
    60  	if rf, ok := ret.Get(0).(func() bool); ok {
    61  		r0 = rf()
    62  	} else {
    63  		r0 = ret.Get(0).(bool)
    64  	}
    65  
    66  	return r0
    67  }
    68  
    69  // SigningAccounts provides a mock function with given fields:
    70  func (_m *TransactionInfo) SigningAccounts() []common.Address {
    71  	ret := _m.Called()
    72  
    73  	var r0 []common.Address
    74  	if rf, ok := ret.Get(0).(func() []common.Address); ok {
    75  		r0 = rf()
    76  	} else {
    77  		if ret.Get(0) != nil {
    78  			r0 = ret.Get(0).([]common.Address)
    79  		}
    80  	}
    81  
    82  	return r0
    83  }
    84  
    85  // TransactionFeesEnabled provides a mock function with given fields:
    86  func (_m *TransactionInfo) TransactionFeesEnabled() bool {
    87  	ret := _m.Called()
    88  
    89  	var r0 bool
    90  	if rf, ok := ret.Get(0).(func() bool); ok {
    91  		r0 = rf()
    92  	} else {
    93  		r0 = ret.Get(0).(bool)
    94  	}
    95  
    96  	return r0
    97  }
    98  
    99  // TxID provides a mock function with given fields:
   100  func (_m *TransactionInfo) TxID() flow.Identifier {
   101  	ret := _m.Called()
   102  
   103  	var r0 flow.Identifier
   104  	if rf, ok := ret.Get(0).(func() flow.Identifier); ok {
   105  		r0 = rf()
   106  	} else {
   107  		if ret.Get(0) != nil {
   108  			r0 = ret.Get(0).(flow.Identifier)
   109  		}
   110  	}
   111  
   112  	return r0
   113  }
   114  
   115  // TxIndex provides a mock function with given fields:
   116  func (_m *TransactionInfo) TxIndex() uint32 {
   117  	ret := _m.Called()
   118  
   119  	var r0 uint32
   120  	if rf, ok := ret.Get(0).(func() uint32); ok {
   121  		r0 = rf()
   122  	} else {
   123  		r0 = ret.Get(0).(uint32)
   124  	}
   125  
   126  	return r0
   127  }
   128  
   129  type mockConstructorTestingTNewTransactionInfo interface {
   130  	mock.TestingT
   131  	Cleanup(func())
   132  }
   133  
   134  // 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.
   135  func NewTransactionInfo(t mockConstructorTestingTNewTransactionInfo) *TransactionInfo {
   136  	mock := &TransactionInfo{}
   137  	mock.Mock.Test(t)
   138  
   139  	t.Cleanup(func() { mock.AssertExpectations(t) })
   140  
   141  	return mock
   142  }