github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/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  // ProposalPublicationDelay provides a mock function with given fields: duration
    27  func (_m *CruiseCtlMetrics) ProposalPublicationDelay(duration time.Duration) {
    28  	_m.Called(duration)
    29  }
    30  
    31  // TargetProposalDuration provides a mock function with given fields: duration
    32  func (_m *CruiseCtlMetrics) TargetProposalDuration(duration time.Duration) {
    33  	_m.Called(duration)
    34  }
    35  
    36  type mockConstructorTestingTNewCruiseCtlMetrics interface {
    37  	mock.TestingT
    38  	Cleanup(func())
    39  }
    40  
    41  // 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.
    42  func NewCruiseCtlMetrics(t mockConstructorTestingTNewCruiseCtlMetrics) *CruiseCtlMetrics {
    43  	mock := &CruiseCtlMetrics{}
    44  	mock.Mock.Test(t)
    45  
    46  	t.Cleanup(func() { mock.AssertExpectations(t) })
    47  
    48  	return mock
    49  }