Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var QueryErrorTriggerCid = cid.MustParse("bafkqaalb")
Functions ¶
func SetupRetrieval ¶ added in v0.5.0
func WaitForFinish ¶ added in v0.5.0
func WaitForFinish(ctx context.Context, t *testing.T, finishChan chan []datatransfer.Event, timeout time.Duration) []datatransfer.Event
Types ¶
type MockRetrievalNet ¶
type MockRetrievalNet struct { RemoteEvents [][]datatransfer.Event FinishedChan []chan struct{} MN lpmock.Mocknet Self host.Host Remotes []testpeer.TestPeer Finder retriever.CandidateFinder // contains filtered or unexported fields }
func NewMockRetrievalNet ¶
func NewMockRetrievalNet(ctx context.Context, t *testing.T) *MockRetrievalNet
func (*MockRetrievalNet) AddBitswapPeers ¶ added in v0.5.0
func (mrn *MockRetrievalNet) AddBitswapPeers(n int, opts ...testpeer.PeerOption)
func (*MockRetrievalNet) AddGraphsyncPeers ¶ added in v0.5.0
func (mrn *MockRetrievalNet) AddGraphsyncPeers(n int, opts ...testpeer.PeerOption)
func (*MockRetrievalNet) AddHttpPeers ¶ added in v0.10.0
func (mrn *MockRetrievalNet) AddHttpPeers(n int, opts ...testpeer.PeerOption)
func (*MockRetrievalNet) TearDown ¶
func (mrn *MockRetrievalNet) TearDown() error
Click to show internal directories.
Click to hide internal directories.