Documentation ¶
Index ¶
- func AdFromLink(t *testing.T, adLink datamodel.Link, lsys ipld.LinkSystem) *schema.Advertisement
- func AllAdLinks(t *testing.T, head datamodel.Link, lsys ipld.LinkSystem) []datamodel.Link
- func AllAds(t *testing.T, ad *schema.Advertisement, lsys ipld.LinkSystem) []*schema.Advertisement
- func AllMultihashesFromAd(t *testing.T, ad *schema.Advertisement, lsys ipld.LinkSystem) []multihash.Multihash
- func AllMultihashesFromAdChain(t *testing.T, ad *schema.Advertisement, lsys ipld.LinkSystem) []multihash.Multihash
- func AllMultihashesFromAdChainDepth(t *testing.T, ad *schema.Advertisement, lsys ipld.LinkSystem, entriesDepth int) []multihash.Multihash
- func AllMultihashesFromAdLink(t *testing.T, adLink datamodel.Link, lsys ipld.LinkSystem) []multihash.Multihash
- type EntryBuilder
- type RandomAdBuilder
- type RandomEntryChunkBuilder
- type RandomHamtEntryBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdFromLink ¶
func AllAdLinks ¶
AllAdLinks returns a list of all ad cids for a given chain. Latest last
func AllAds ¶
func AllAds(t *testing.T, ad *schema.Advertisement, lsys ipld.LinkSystem) []*schema.Advertisement
func AllMultihashesFromAd ¶
func AllMultihashesFromAd(t *testing.T, ad *schema.Advertisement, lsys ipld.LinkSystem) []multihash.Multihash
func AllMultihashesFromAdChain ¶
func AllMultihashesFromAdChain(t *testing.T, ad *schema.Advertisement, lsys ipld.LinkSystem) []multihash.Multihash
func AllMultihashesFromAdChainDepth ¶
func AllMultihashesFromAdChainDepth(t *testing.T, ad *schema.Advertisement, lsys ipld.LinkSystem, entriesDepth int) []multihash.Multihash
Types ¶
type EntryBuilder ¶
type RandomAdBuilder ¶
type RandomAdBuilder struct { EntryBuilders []EntryBuilder Seed int64 AddRmWithNoEntries bool }
func (RandomAdBuilder) BuildWithFakeSig ¶
type RandomEntryChunkBuilder ¶
type RandomEntryChunkBuilder struct { ChunkCount uint8 EntriesPerChunk uint8 Seed int64 WithInvalidMultihashes bool Addrs []string }
func (RandomEntryChunkBuilder) Build ¶
func (b RandomEntryChunkBuilder) Build(t *testing.T, lsys ipld.LinkSystem) datamodel.Link
func (RandomEntryChunkBuilder) GetAddrs ¶ added in v0.5.11
func (b RandomEntryChunkBuilder) GetAddrs() []string
type RandomHamtEntryBuilder ¶
type RandomHamtEntryBuilder struct { BucketSize int BitWidth int MultihashCount uint32 Seed int64 WithInvalidMultihashes bool Addrs []string }
func (RandomHamtEntryBuilder) Build ¶
func (b RandomHamtEntryBuilder) Build(t *testing.T, lsys ipld.LinkSystem) datamodel.Link
func (RandomHamtEntryBuilder) GetAddrs ¶ added in v0.5.11
func (b RandomHamtEntryBuilder) GetAddrs() []string
Click to show internal directories.
Click to hide internal directories.