Documentation ¶
Index ¶
- Constants
- func CheckTag(t *testing.T, tag *chunk.Tag, split, stored, seen, total int64)
- func NodeConfigAtPo(t *testing.T, baseaddr []byte, po int) *adapters.NodeConfig
- func RandomBytes(seed, length int) []byte
- func RandomReader(seed, length int) *bytes.Reader
- func TempFileWithContent(t *testing.T, content string) string
Constants ¶
View Source
const RaceEnabled = false
RaceEnabled is true when -race flag is provided to the go tool. This const might be used in tests to skip some cases as the race detector may increase memory usage 5-10x and execution time by 2-20x. That might causes problems on Travis. Please, use this flag sparingly and keep your unit tests as light on resources as possible.
Variables ¶
This section is empty.
Functions ¶
func NodeConfigAtPo ¶ added in v0.4.3
NodeConfigAtPo brute forces a node config to create a node that has an overlay address at the provided po in relation to the given baseaddr
func RandomBytes ¶
RandomBytes returns pseudo-random deterministic result because test fails must be reproducible
func RandomReader ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.