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

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