testing

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTag

func CheckTag(t *testing.T, tag *chunk.Tag, split, stored, seen, sent, synced, total int64)

CheckTag checks the first tag in the api struct to be in a certain state

func GenerateTestRandomChunk

func GenerateTestRandomChunk() chunk.Chunk

GenerateTestRandomChunk generates a Chunk that is not valid, but it contains a random key and a random value. This function is faster then storage.GenerateRandomChunk which generates a valid chunk. Some tests in do not need valid chunks, just random data, and their execution time can be decreased using this function.

func GenerateTestRandomChunks

func GenerateTestRandomChunks(count int) []chunk.Chunk

GenerateTestRandomChunks generates a slice of random Chunks by using GenerateTestRandomChunk function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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