github.com/koko1123/flow-go-1@v0.29.6/network/p2p/mock/pub_sub_adapter_config.go (about)

     1  // Code generated by mockery v2.13.1. DO NOT EDIT.
     2  
     3  package mockp2p
     4  
     5  import (
     6  	p2p "github.com/koko1123/flow-go-1/network/p2p"
     7  	mock "github.com/stretchr/testify/mock"
     8  
     9  	peer "github.com/libp2p/go-libp2p/core/peer"
    10  
    11  	pubsub "github.com/libp2p/go-libp2p-pubsub"
    12  
    13  	routing "github.com/libp2p/go-libp2p/core/routing"
    14  )
    15  
    16  // PubSubAdapterConfig is an autogenerated mock type for the PubSubAdapterConfig type
    17  type PubSubAdapterConfig struct {
    18  	mock.Mock
    19  }
    20  
    21  // WithAppSpecificRpcInspector provides a mock function with given fields: f
    22  func (_m *PubSubAdapterConfig) WithAppSpecificRpcInspector(f func(peer.ID, *pubsub.RPC) error) {
    23  	_m.Called(f)
    24  }
    25  
    26  // WithMessageIdFunction provides a mock function with given fields: f
    27  func (_m *PubSubAdapterConfig) WithMessageIdFunction(f func([]byte) string) {
    28  	_m.Called(f)
    29  }
    30  
    31  // WithRoutingDiscovery provides a mock function with given fields: _a0
    32  func (_m *PubSubAdapterConfig) WithRoutingDiscovery(_a0 routing.ContentRouting) {
    33  	_m.Called(_a0)
    34  }
    35  
    36  // WithScoreOption provides a mock function with given fields: _a0
    37  func (_m *PubSubAdapterConfig) WithScoreOption(_a0 p2p.ScoreOptionBuilder) {
    38  	_m.Called(_a0)
    39  }
    40  
    41  // WithSubscriptionFilter provides a mock function with given fields: _a0
    42  func (_m *PubSubAdapterConfig) WithSubscriptionFilter(_a0 p2p.SubscriptionFilter) {
    43  	_m.Called(_a0)
    44  }
    45  
    46  type mockConstructorTestingTNewPubSubAdapterConfig interface {
    47  	mock.TestingT
    48  	Cleanup(func())
    49  }
    50  
    51  // NewPubSubAdapterConfig creates a new instance of PubSubAdapterConfig. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    52  func NewPubSubAdapterConfig(t mockConstructorTestingTNewPubSubAdapterConfig) *PubSubAdapterConfig {
    53  	mock := &PubSubAdapterConfig{}
    54  	mock.Mock.Test(t)
    55  
    56  	t.Cleanup(func() { mock.AssertExpectations(t) })
    57  
    58  	return mock
    59  }