filetestutils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2025 License: GPL-3.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExistsWithContent

func FileExistsWithContent(t *testing.T, filePath string, expectedContent string)

FileExistsWithContent is a test helper function used to assert that the specified file exists and has the expected content

func PathDoesNotExist

func PathDoesNotExist(t *testing.T, filePath string)

PathDoesNotExist is a test helper function used to assert that the specified path does not exist

func PathExist

func PathExist(t *testing.T, filePath string)

PathExist is a test helper function used to assert that the specified path exists

func TempDir

func TempDir(t *testing.T) string

TempDir is a test helper function used to create a temporary dir

func TempFile

func TempFile(t *testing.T, name string) string

TempFile is a test helper function used to create a temporary file

func TempFileWithContent

func TempFileWithContent(t *testing.T, name string, content []byte) string

TempFileWithContent is a test helper function used to create a temporary file with a specified content

Types

This section is empty.

Jump to

Keyboard shortcuts

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