The highest tagged major version is
v5 .
Discover Packages
github.com/simplesurance/baur/v3
internal
testutils
fstest
package
Version:
v3.4.2
Opens a new window with list of versions in this module.
Published: Apr 16, 2024
License: GPL-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package fstest provides test utilties to operate with files and directories
Chmod is wrappoer of os.Chmod that fails the test if chmod returns an error.
ReadFile reads the file at path and returns its content.
TempDir returns a path, with all symlinks in it resolved, to a unique
temporary directory.
The directory is removed via t.Cleanup() on termination of the test.
(On MacOS t.TempDir() returns a symlink.)
WriteToFile writes data to a file.
Directories that are in the path but do not exist are created.
If an error happens, t.Fatal() is called.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.