github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/network/p2p/mock/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  	flow "github.com/onflow/flow-go/model/flow"
     7  	irrecoverable "github.com/onflow/flow-go/module/irrecoverable"
     8  
     9  	mock "github.com/stretchr/testify/mock"
    10  
    11  	peer "github.com/libp2p/go-libp2p/core/peer"
    12  
    13  	pubsub "github.com/libp2p/go-libp2p-pubsub"
    14  )
    15  
    16  // GossipSubRPCInspector is an autogenerated mock type for the GossipSubRPCInspector type
    17  type GossipSubRPCInspector struct {
    18  	mock.Mock
    19  }
    20  
    21  // ActiveClustersChanged provides a mock function with given fields: _a0
    22  func (_m *GossipSubRPCInspector) ActiveClustersChanged(_a0 flow.ChainIDList) {
    23  	_m.Called(_a0)
    24  }
    25  
    26  // Done provides a mock function with given fields:
    27  func (_m *GossipSubRPCInspector) Done() <-chan struct{} {
    28  	ret := _m.Called()
    29  
    30  	var r0 <-chan struct{}
    31  	if rf, ok := ret.Get(0).(func() <-chan struct{}); ok {
    32  		r0 = rf()
    33  	} else {
    34  		if ret.Get(0) != nil {
    35  			r0 = ret.Get(0).(<-chan struct{})
    36  		}
    37  	}
    38  
    39  	return r0
    40  }
    41  
    42  // Inspect provides a mock function with given fields: _a0, _a1
    43  func (_m *GossipSubRPCInspector) Inspect(_a0 peer.ID, _a1 *pubsub.RPC) error {
    44  	ret := _m.Called(_a0, _a1)
    45  
    46  	var r0 error
    47  	if rf, ok := ret.Get(0).(func(peer.ID, *pubsub.RPC) error); ok {
    48  		r0 = rf(_a0, _a1)
    49  	} else {
    50  		r0 = ret.Error(0)
    51  	}
    52  
    53  	return r0
    54  }
    55  
    56  // Name provides a mock function with given fields:
    57  func (_m *GossipSubRPCInspector) Name() string {
    58  	ret := _m.Called()
    59  
    60  	var r0 string
    61  	if rf, ok := ret.Get(0).(func() string); ok {
    62  		r0 = rf()
    63  	} else {
    64  		r0 = ret.Get(0).(string)
    65  	}
    66  
    67  	return r0
    68  }
    69  
    70  // Ready provides a mock function with given fields:
    71  func (_m *GossipSubRPCInspector) Ready() <-chan struct{} {
    72  	ret := _m.Called()
    73  
    74  	var r0 <-chan struct{}
    75  	if rf, ok := ret.Get(0).(func() <-chan struct{}); ok {
    76  		r0 = rf()
    77  	} else {
    78  		if ret.Get(0) != nil {
    79  			r0 = ret.Get(0).(<-chan struct{})
    80  		}
    81  	}
    82  
    83  	return r0
    84  }
    85  
    86  // Start provides a mock function with given fields: _a0
    87  func (_m *GossipSubRPCInspector) Start(_a0 irrecoverable.SignalerContext) {
    88  	_m.Called(_a0)
    89  }
    90  
    91  type mockConstructorTestingTNewGossipSubRPCInspector interface {
    92  	mock.TestingT
    93  	Cleanup(func())
    94  }
    95  
    96  // NewGossipSubRPCInspector creates a new instance of GossipSubRPCInspector. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    97  func NewGossipSubRPCInspector(t mockConstructorTestingTNewGossipSubRPCInspector) *GossipSubRPCInspector {
    98  	mock := &GossipSubRPCInspector{}
    99  	mock.Mock.Test(t)
   100  
   101  	t.Cleanup(func() { mock.AssertExpectations(t) })
   102  
   103  	return mock
   104  }