github.com/koko1123/flow-go-1@v0.29.6/module/mock/hotstuff_metrics.go (about)

     1  // Code generated by mockery v2.13.1. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import (
     6  	mock "github.com/stretchr/testify/mock"
     7  
     8  	time "time"
     9  )
    10  
    11  // HotstuffMetrics is an autogenerated mock type for the HotstuffMetrics type
    12  type HotstuffMetrics struct {
    13  	mock.Mock
    14  }
    15  
    16  // CommitteeProcessingDuration provides a mock function with given fields: duration
    17  func (_m *HotstuffMetrics) CommitteeProcessingDuration(duration time.Duration) {
    18  	_m.Called(duration)
    19  }
    20  
    21  // CountSkipped provides a mock function with given fields:
    22  func (_m *HotstuffMetrics) CountSkipped() {
    23  	_m.Called()
    24  }
    25  
    26  // CountTimeout provides a mock function with given fields:
    27  func (_m *HotstuffMetrics) CountTimeout() {
    28  	_m.Called()
    29  }
    30  
    31  // HotStuffBusyDuration provides a mock function with given fields: duration, event
    32  func (_m *HotstuffMetrics) HotStuffBusyDuration(duration time.Duration, event string) {
    33  	_m.Called(duration, event)
    34  }
    35  
    36  // HotStuffIdleDuration provides a mock function with given fields: duration
    37  func (_m *HotstuffMetrics) HotStuffIdleDuration(duration time.Duration) {
    38  	_m.Called(duration)
    39  }
    40  
    41  // HotStuffWaitDuration provides a mock function with given fields: duration, event
    42  func (_m *HotstuffMetrics) HotStuffWaitDuration(duration time.Duration, event string) {
    43  	_m.Called(duration, event)
    44  }
    45  
    46  // PayloadProductionDuration provides a mock function with given fields: duration
    47  func (_m *HotstuffMetrics) PayloadProductionDuration(duration time.Duration) {
    48  	_m.Called(duration)
    49  }
    50  
    51  // SetCurView provides a mock function with given fields: view
    52  func (_m *HotstuffMetrics) SetCurView(view uint64) {
    53  	_m.Called(view)
    54  }
    55  
    56  // SetQCView provides a mock function with given fields: view
    57  func (_m *HotstuffMetrics) SetQCView(view uint64) {
    58  	_m.Called(view)
    59  }
    60  
    61  // SetTimeout provides a mock function with given fields: duration
    62  func (_m *HotstuffMetrics) SetTimeout(duration time.Duration) {
    63  	_m.Called(duration)
    64  }
    65  
    66  // SignerProcessingDuration provides a mock function with given fields: duration
    67  func (_m *HotstuffMetrics) SignerProcessingDuration(duration time.Duration) {
    68  	_m.Called(duration)
    69  }
    70  
    71  // ValidatorProcessingDuration provides a mock function with given fields: duration
    72  func (_m *HotstuffMetrics) ValidatorProcessingDuration(duration time.Duration) {
    73  	_m.Called(duration)
    74  }
    75  
    76  type mockConstructorTestingTNewHotstuffMetrics interface {
    77  	mock.TestingT
    78  	Cleanup(func())
    79  }
    80  
    81  // NewHotstuffMetrics creates a new instance of HotstuffMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    82  func NewHotstuffMetrics(t mockConstructorTestingTNewHotstuffMetrics) *HotstuffMetrics {
    83  	mock := &HotstuffMetrics{}
    84  	mock.Mock.Test(t)
    85  
    86  	t.Cleanup(func() { mock.AssertExpectations(t) })
    87  
    88  	return mock
    89  }