github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/network/p2p/mock/gossip_sub_adapter_config_func.go (about)

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