github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/network/p2p/mock/basic_gossip_sub_rpc_inspector.go (about) 1 // Code generated by mockery v2.21.4. DO NOT EDIT. 2 3 package mockp2p 4 5 import ( 6 mock "github.com/stretchr/testify/mock" 7 8 peer "github.com/libp2p/go-libp2p/core/peer" 9 10 pubsub "github.com/libp2p/go-libp2p-pubsub" 11 ) 12 13 // BasicGossipSubRPCInspector is an autogenerated mock type for the BasicGossipSubRPCInspector type 14 type BasicGossipSubRPCInspector struct { 15 mock.Mock 16 } 17 18 // Inspect provides a mock function with given fields: _a0, _a1 19 func (_m *BasicGossipSubRPCInspector) Inspect(_a0 peer.ID, _a1 *pubsub.RPC) error { 20 ret := _m.Called(_a0, _a1) 21 22 var r0 error 23 if rf, ok := ret.Get(0).(func(peer.ID, *pubsub.RPC) error); ok { 24 r0 = rf(_a0, _a1) 25 } else { 26 r0 = ret.Error(0) 27 } 28 29 return r0 30 } 31 32 type mockConstructorTestingTNewBasicGossipSubRPCInspector interface { 33 mock.TestingT 34 Cleanup(func()) 35 } 36 37 // NewBasicGossipSubRPCInspector creates a new instance of BasicGossipSubRPCInspector. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 38 func NewBasicGossipSubRPCInspector(t mockConstructorTestingTNewBasicGossipSubRPCInspector) *BasicGossipSubRPCInspector { 39 mock := &BasicGossipSubRPCInspector{} 40 mock.Mock.Test(t) 41 42 t.Cleanup(func() { mock.AssertExpectations(t) }) 43 44 return mock 45 }