test

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFile added in v0.12.1

func CreateFile(tb testing.TB, filename string, content []byte) (tmpdir, tmpfile string)

CreateFile creates a temporary directory, writes a file and returns the full path of the file. Panic on error.

func File added in v0.12.1

func File(tb testing.TB, filename string) (tmpdir, tmpfile string)

File creates a temporary directory and returns the full path of the file. Panic on error.

func Project added in v0.7.0

func Project(path string) *projectWriter

Project returns a test project writer

func ReadFile added in v0.12.1

func ReadFile(fullpath string) []byte

ReadFile returns the content of an existing file. Panic on error.

func WriteFile added in v0.12.1

func WriteFile(fullpath string, content []byte)

WriteFile writes, or overwrites a file. Panic on error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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