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

     1  // Code generated by mockery v2.13.1. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import (
     6  	cadence "github.com/onflow/cadence"
     7  	common "github.com/onflow/cadence/runtime/common"
     8  
     9  	mock "github.com/stretchr/testify/mock"
    10  )
    11  
    12  // ContractUpdaterStubs is an autogenerated mock type for the ContractUpdaterStubs type
    13  type ContractUpdaterStubs struct {
    14  	mock.Mock
    15  }
    16  
    17  // GetAuthorizedAccounts provides a mock function with given fields: path
    18  func (_m *ContractUpdaterStubs) GetAuthorizedAccounts(path cadence.Path) []common.Address {
    19  	ret := _m.Called(path)
    20  
    21  	var r0 []common.Address
    22  	if rf, ok := ret.Get(0).(func(cadence.Path) []common.Address); ok {
    23  		r0 = rf(path)
    24  	} else {
    25  		if ret.Get(0) != nil {
    26  			r0 = ret.Get(0).([]common.Address)
    27  		}
    28  	}
    29  
    30  	return r0
    31  }
    32  
    33  // RestrictedDeploymentEnabled provides a mock function with given fields:
    34  func (_m *ContractUpdaterStubs) RestrictedDeploymentEnabled() bool {
    35  	ret := _m.Called()
    36  
    37  	var r0 bool
    38  	if rf, ok := ret.Get(0).(func() bool); ok {
    39  		r0 = rf()
    40  	} else {
    41  		r0 = ret.Get(0).(bool)
    42  	}
    43  
    44  	return r0
    45  }
    46  
    47  // RestrictedRemovalEnabled provides a mock function with given fields:
    48  func (_m *ContractUpdaterStubs) RestrictedRemovalEnabled() bool {
    49  	ret := _m.Called()
    50  
    51  	var r0 bool
    52  	if rf, ok := ret.Get(0).(func() bool); ok {
    53  		r0 = rf()
    54  	} else {
    55  		r0 = ret.Get(0).(bool)
    56  	}
    57  
    58  	return r0
    59  }
    60  
    61  // UseContractAuditVoucher provides a mock function with given fields: address, code
    62  func (_m *ContractUpdaterStubs) UseContractAuditVoucher(address common.Address, code []byte) (bool, error) {
    63  	ret := _m.Called(address, code)
    64  
    65  	var r0 bool
    66  	if rf, ok := ret.Get(0).(func(common.Address, []byte) bool); ok {
    67  		r0 = rf(address, code)
    68  	} else {
    69  		r0 = ret.Get(0).(bool)
    70  	}
    71  
    72  	var r1 error
    73  	if rf, ok := ret.Get(1).(func(common.Address, []byte) error); ok {
    74  		r1 = rf(address, code)
    75  	} else {
    76  		r1 = ret.Error(1)
    77  	}
    78  
    79  	return r0, r1
    80  }
    81  
    82  type mockConstructorTestingTNewContractUpdaterStubs interface {
    83  	mock.TestingT
    84  	Cleanup(func())
    85  }
    86  
    87  // NewContractUpdaterStubs creates a new instance of ContractUpdaterStubs. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    88  func NewContractUpdaterStubs(t mockConstructorTestingTNewContractUpdaterStubs) *ContractUpdaterStubs {
    89  	mock := &ContractUpdaterStubs{}
    90  	mock.Mock.Test(t)
    91  
    92  	t.Cleanup(func() { mock.AssertExpectations(t) })
    93  
    94  	return mock
    95  }