The highest tagged major version is
v3 .
Discover Packages
github.com/simplesurance/baur/v2
internal
testutils
fstest
package
Version:
v2.2.0
Opens a new window with list of versions in this module.
Published: Mar 30, 2022
License: GPL-2.0
Opens a new window with license information.
Imports: 4
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.
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.