github.com/koko1123/flow-go-1@v0.29.6/module/mock/gossip_sub_router_metrics.go (about) 1 // Code generated by mockery v2.13.1. DO NOT EDIT. 2 3 package mock 4 5 import mock "github.com/stretchr/testify/mock" 6 7 // GossipSubRouterMetrics is an autogenerated mock type for the GossipSubRouterMetrics type 8 type GossipSubRouterMetrics struct { 9 mock.Mock 10 } 11 12 // OnGraftReceived provides a mock function with given fields: count 13 func (_m *GossipSubRouterMetrics) OnGraftReceived(count int) { 14 _m.Called(count) 15 } 16 17 // OnIHaveReceived provides a mock function with given fields: count 18 func (_m *GossipSubRouterMetrics) OnIHaveReceived(count int) { 19 _m.Called(count) 20 } 21 22 // OnIWantReceived provides a mock function with given fields: count 23 func (_m *GossipSubRouterMetrics) OnIWantReceived(count int) { 24 _m.Called(count) 25 } 26 27 // OnIncomingRpcAcceptedFully provides a mock function with given fields: 28 func (_m *GossipSubRouterMetrics) OnIncomingRpcAcceptedFully() { 29 _m.Called() 30 } 31 32 // OnIncomingRpcAcceptedOnlyForControlMessages provides a mock function with given fields: 33 func (_m *GossipSubRouterMetrics) OnIncomingRpcAcceptedOnlyForControlMessages() { 34 _m.Called() 35 } 36 37 // OnIncomingRpcRejected provides a mock function with given fields: 38 func (_m *GossipSubRouterMetrics) OnIncomingRpcRejected() { 39 _m.Called() 40 } 41 42 // OnPruneReceived provides a mock function with given fields: count 43 func (_m *GossipSubRouterMetrics) OnPruneReceived(count int) { 44 _m.Called(count) 45 } 46 47 // OnPublishedGossipMessagesReceived provides a mock function with given fields: count 48 func (_m *GossipSubRouterMetrics) OnPublishedGossipMessagesReceived(count int) { 49 _m.Called(count) 50 } 51 52 type mockConstructorTestingTNewGossipSubRouterMetrics interface { 53 mock.TestingT 54 Cleanup(func()) 55 } 56 57 // NewGossipSubRouterMetrics creates a new instance of GossipSubRouterMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 58 func NewGossipSubRouterMetrics(t mockConstructorTestingTNewGossipSubRouterMetrics) *GossipSubRouterMetrics { 59 mock := &GossipSubRouterMetrics{} 60 mock.Mock.Test(t) 61 62 t.Cleanup(func() { mock.AssertExpectations(t) }) 63 64 return mock 65 }