testutil

package
Version: v0.0.0-...-4335b8a Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2018 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomBytes

func RandomBytes(seed, length int) []byte

RandomBytes returns pseudo-random deterministic result because test fails must be reproducible

func RandomReader

func RandomReader(seed, length int) *bytes.Reader

func TempFileWithContent

func TempFileWithContent(t *testing.T, content string) string

TempFileWithContent is a helper function that creates a temp file that contains the following string content then closes the file handle it returns the complete file path

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL