github.com/koko1123/flow-go-1@v0.29.6/fvm/environment/mock/account_freezer.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 mock "github.com/stretchr/testify/mock" 9 ) 10 11 // AccountFreezer is an autogenerated mock type for the AccountFreezer type 12 type AccountFreezer struct { 13 mock.Mock 14 } 15 16 // FrozenAccounts provides a mock function with given fields: 17 func (_m *AccountFreezer) FrozenAccounts() []common.Address { 18 ret := _m.Called() 19 20 var r0 []common.Address 21 if rf, ok := ret.Get(0).(func() []common.Address); ok { 22 r0 = rf() 23 } else { 24 if ret.Get(0) != nil { 25 r0 = ret.Get(0).([]common.Address) 26 } 27 } 28 29 return r0 30 } 31 32 // Reset provides a mock function with given fields: 33 func (_m *AccountFreezer) Reset() { 34 _m.Called() 35 } 36 37 // SetAccountFrozen provides a mock function with given fields: address, frozen 38 func (_m *AccountFreezer) SetAccountFrozen(address common.Address, frozen bool) error { 39 ret := _m.Called(address, frozen) 40 41 var r0 error 42 if rf, ok := ret.Get(0).(func(common.Address, bool) error); ok { 43 r0 = rf(address, frozen) 44 } else { 45 r0 = ret.Error(0) 46 } 47 48 return r0 49 } 50 51 type mockConstructorTestingTNewAccountFreezer interface { 52 mock.TestingT 53 Cleanup(func()) 54 } 55 56 // NewAccountFreezer creates a new instance of AccountFreezer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 57 func NewAccountFreezer(t mockConstructorTestingTNewAccountFreezer) *AccountFreezer { 58 mock := &AccountFreezer{} 59 mock.Mock.Test(t) 60 61 t.Cleanup(func() { mock.AssertExpectations(t) }) 62 63 return mock 64 }