func (_m *Transport) Accept() (p2p.Connection, error) {
	ret := _m.Called()
	var r0 p2p.Connection
	if rf, ok := ret.Get(0).(func() p2p.Connection); ok {
		r0 = rf()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(p2p.Connection)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func() error); ok {
		r1 = rf()
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
Accept provides a mock function with given fields:
package mocks
import (
	context "context"
	conn "github.com/tendermint/tendermint/internal/p2p/conn"
	mock "github.com/stretchr/testify/mock"
	p2p "github.com/tendermint/tendermint/internal/p2p"
)
type Transport struct {
	mock.Mock
}