github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/mock/unicast_manager_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  // UnicastManagerMetrics is an autogenerated mock type for the UnicastManagerMetrics type
    12  type UnicastManagerMetrics struct {
    13  	mock.Mock
    14  }
    15  
    16  // OnDialRetryBudgetResetToDefault provides a mock function with given fields:
    17  func (_m *UnicastManagerMetrics) OnDialRetryBudgetResetToDefault() {
    18  	_m.Called()
    19  }
    20  
    21  // OnDialRetryBudgetUpdated provides a mock function with given fields: budget
    22  func (_m *UnicastManagerMetrics) OnDialRetryBudgetUpdated(budget uint64) {
    23  	_m.Called(budget)
    24  }
    25  
    26  // OnEstablishStreamFailure provides a mock function with given fields: duration, attempts
    27  func (_m *UnicastManagerMetrics) OnEstablishStreamFailure(duration time.Duration, attempts int) {
    28  	_m.Called(duration, attempts)
    29  }
    30  
    31  // OnPeerDialFailure provides a mock function with given fields: duration, attempts
    32  func (_m *UnicastManagerMetrics) OnPeerDialFailure(duration time.Duration, attempts int) {
    33  	_m.Called(duration, attempts)
    34  }
    35  
    36  // OnPeerDialed provides a mock function with given fields: duration, attempts
    37  func (_m *UnicastManagerMetrics) OnPeerDialed(duration time.Duration, attempts int) {
    38  	_m.Called(duration, attempts)
    39  }
    40  
    41  // OnStreamCreated provides a mock function with given fields: duration, attempts
    42  func (_m *UnicastManagerMetrics) OnStreamCreated(duration time.Duration, attempts int) {
    43  	_m.Called(duration, attempts)
    44  }
    45  
    46  // OnStreamCreationFailure provides a mock function with given fields: duration, attempts
    47  func (_m *UnicastManagerMetrics) OnStreamCreationFailure(duration time.Duration, attempts int) {
    48  	_m.Called(duration, attempts)
    49  }
    50  
    51  // OnStreamCreationRetryBudgetResetToDefault provides a mock function with given fields:
    52  func (_m *UnicastManagerMetrics) OnStreamCreationRetryBudgetResetToDefault() {
    53  	_m.Called()
    54  }
    55  
    56  // OnStreamCreationRetryBudgetUpdated provides a mock function with given fields: budget
    57  func (_m *UnicastManagerMetrics) OnStreamCreationRetryBudgetUpdated(budget uint64) {
    58  	_m.Called(budget)
    59  }
    60  
    61  // OnStreamEstablished provides a mock function with given fields: duration, attempts
    62  func (_m *UnicastManagerMetrics) OnStreamEstablished(duration time.Duration, attempts int) {
    63  	_m.Called(duration, attempts)
    64  }
    65  
    66  type mockConstructorTestingTNewUnicastManagerMetrics interface {
    67  	mock.TestingT
    68  	Cleanup(func())
    69  }
    70  
    71  // NewUnicastManagerMetrics creates a new instance of UnicastManagerMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    72  func NewUnicastManagerMetrics(t mockConstructorTestingTNewUnicastManagerMetrics) *UnicastManagerMetrics {
    73  	mock := &UnicastManagerMetrics{}
    74  	mock.Mock.Test(t)
    75  
    76  	t.Cleanup(func() { mock.AssertExpectations(t) })
    77  
    78  	return mock
    79  }