testhelper

package
v1.14.5 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTemp

func CreateTemp(t testing.TB, dir, pattern string) *os.File

CreateTemp is a helper function which creates a temporary file, and it is automatically closed after test is completed

func MkdirTemp

func MkdirTemp(t testing.TB, dir, pattern string) string

MkdirTemp is a helper function which creates a temporary directory, and they are automatically removed after test is completed

Types

This section is empty.

Jump to

Keyboard shortcuts

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