github.com/onflow/flow-go@v0.33.17/module/mock/cruise_ctl_metrics.go (about) 1 // Code generated by mockery v2.21.4. DO NOT EDIT. 2 3 package mock 4 5 import ( 6 mock "github.com/stretchr/testify/mock" 7 8 time "time" 9 ) 10 11 // CruiseCtlMetrics is an autogenerated mock type for the CruiseCtlMetrics type 12 type CruiseCtlMetrics struct { 13 mock.Mock 14 } 15 16 // ControllerOutput provides a mock function with given fields: duration 17 func (_m *CruiseCtlMetrics) ControllerOutput(duration time.Duration) { 18 _m.Called(duration) 19 } 20 21 // PIDError provides a mock function with given fields: p, i, d 22 func (_m *CruiseCtlMetrics) PIDError(p float64, i float64, d float64) { 23 _m.Called(p, i, d) 24 } 25 26 // TargetProposalDuration provides a mock function with given fields: duration 27 func (_m *CruiseCtlMetrics) TargetProposalDuration(duration time.Duration) { 28 _m.Called(duration) 29 } 30 31 type mockConstructorTestingTNewCruiseCtlMetrics interface { 32 mock.TestingT 33 Cleanup(func()) 34 } 35 36 // NewCruiseCtlMetrics creates a new instance of CruiseCtlMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 37 func NewCruiseCtlMetrics(t mockConstructorTestingTNewCruiseCtlMetrics) *CruiseCtlMetrics { 38 mock := &CruiseCtlMetrics{} 39 mock.Mock.Test(t) 40 41 t.Cleanup(func() { mock.AssertExpectations(t) }) 42 43 return mock 44 }