fstest

package
v0.58.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEmptyDir

func AssertEmptyDir(t *testing.T, dir string)

AssertEmptyDir asserts dir emptiness.

func AssertFileData

func AssertFileData(t *testing.T, filePath string, data []byte)

AssertFileData asserts file content.

func AssertFileExists

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

AssertFileExists asserts file presence.

func AssertFileNotExists

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

AssertFileNotExists asserts file absence.

func AssertSingleDirFile

func AssertSingleDirFile(t *testing.T, dir string, fileName string)

AssertSingleDirFile assert that directory has given file only.

func AssertSingleDirFileData

func AssertSingleDirFileData(t *testing.T, dir string, fileName string, data []byte)

AssertSingleDirFileData asserts that directory has given file only with specified content.

func TouchFile

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

TouchFile creates empty file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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