Documentation ¶
Index ¶
- func FixtureChunk(prefix string) swarm.Chunk
- func GenerateTestRandomChunk() swarm.Chunk
- func GenerateTestRandomChunkAt(tb testing.TB, target swarm.Address, po int) swarm.Chunk
- func GenerateTestRandomChunks(count int) []swarm.Chunk
- func GenerateTestRandomInvalidChunk() swarm.Chunk
- func GenerateTestRandomSoChunk(tb testing.TB, cac swarm.Chunk) swarm.Chunk
- func GenerateValidRandomChunkAt(tb testing.TB, target swarm.Address, po int) swarm.Chunk
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FixtureChunk ¶
FixtureChunk gets a pregenerated content-addressed chunk and panics if one is not found.
func GenerateTestRandomChunk ¶
GenerateTestRandomChunk generates a valid content addressed chunk.
func GenerateTestRandomChunkAt ¶
GenerateTestRandomChunkAt generates an invalid (!) chunk with address of proximity order po wrt target.
func GenerateTestRandomChunks ¶
GenerateTestRandomChunks generates a slice of random Chunks by using GenerateTestRandomChunk function.
func GenerateTestRandomInvalidChunk ¶
GenerateTestRandomInvalidChunk generates a random, however invalid, content addressed chunk.
func GenerateTestRandomSoChunk ¶
GenerateTestRandomSoChunk generates a valid single owner chunk using supplied content addressed chunk.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.