testutil

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChdirToTempDir

func ChdirToTempDir(prefix string) string

ChdirToTempDir creates and changes the working directory to new tmp dir

func CheckOutput added in v0.1.5

func CheckOutput(t *testing.T, r io.Reader, s ...string)

CheckOutput checks that the strings are contained in the reader output

func RegisterTestDepOnCIFuzz added in v0.1.3

func RegisterTestDepOnCIFuzz()

RegisterTestDepOnCIFuzz registers test dependencies on the cifuzz executable and all its dependencies. Go doesn't recognize those dependencies on its own in tests which build and execute cifuzz as an external command.

func RegisterTestDeps

func RegisterTestDeps(path ...string)

RegisterTestDeps ensures that the test calling this function is rerun (despite caching) if any of the files and directories (and their recursive contents) under the provided paths change.

Types

This section is empty.

Jump to

Keyboard shortcuts

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