tests

package
v0.10.7 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0, MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestApi

func TestApi(p Provider) func(t *testing.T)

Types

type Provider

type Provider interface {
	// Make creates n nodes. fullIdentity set to false can be ignored
	MakeAPISwarm(t *testing.T, ctx context.Context, fullIdentity bool, online bool, n int) ([]coreiface.CoreAPI, error)
}

type TestSuite

type TestSuite struct {
	Provider
	// contains filtered or unexported fields
}

func (*TestSuite) MakeAPISwarm

func (tp *TestSuite) MakeAPISwarm(t *testing.T, ctx context.Context, n int) ([]coreiface.CoreAPI, error)

func (*TestSuite) TestAdd

func (tp *TestSuite) TestAdd(t *testing.T)

func (*TestSuite) TestAddCloses

func (tp *TestSuite) TestAddCloses(t *testing.T)

func (*TestSuite) TestAddHashOnly

func (tp *TestSuite) TestAddHashOnly(t *testing.T)

func (*TestSuite) TestAddPinned

func (tp *TestSuite) TestAddPinned(t *testing.T)

func (*TestSuite) TestBasicPubSub

func (tp *TestSuite) TestBasicPubSub(t *testing.T)

func (*TestSuite) TestBasicPublishResolveKey

func (tp *TestSuite) TestBasicPublishResolveKey(t *testing.T)

func (*TestSuite) TestBasicPublishResolveTimeout

func (tp *TestSuite) TestBasicPublishResolveTimeout(t *testing.T)

func (*TestSuite) TestBatch

func (tp *TestSuite) TestBatch(t *testing.T)

func (*TestSuite) TestBlock

func (tp *TestSuite) TestBlock(t *testing.T)

func (*TestSuite) TestBlockGet

func (tp *TestSuite) TestBlockGet(t *testing.T)

func (*TestSuite) TestBlockPin

func (tp *TestSuite) TestBlockPin(t *testing.T)

func (*TestSuite) TestBlockPut

func (tp *TestSuite) TestBlockPut(t *testing.T)

when no opts are passed, produced CID has 'raw' codec

func (*TestSuite) TestBlockPutCidCodecDagCbor

func (tp *TestSuite) TestBlockPutCidCodecDagCbor(t *testing.T)

func (*TestSuite) TestBlockPutCidCodecDagPb

func (tp *TestSuite) TestBlockPutCidCodecDagPb(t *testing.T)

func (*TestSuite) TestBlockPutFormatDagCbor

func (tp *TestSuite) TestBlockPutFormatDagCbor(t *testing.T)

Format is deprecated, it used invalid codec names. Confirm 'cbor' gets fixed to 'dag-cbor'

func (*TestSuite) TestBlockPutFormatDagPb

func (tp *TestSuite) TestBlockPutFormatDagPb(t *testing.T)

Format is deprecated, it used invalid codec names. Confirm 'protobuf' got fixed to 'dag-pb'

func (*TestSuite) TestBlockPutFormatV0

func (tp *TestSuite) TestBlockPutFormatV0(t *testing.T)

Format is deprecated, it used invalid codec names. Confirm fake codec 'v0' got fixed to CIDv0 (with implicit dag-pb codec)

func (*TestSuite) TestBlockPutHash

func (tp *TestSuite) TestBlockPutHash(t *testing.T)

func (*TestSuite) TestBlockRm

func (tp *TestSuite) TestBlockRm(t *testing.T)

func (*TestSuite) TestBlockStat

func (tp *TestSuite) TestBlockStat(t *testing.T)

func (*TestSuite) TestDag

func (tp *TestSuite) TestDag(t *testing.T)

func (*TestSuite) TestDagPath

func (tp *TestSuite) TestDagPath(t *testing.T)

func (*TestSuite) TestDht

func (tp *TestSuite) TestDht(t *testing.T)

func (*TestSuite) TestDhtFindPeer

func (tp *TestSuite) TestDhtFindPeer(t *testing.T)

func (*TestSuite) TestDhtFindProviders

func (tp *TestSuite) TestDhtFindProviders(t *testing.T)

func (*TestSuite) TestDhtProvide

func (tp *TestSuite) TestDhtProvide(t *testing.T)

func (*TestSuite) TestDiffTest

func (tp *TestSuite) TestDiffTest(t *testing.T)

func (*TestSuite) TestEmptyPathRemainder

func (tp *TestSuite) TestEmptyPathRemainder(t *testing.T)

func (*TestSuite) TestEntriesExpired

func (tp *TestSuite) TestEntriesExpired(t *testing.T)

func (*TestSuite) TestGenerate

func (tp *TestSuite) TestGenerate(t *testing.T)

func (*TestSuite) TestGenerateExisting

func (tp *TestSuite) TestGenerateExisting(t *testing.T)

func (*TestSuite) TestGenerateSize

func (tp *TestSuite) TestGenerateSize(t *testing.T)

func (*TestSuite) TestGenerateType

func (tp *TestSuite) TestGenerateType(t *testing.T)

func (*TestSuite) TestGetDir

func (tp *TestSuite) TestGetDir(t *testing.T)

func (*TestSuite) TestGetEmptyFile

func (tp *TestSuite) TestGetEmptyFile(t *testing.T)

func (*TestSuite) TestGetNonUnixfs

func (tp *TestSuite) TestGetNonUnixfs(t *testing.T)

func (*TestSuite) TestGetReadAt

func (tp *TestSuite) TestGetReadAt(t *testing.T)

func (*TestSuite) TestGetSeek

func (tp *TestSuite) TestGetSeek(t *testing.T)

func (*TestSuite) TestInvalidPathRemainder

func (tp *TestSuite) TestInvalidPathRemainder(t *testing.T)

func (*TestSuite) TestKey

func (tp *TestSuite) TestKey(t *testing.T)

func (*TestSuite) TestList

func (tp *TestSuite) TestList(t *testing.T)

func (*TestSuite) TestListSelf

func (tp *TestSuite) TestListSelf(t *testing.T)

func (*TestSuite) TestLs

func (tp *TestSuite) TestLs(t *testing.T)

func (*TestSuite) TestLsEmptyDir

func (tp *TestSuite) TestLsEmptyDir(t *testing.T)

func (*TestSuite) TestLsNonUnixfs

func (tp *TestSuite) TestLsNonUnixfs(t *testing.T)

TODO(lgierth) this should test properly, with len(links) > 0

func (*TestSuite) TestMutablePath

func (tp *TestSuite) TestMutablePath(t *testing.T)

func (*TestSuite) TestName

func (tp *TestSuite) TestName(t *testing.T)

func (*TestSuite) TestNew

func (tp *TestSuite) TestNew(t *testing.T)

func (*TestSuite) TestObject

func (tp *TestSuite) TestObject(t *testing.T)

func (*TestSuite) TestObjectAddData

func (tp *TestSuite) TestObjectAddData(t *testing.T)
func (tp *TestSuite) TestObjectAddLink(t *testing.T)

func (*TestSuite) TestObjectAddLinkCreate

func (tp *TestSuite) TestObjectAddLinkCreate(t *testing.T)

func (*TestSuite) TestObjectData

func (tp *TestSuite) TestObjectData(t *testing.T)

func (*TestSuite) TestObjectGet

func (tp *TestSuite) TestObjectGet(t *testing.T)
func (tp *TestSuite) TestObjectLinks(t *testing.T)

func (*TestSuite) TestObjectPut

func (tp *TestSuite) TestObjectPut(t *testing.T)
func (tp *TestSuite) TestObjectRmLink(t *testing.T)

func (*TestSuite) TestObjectSetData

func (tp *TestSuite) TestObjectSetData(t *testing.T)

func (*TestSuite) TestObjectStat

func (tp *TestSuite) TestObjectStat(t *testing.T)

func (*TestSuite) TestPath

func (tp *TestSuite) TestPath(t *testing.T)

func (*TestSuite) TestPathJoin

func (tp *TestSuite) TestPathJoin(t *testing.T)

func (*TestSuite) TestPathRemainder

func (tp *TestSuite) TestPathRemainder(t *testing.T)

func (*TestSuite) TestPathRoot

func (tp *TestSuite) TestPathRoot(t *testing.T)

func (*TestSuite) TestPin

func (tp *TestSuite) TestPin(t *testing.T)

func (*TestSuite) TestPinAdd

func (tp *TestSuite) TestPinAdd(t *testing.T)

func (*TestSuite) TestPinIsPinned

func (tp *TestSuite) TestPinIsPinned(t *testing.T)

func (*TestSuite) TestPinLsIndirect

func (tp *TestSuite) TestPinLsIndirect(t *testing.T)

TestPinLsIndirect verifies that indirect nodes are listed by pin ls even if a parent node is directly pinned

func (*TestSuite) TestPinLsPrecedence

func (tp *TestSuite) TestPinLsPrecedence(t *testing.T)

TestPinLsPrecedence verifies the precedence of pins (recursive > direct > indirect)

func (*TestSuite) TestPinLsPrecedenceDirectIndirect

func (tp *TestSuite) TestPinLsPrecedenceDirectIndirect(t *testing.T)

func (*TestSuite) TestPinLsPrecedenceRecursiveDirect

func (tp *TestSuite) TestPinLsPrecedenceRecursiveDirect(t *testing.T)

func (*TestSuite) TestPinLsPredenceRecursiveIndirect

func (tp *TestSuite) TestPinLsPredenceRecursiveIndirect(t *testing.T)

func (*TestSuite) TestPinRecursive

func (tp *TestSuite) TestPinRecursive(t *testing.T)

func (*TestSuite) TestPinSimple

func (tp *TestSuite) TestPinSimple(t *testing.T)

func (*TestSuite) TestPubSub

func (tp *TestSuite) TestPubSub(t *testing.T)

func (*TestSuite) TestPublishResolve

func (tp *TestSuite) TestPublishResolve(t *testing.T)

func (*TestSuite) TestPut

func (tp *TestSuite) TestPut(t *testing.T)

func (*TestSuite) TestPutWithHash

func (tp *TestSuite) TestPutWithHash(t *testing.T)

func (*TestSuite) TestRemove

func (tp *TestSuite) TestRemove(t *testing.T)

func (*TestSuite) TestRemoveSelf

func (tp *TestSuite) TestRemoveSelf(t *testing.T)

func (*TestSuite) TestRename

func (tp *TestSuite) TestRename(t *testing.T)

func (*TestSuite) TestRenameOverwrite

func (tp *TestSuite) TestRenameOverwrite(t *testing.T)

func (*TestSuite) TestRenameOverwriteNoForce

func (tp *TestSuite) TestRenameOverwriteNoForce(t *testing.T)

func (*TestSuite) TestRenameSameName

func (tp *TestSuite) TestRenameSameName(t *testing.T)

func (*TestSuite) TestRenameSameNameNoForce

func (tp *TestSuite) TestRenameSameNameNoForce(t *testing.T)

func (*TestSuite) TestRenameSelf

func (tp *TestSuite) TestRenameSelf(t *testing.T)

func (*TestSuite) TestRenameToSelf

func (tp *TestSuite) TestRenameToSelf(t *testing.T)

func (*TestSuite) TestRenameToSelfForce

func (tp *TestSuite) TestRenameToSelfForce(t *testing.T)

func (*TestSuite) TestRouting

func (tp *TestSuite) TestRouting(t *testing.T)

func (*TestSuite) TestRoutingGet

func (tp *TestSuite) TestRoutingGet(t *testing.T)

func (*TestSuite) TestRoutingPut

func (tp *TestSuite) TestRoutingPut(t *testing.T)

func (*TestSuite) TestRoutingPutOffline

func (tp *TestSuite) TestRoutingPutOffline(t *testing.T)

func (*TestSuite) TestTree

func (tp *TestSuite) TestTree(t *testing.T)

func (*TestSuite) TestUnixfs

func (tp *TestSuite) TestUnixfs(t *testing.T)

Jump to

Keyboard shortcuts

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