github.com/onflow/flow-go@v0.33.17/fvm/environment/mock/contract_updater_stubs.go (about) 1 // Code generated by mockery v2.21.4. DO NOT EDIT. 2 3 package mock 4 5 import ( 6 cadence "github.com/onflow/cadence" 7 8 flow "github.com/onflow/flow-go/model/flow" 9 10 mock "github.com/stretchr/testify/mock" 11 ) 12 13 // ContractUpdaterStubs is an autogenerated mock type for the ContractUpdaterStubs type 14 type ContractUpdaterStubs struct { 15 mock.Mock 16 } 17 18 // GetAuthorizedAccounts provides a mock function with given fields: path 19 func (_m *ContractUpdaterStubs) GetAuthorizedAccounts(path cadence.Path) []flow.Address { 20 ret := _m.Called(path) 21 22 var r0 []flow.Address 23 if rf, ok := ret.Get(0).(func(cadence.Path) []flow.Address); ok { 24 r0 = rf(path) 25 } else { 26 if ret.Get(0) != nil { 27 r0 = ret.Get(0).([]flow.Address) 28 } 29 } 30 31 return r0 32 } 33 34 // RestrictedDeploymentEnabled provides a mock function with given fields: 35 func (_m *ContractUpdaterStubs) RestrictedDeploymentEnabled() bool { 36 ret := _m.Called() 37 38 var r0 bool 39 if rf, ok := ret.Get(0).(func() bool); ok { 40 r0 = rf() 41 } else { 42 r0 = ret.Get(0).(bool) 43 } 44 45 return r0 46 } 47 48 // RestrictedRemovalEnabled provides a mock function with given fields: 49 func (_m *ContractUpdaterStubs) RestrictedRemovalEnabled() bool { 50 ret := _m.Called() 51 52 var r0 bool 53 if rf, ok := ret.Get(0).(func() bool); ok { 54 r0 = rf() 55 } else { 56 r0 = ret.Get(0).(bool) 57 } 58 59 return r0 60 } 61 62 type mockConstructorTestingTNewContractUpdaterStubs interface { 63 mock.TestingT 64 Cleanup(func()) 65 } 66 67 // 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. 68 func NewContractUpdaterStubs(t mockConstructorTestingTNewContractUpdaterStubs) *ContractUpdaterStubs { 69 mock := &ContractUpdaterStubs{} 70 mock.Mock.Test(t) 71 72 t.Cleanup(func() { mock.AssertExpectations(t) }) 73 74 return mock 75 }