testutil

package
v0.0.0-...-6b1ef89 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDir

func CreateDir(path string)

CreateDir creates an empty directory at a given path, also creating it's parent directories if needed. Loudly fails if anything goes wrong.

func CreateFile

func CreateFile(path string)

CreateFile creates an empty regular file at a given path, also creating it's parent directories if needed. Loudly fails if anything goes wrong.

func CreateFileWithContent

func CreateFileWithContent(path string, content []byte)

CreateFileWithContent creates a regular file at a given path with given content, also creating it's parent directories if needed. Loudly fails if anything goes wrong.

func ExecuteEachInTempDir

func ExecuteEachInTempDir()

ExecuteEachInTempDir makes Ginkgo run each test in given context in temporary directory, which is cleaned up after each test run.

func ExecuteEachWithHostName

func ExecuteEachWithHostName(hostName string)

ExecuteEachWithHostName makes Ginkgo run each test in give context with HOST enviroment variable assigned to a given string. HOST is restored to its original value after each test run.

Types

This section is empty.

Jump to

Keyboard shortcuts

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