Documentation ¶
Index ¶
- func TestApi(p Provider) func(t *testing.T)
- type Provider
- type TestSuite
- func (tp *TestSuite) MakeAPISwarm(t *testing.T, ctx context.Context, n int) ([]coreiface.CoreAPI, error)
- func (tp *TestSuite) TestAdd(t *testing.T)
- func (tp *TestSuite) TestAddCloses(t *testing.T)
- func (tp *TestSuite) TestAddHashOnly(t *testing.T)
- func (tp *TestSuite) TestAddPinned(t *testing.T)
- func (tp *TestSuite) TestBasicPubSub(t *testing.T)
- func (tp *TestSuite) TestBasicPublishResolveKey(t *testing.T)
- func (tp *TestSuite) TestBasicPublishResolveTimeout(t *testing.T)
- func (tp *TestSuite) TestBatch(t *testing.T)
- func (tp *TestSuite) TestBlock(t *testing.T)
- func (tp *TestSuite) TestBlockGet(t *testing.T)
- func (tp *TestSuite) TestBlockPin(t *testing.T)
- func (tp *TestSuite) TestBlockPut(t *testing.T)
- func (tp *TestSuite) TestBlockPutCidCodecDagCbor(t *testing.T)
- func (tp *TestSuite) TestBlockPutCidCodecDagPb(t *testing.T)
- func (tp *TestSuite) TestBlockPutFormatDagCbor(t *testing.T)
- func (tp *TestSuite) TestBlockPutFormatDagPb(t *testing.T)
- func (tp *TestSuite) TestBlockPutFormatV0(t *testing.T)
- func (tp *TestSuite) TestBlockPutHash(t *testing.T)
- func (tp *TestSuite) TestBlockRm(t *testing.T)
- func (tp *TestSuite) TestBlockStat(t *testing.T)
- func (tp *TestSuite) TestDag(t *testing.T)
- func (tp *TestSuite) TestDagPath(t *testing.T)
- func (tp *TestSuite) TestDiffTest(t *testing.T)
- func (tp *TestSuite) TestEmptyPathRemainder(t *testing.T)
- func (tp *TestSuite) TestEntriesExpired(t *testing.T)
- func (tp *TestSuite) TestGenerate(t *testing.T)
- func (tp *TestSuite) TestGenerateExisting(t *testing.T)
- func (tp *TestSuite) TestGenerateSize(t *testing.T)
- func (tp *TestSuite) TestGenerateType(t *testing.T)
- func (tp *TestSuite) TestGetDir(t *testing.T)
- func (tp *TestSuite) TestGetEmptyFile(t *testing.T)
- func (tp *TestSuite) TestGetNonUnixfs(t *testing.T)
- func (tp *TestSuite) TestGetReadAt(t *testing.T)
- func (tp *TestSuite) TestGetSeek(t *testing.T)
- func (tp *TestSuite) TestInvalidPathRemainder(t *testing.T)
- func (tp *TestSuite) TestKey(t *testing.T)
- func (tp *TestSuite) TestList(t *testing.T)
- func (tp *TestSuite) TestListSelf(t *testing.T)
- func (tp *TestSuite) TestLs(t *testing.T)
- func (tp *TestSuite) TestLsEmptyDir(t *testing.T)
- func (tp *TestSuite) TestLsNonUnixfs(t *testing.T)
- func (tp *TestSuite) TestMutablePath(t *testing.T)
- func (tp *TestSuite) TestName(t *testing.T)
- func (tp *TestSuite) TestNew(t *testing.T)
- func (tp *TestSuite) TestObject(t *testing.T)
- func (tp *TestSuite) TestObjectAddData(t *testing.T)
- func (tp *TestSuite) TestObjectAddLink(t *testing.T)
- func (tp *TestSuite) TestObjectAddLinkCreate(t *testing.T)
- func (tp *TestSuite) TestObjectData(t *testing.T)
- func (tp *TestSuite) TestObjectGet(t *testing.T)
- func (tp *TestSuite) TestObjectLinks(t *testing.T)
- func (tp *TestSuite) TestObjectPut(t *testing.T)
- func (tp *TestSuite) TestObjectRmLink(t *testing.T)
- func (tp *TestSuite) TestObjectSetData(t *testing.T)
- func (tp *TestSuite) TestObjectStat(t *testing.T)
- func (tp *TestSuite) TestPath(t *testing.T)
- func (tp *TestSuite) TestPathJoin(t *testing.T)
- func (tp *TestSuite) TestPathRemainder(t *testing.T)
- func (tp *TestSuite) TestPathRoot(t *testing.T)
- func (tp *TestSuite) TestPin(t *testing.T)
- func (tp *TestSuite) TestPinAdd(t *testing.T)
- func (tp *TestSuite) TestPinIsPinned(t *testing.T)
- func (tp *TestSuite) TestPinLsIndirect(t *testing.T)
- func (tp *TestSuite) TestPinLsPrecedence(t *testing.T)
- func (tp *TestSuite) TestPinLsPrecedenceDirectIndirect(t *testing.T)
- func (tp *TestSuite) TestPinLsPrecedenceRecursiveDirect(t *testing.T)
- func (tp *TestSuite) TestPinLsPredenceRecursiveIndirect(t *testing.T)
- func (tp *TestSuite) TestPinRecursive(t *testing.T)
- func (tp *TestSuite) TestPinSimple(t *testing.T)
- func (tp *TestSuite) TestPubSub(t *testing.T)
- func (tp *TestSuite) TestPublishResolve(t *testing.T)
- func (tp *TestSuite) TestPut(t *testing.T)
- func (tp *TestSuite) TestPutWithHash(t *testing.T)
- func (tp *TestSuite) TestRemove(t *testing.T)
- func (tp *TestSuite) TestRemoveSelf(t *testing.T)
- func (tp *TestSuite) TestRename(t *testing.T)
- func (tp *TestSuite) TestRenameOverwrite(t *testing.T)
- func (tp *TestSuite) TestRenameOverwriteNoForce(t *testing.T)
- func (tp *TestSuite) TestRenameSameName(t *testing.T)
- func (tp *TestSuite) TestRenameSameNameNoForce(t *testing.T)
- func (tp *TestSuite) TestRenameSelf(t *testing.T)
- func (tp *TestSuite) TestRenameToSelf(t *testing.T)
- func (tp *TestSuite) TestRenameToSelfForce(t *testing.T)
- func (tp *TestSuite) TestRouting(t *testing.T)
- func (tp *TestSuite) TestRoutingFindPeer(t *testing.T)
- func (tp *TestSuite) TestRoutingFindProviders(t *testing.T)
- func (tp *TestSuite) TestRoutingGet(t *testing.T)
- func (tp *TestSuite) TestRoutingProvide(t *testing.T)
- func (tp *TestSuite) TestRoutingPut(t *testing.T)
- func (tp *TestSuite) TestRoutingPutOffline(t *testing.T)
- func (tp *TestSuite) TestSign(t *testing.T)
- func (tp *TestSuite) TestTree(t *testing.T)
- func (tp *TestSuite) TestUnixfs(t *testing.T)
- func (tp *TestSuite) TestVerify(t *testing.T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TestSuite ¶
type TestSuite struct { Provider // contains filtered or unexported fields }
func (*TestSuite) MakeAPISwarm ¶
func (*TestSuite) TestAddCloses ¶
func (*TestSuite) TestAddHashOnly ¶
func (*TestSuite) TestAddPinned ¶
func (*TestSuite) TestBasicPubSub ¶
func (*TestSuite) TestBasicPublishResolveKey ¶
func (*TestSuite) TestBasicPublishResolveTimeout ¶
func (*TestSuite) TestBlockGet ¶
func (*TestSuite) TestBlockPin ¶
func (*TestSuite) TestBlockPut ¶
when no opts are passed, produced CID has 'raw' codec
func (*TestSuite) TestBlockPutCidCodecDagCbor ¶
func (*TestSuite) TestBlockPutCidCodecDagPb ¶
func (*TestSuite) TestBlockPutFormatDagCbor ¶
Format is deprecated, it used invalid codec names. Confirm 'cbor' gets fixed to 'dag-cbor'
func (*TestSuite) TestBlockPutFormatDagPb ¶
Format is deprecated, it used invalid codec names. Confirm 'protobuf' got fixed to 'dag-pb'
func (*TestSuite) TestBlockPutFormatV0 ¶
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 (*TestSuite) TestBlockRm ¶
func (*TestSuite) TestBlockStat ¶
func (*TestSuite) TestDagPath ¶
func (*TestSuite) TestDiffTest ¶
func (*TestSuite) TestEmptyPathRemainder ¶
func (*TestSuite) TestEntriesExpired ¶
func (*TestSuite) TestGenerate ¶
func (*TestSuite) TestGenerateExisting ¶
func (*TestSuite) TestGenerateSize ¶
func (*TestSuite) TestGenerateType ¶
func (*TestSuite) TestGetDir ¶
func (*TestSuite) TestGetEmptyFile ¶
func (*TestSuite) TestGetNonUnixfs ¶
func (*TestSuite) TestGetReadAt ¶
func (*TestSuite) TestGetSeek ¶
func (*TestSuite) TestInvalidPathRemainder ¶
func (*TestSuite) TestListSelf ¶
func (*TestSuite) TestLsEmptyDir ¶
func (*TestSuite) TestLsNonUnixfs ¶
TODO(lgierth) this should test properly, with len(links) > 0
func (*TestSuite) TestMutablePath ¶
func (*TestSuite) TestObject ¶
func (*TestSuite) TestObjectAddData ¶
func (*TestSuite) TestObjectAddLink ¶
func (*TestSuite) TestObjectAddLinkCreate ¶
func (*TestSuite) TestObjectData ¶
func (*TestSuite) TestObjectGet ¶
func (*TestSuite) TestObjectLinks ¶
func (*TestSuite) TestObjectPut ¶
func (*TestSuite) TestObjectRmLink ¶
func (*TestSuite) TestObjectSetData ¶
func (*TestSuite) TestObjectStat ¶
func (*TestSuite) TestPathJoin ¶
func (*TestSuite) TestPathRemainder ¶
func (*TestSuite) TestPathRoot ¶
func (*TestSuite) TestPinAdd ¶
func (*TestSuite) TestPinIsPinned ¶
func (*TestSuite) TestPinLsIndirect ¶
TestPinLsIndirect verifies that indirect nodes are listed by pin ls even if a parent node is directly pinned
func (*TestSuite) TestPinLsPrecedence ¶
TestPinLsPrecedence verifies the precedence of pins (recursive > direct > indirect)
func (*TestSuite) TestPinLsPrecedenceDirectIndirect ¶
func (*TestSuite) TestPinLsPrecedenceRecursiveDirect ¶
func (*TestSuite) TestPinLsPredenceRecursiveIndirect ¶
func (*TestSuite) TestPinRecursive ¶
func (*TestSuite) TestPinSimple ¶
func (*TestSuite) TestPubSub ¶
func (*TestSuite) TestPublishResolve ¶
func (*TestSuite) TestPutWithHash ¶
func (*TestSuite) TestRemove ¶
func (*TestSuite) TestRemoveSelf ¶
func (*TestSuite) TestRename ¶
func (*TestSuite) TestRenameOverwrite ¶
func (*TestSuite) TestRenameOverwriteNoForce ¶
func (*TestSuite) TestRenameSameName ¶
func (*TestSuite) TestRenameSameNameNoForce ¶
func (*TestSuite) TestRenameSelf ¶
func (*TestSuite) TestRenameToSelf ¶
func (*TestSuite) TestRenameToSelfForce ¶
func (*TestSuite) TestRouting ¶
func (*TestSuite) TestRoutingFindPeer ¶ added in v0.27.0
func (*TestSuite) TestRoutingFindProviders ¶ added in v0.27.0
func (*TestSuite) TestRoutingGet ¶
func (*TestSuite) TestRoutingProvide ¶ added in v0.27.0
func (*TestSuite) TestRoutingPut ¶
func (*TestSuite) TestRoutingPutOffline ¶
func (*TestSuite) TestUnixfs ¶
func (*TestSuite) TestVerify ¶
Click to show internal directories.
Click to hide internal directories.