filetestutils

package
v0.0.0-...-89e32bb Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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