filetest

package
v0.100.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenFile

func OpenFile(tb testing.TB, path string) *os.File

func OpenTemp

func OpenTemp(t testing.TB, tempDir string) *os.File

func OpenTempWithPattern

func OpenTempWithPattern(t testing.TB, tempDir, pattern string) *os.File

func ReopenTemp

func ReopenTemp(t testing.TB, name string) *os.File

func TokenWithLength

func TokenWithLength(length int) []byte

func WriteString

func WriteString(t testing.TB, file *os.File, s string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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