Create a directory path if it does not exist.
Read the contents of a file into a vector of bytes.
Use to avoid random dependencies in test files for rare test cases.
Get a read and write file handle. Use this to create temporary files for
testing and comparison.
Get a read-only file handle. Use to avoid random dependencies in test
files for rare test cases.
Get a reader for a file. Use to avoid random dependencies in test files
for rare test cases.
Get a writer for a file, creating the file if it does not exist.
Use this to create temporary files for testing and comparison.
Remove a file if it exists.
Allow tests with global variables to run without interfering with each other. The
lock is released when the MutexGuard variable goes out of scope.
Write bytes to a file, creating the file if it does not exist.
Use this to create temporary files for testing and comparison.