github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/mock/local_gossip_sub_router_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  // LocalGossipSubRouterMetrics is an autogenerated mock type for the LocalGossipSubRouterMetrics type
     8  type LocalGossipSubRouterMetrics struct {
     9  	mock.Mock
    10  }
    11  
    12  // OnLocalMeshSizeUpdated provides a mock function with given fields: topic, size
    13  func (_m *LocalGossipSubRouterMetrics) OnLocalMeshSizeUpdated(topic string, size int) {
    14  	_m.Called(topic, size)
    15  }
    16  
    17  // OnLocalPeerJoinedTopic provides a mock function with given fields:
    18  func (_m *LocalGossipSubRouterMetrics) OnLocalPeerJoinedTopic() {
    19  	_m.Called()
    20  }
    21  
    22  // OnLocalPeerLeftTopic provides a mock function with given fields:
    23  func (_m *LocalGossipSubRouterMetrics) OnLocalPeerLeftTopic() {
    24  	_m.Called()
    25  }
    26  
    27  // OnMessageDeliveredToAllSubscribers provides a mock function with given fields: size
    28  func (_m *LocalGossipSubRouterMetrics) OnMessageDeliveredToAllSubscribers(size int) {
    29  	_m.Called(size)
    30  }
    31  
    32  // OnMessageDuplicate provides a mock function with given fields: size
    33  func (_m *LocalGossipSubRouterMetrics) OnMessageDuplicate(size int) {
    34  	_m.Called(size)
    35  }
    36  
    37  // OnMessageEnteredValidation provides a mock function with given fields: size
    38  func (_m *LocalGossipSubRouterMetrics) OnMessageEnteredValidation(size int) {
    39  	_m.Called(size)
    40  }
    41  
    42  // OnMessageRejected provides a mock function with given fields: size, reason
    43  func (_m *LocalGossipSubRouterMetrics) OnMessageRejected(size int, reason string) {
    44  	_m.Called(size, reason)
    45  }
    46  
    47  // OnOutboundRpcDropped provides a mock function with given fields:
    48  func (_m *LocalGossipSubRouterMetrics) OnOutboundRpcDropped() {
    49  	_m.Called()
    50  }
    51  
    52  // OnPeerAddedToProtocol provides a mock function with given fields: protocol
    53  func (_m *LocalGossipSubRouterMetrics) OnPeerAddedToProtocol(protocol string) {
    54  	_m.Called(protocol)
    55  }
    56  
    57  // OnPeerGraftTopic provides a mock function with given fields: topic
    58  func (_m *LocalGossipSubRouterMetrics) OnPeerGraftTopic(topic string) {
    59  	_m.Called(topic)
    60  }
    61  
    62  // OnPeerPruneTopic provides a mock function with given fields: topic
    63  func (_m *LocalGossipSubRouterMetrics) OnPeerPruneTopic(topic string) {
    64  	_m.Called(topic)
    65  }
    66  
    67  // OnPeerRemovedFromProtocol provides a mock function with given fields:
    68  func (_m *LocalGossipSubRouterMetrics) OnPeerRemovedFromProtocol() {
    69  	_m.Called()
    70  }
    71  
    72  // OnPeerThrottled provides a mock function with given fields:
    73  func (_m *LocalGossipSubRouterMetrics) OnPeerThrottled() {
    74  	_m.Called()
    75  }
    76  
    77  // OnRpcReceived provides a mock function with given fields: msgCount, iHaveCount, iWantCount, graftCount, pruneCount
    78  func (_m *LocalGossipSubRouterMetrics) OnRpcReceived(msgCount int, iHaveCount int, iWantCount int, graftCount int, pruneCount int) {
    79  	_m.Called(msgCount, iHaveCount, iWantCount, graftCount, pruneCount)
    80  }
    81  
    82  // OnRpcSent provides a mock function with given fields: msgCount, iHaveCount, iWantCount, graftCount, pruneCount
    83  func (_m *LocalGossipSubRouterMetrics) OnRpcSent(msgCount int, iHaveCount int, iWantCount int, graftCount int, pruneCount int) {
    84  	_m.Called(msgCount, iHaveCount, iWantCount, graftCount, pruneCount)
    85  }
    86  
    87  // OnUndeliveredMessage provides a mock function with given fields:
    88  func (_m *LocalGossipSubRouterMetrics) OnUndeliveredMessage() {
    89  	_m.Called()
    90  }
    91  
    92  type mockConstructorTestingTNewLocalGossipSubRouterMetrics interface {
    93  	mock.TestingT
    94  	Cleanup(func())
    95  }
    96  
    97  // NewLocalGossipSubRouterMetrics creates a new instance of LocalGossipSubRouterMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    98  func NewLocalGossipSubRouterMetrics(t mockConstructorTestingTNewLocalGossipSubRouterMetrics) *LocalGossipSubRouterMetrics {
    99  	mock := &LocalGossipSubRouterMetrics{}
   100  	mock.Mock.Test(t)
   101  
   102  	t.Cleanup(func() { mock.AssertExpectations(t) })
   103  
   104  	return mock
   105  }