testutil

package
v0.0.0-...-90c1326 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTempDir

func CreateTempDir(t *testing.T, prefix string) (string, func())

CreateTempDir creates a temporary directory and returns its path along with a cleanup function

func CreateTestFile

func CreateTestFile(t *testing.T, dir, name, content string) string

CreateTestFile creates a temporary file with the given content and returns its path

Types

This section is empty.

Jump to

Keyboard shortcuts

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