Documentation ¶
Index ¶
- Variables
- func BootstrapEmptyProject(t *testing.T, prefix string) string
- func BootstrapExampleProjectForTest(prefix, exampleName string) (tempDir string, cleanup func())
- func ChdirToTempDir(prefix string) (tempDir string, cleanup func())
- func CheckOutput(t *testing.T, r io.Reader, s ...string)
- func RegisterTestDepOnCIFuzz()
- func RegisterTestDeps(path ...string)
Constants ¶
This section is empty.
Variables ¶
var ChdirMutex sync.Mutex
Functions ¶
func BootstrapEmptyProject ¶ added in v0.5.0
func BootstrapExampleProjectForTest ¶ added in v0.5.0
BootstrapExampleProjectForTest copies the given example project to a temporary folder and changes into that directory.
func ChdirToTempDir ¶ added in v0.5.0
ChdirToTempDir creates and changes the working directory to new tmp dir
func CheckOutput ¶ added in v0.5.0
CheckOutput checks that the strings are contained in the reader output
func RegisterTestDepOnCIFuzz ¶ added in v0.5.0
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 ¶ added in v0.5.0
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.