Documentation ¶
Index ¶
- func CopyDir(t *testing.T, src string, dst string)
- func CopyFile(t *testing.T, src, dst string)
- func GetBstoreLen(ctx context.Context, t *testing.T, bs RoBlockstore) int
- func MultiAddsToString(addrs []multiaddr.Multiaddr) []string
- func OpenSampleCar(t *testing.T, carFileName string) *blockstore.ReadOnly
- func SetupDataTransferOnHost(t *testing.T, h host.Host, store datastore.Batching, lsys ipld.LinkSystem) datatransfer.Manager
- func StringsToMultiaddrs(t *testing.T, addrs []string) []multiaddr.Multiaddr
- func ThisDir(t *testing.T) string
- func WaitForAddrs(h host.Host) peer.AddrInfo
- type RoBlockstore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBstoreLen ¶
GetBstoreLen gets the total CID cound in a blockstore
func MultiAddsToString ¶
func MultiAddsToString(addrs []multiaddr.Multiaddr) []string
func OpenSampleCar ¶
func OpenSampleCar(t *testing.T, carFileName string) *blockstore.ReadOnly
OpenSampleCar opens a car file in the testdata directory to a blockstore
func SetupDataTransferOnHost ¶
func SetupDataTransferOnHost(t *testing.T, h host.Host, store datastore.Batching, lsys ipld.LinkSystem) datatransfer.Manager
SetupDataTransferOnHost generates a data transfer instance for the given libp2p host
func StringsToMultiaddrs ¶ added in v0.12.0
Types ¶
type RoBlockstore ¶
RoBlockstore is just the needed interface for GetBstoreLen
Click to show internal directories.
Click to hide internal directories.