testingutil

package
v0.4.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressLZ4

func CompressLZ4(tb testing.TB, b []byte) []byte

func CopyFile

func CopyFile(tb testing.TB, src, dst string)

CopyFile copies all data from src to dst. Fail on error.

func DecompressLZ4

func DecompressLZ4(tb testing.TB, b []byte) []byte

func Getwd

func Getwd(tb testing.TB) string

Getpwd returns the working directory. Fail on error.

func ReadFile

func ReadFile(tb testing.TB, filename string) []byte

ReadFile reads all data from filename. Fail on error.

func Setenv

func Setenv(tb testing.TB, key, value string) func()

Setenv sets the environment variable key to value. The returned function reverts it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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