test

package
v0.0.0-...-c0cc0bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2024 License: Apache-2.0, MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestRsDataSize   = 10
	TestRsParitySize = 20
)

Variables

This section is empty.

Functions

func HelpTestAddWithReedSolomonMetadata

func HelpTestAddWithReedSolomonMetadata(t *testing.T) (*core.IpfsNode, coreiface.CoreAPI, cid.Cid, []byte)

HelpTestAddWithReedSolomomonMetadata is both a helper to testing this feature and also a helper to add a reed solomon file for other features. It returns a mock node, api, and added hash (cid).

func HelpTestMockRepo

func HelpTestMockRepo(t *testing.T, cfg *config.Config) *core.IpfsNode

HelpTestMockRepo creates the bare minimum mock repo and returns node

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL