iotest

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TempDir

func TempDir(t test.T, prefix string) string

TempDir creates a new temporary directory inside the current test context.

It deletes the directory when the test finishes.

func TempFile

func TempFile(t test.T, prefix string) *os.File

TempFile creates a new temporary file inside the current test context.

It deletes the file when the test finishes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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