ark::testing
Classes
- ark::testing::ScopedDirectory
Scoped class that creates a new directory and will automatically remove it on destruction.
Functions
Declared in “ark/testing/path.hh”:
-
std::filesystem::path get_testing_root_directory(std::optional< std::filesystem::path > user_path)
Returns the a directory suitable for writing test data out to. This will be something like “/tmp/ark_test/<user_path>”.Note that you almost certainly want to be using ScopedDirectory, which will additionally add a GUID to the directory path, along with handling automatic cleanup when the test is over.
-
std::filesystem::path get_repository_root_directory()
Returns the repository root directory, useful for finding files to load. -
std::filesystem::path get_ark_repository_root_directory()
Returns the repository root directory, useful for finding files to load.