github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/mock/gossip_sub_rpc_inspector_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  // GossipSubRpcInspectorMetrics is an autogenerated mock type for the GossipSubRpcInspectorMetrics type
     8  type GossipSubRpcInspectorMetrics struct {
     9  	mock.Mock
    10  }
    11  
    12  // OnIHaveMessageIDsReceived provides a mock function with given fields: channel, msgIdCount
    13  func (_m *GossipSubRpcInspectorMetrics) OnIHaveMessageIDsReceived(channel string, msgIdCount int) {
    14  	_m.Called(channel, msgIdCount)
    15  }
    16  
    17  // OnIWantMessageIDsReceived provides a mock function with given fields: msgIdCount
    18  func (_m *GossipSubRpcInspectorMetrics) OnIWantMessageIDsReceived(msgIdCount int) {
    19  	_m.Called(msgIdCount)
    20  }
    21  
    22  // OnIncomingRpcReceived provides a mock function with given fields: iHaveCount, iWantCount, graftCount, pruneCount, msgCount
    23  func (_m *GossipSubRpcInspectorMetrics) OnIncomingRpcReceived(iHaveCount int, iWantCount int, graftCount int, pruneCount int, msgCount int) {
    24  	_m.Called(iHaveCount, iWantCount, graftCount, pruneCount, msgCount)
    25  }
    26  
    27  type mockConstructorTestingTNewGossipSubRpcInspectorMetrics interface {
    28  	mock.TestingT
    29  	Cleanup(func())
    30  }
    31  
    32  // NewGossipSubRpcInspectorMetrics creates a new instance of GossipSubRpcInspectorMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    33  func NewGossipSubRpcInspectorMetrics(t mockConstructorTestingTNewGossipSubRpcInspectorMetrics) *GossipSubRpcInspectorMetrics {
    34  	mock := &GossipSubRpcInspectorMetrics{}
    35  	mock.Mock.Test(t)
    36  
    37  	t.Cleanup(func() { mock.AssertExpectations(t) })
    38  
    39  	return mock
    40  }