github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/mock/machine_account_metrics.go (about) 1 // Code generated by mockery v2.21.4. DO NOT EDIT. 2 3 package mock 4 5 import mock "github.com/stretchr/testify/mock" 6 7 // MachineAccountMetrics is an autogenerated mock type for the MachineAccountMetrics type 8 type MachineAccountMetrics struct { 9 mock.Mock 10 } 11 12 // AccountBalance provides a mock function with given fields: bal 13 func (_m *MachineAccountMetrics) AccountBalance(bal float64) { 14 _m.Called(bal) 15 } 16 17 // IsMisconfigured provides a mock function with given fields: misconfigured 18 func (_m *MachineAccountMetrics) IsMisconfigured(misconfigured bool) { 19 _m.Called(misconfigured) 20 } 21 22 // RecommendedMinBalance provides a mock function with given fields: bal 23 func (_m *MachineAccountMetrics) RecommendedMinBalance(bal float64) { 24 _m.Called(bal) 25 } 26 27 type mockConstructorTestingTNewMachineAccountMetrics interface { 28 mock.TestingT 29 Cleanup(func()) 30 } 31 32 // NewMachineAccountMetrics creates a new instance of MachineAccountMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 33 func NewMachineAccountMetrics(t mockConstructorTestingTNewMachineAccountMetrics) *MachineAccountMetrics { 34 mock := &MachineAccountMetrics{} 35 mock.Mock.Test(t) 36 37 t.Cleanup(func() { mock.AssertExpectations(t) }) 38 39 return mock 40 }