3#include <test/jtx/TestSuite.h>
5#include <xrpl/basics/contract.h>
7#include <boost/filesystem.hpp>
19 using path = boost::filesystem::path;
31 if (is_directory(toRm) && is_empty(toRm))
37 test_.log <<
"Expected " << toRm.string() <<
" to be an empty existing directory."
46 using namespace boost::filesystem;
48 static auto kSubDirCounter = 0;
72 using namespace boost::filesystem;
84 [[nodiscard]]
path const&
106 bool useCounter =
true,
129 using namespace boost::filesystem;
138 test_.log <<
"Expected " <<
file_.string() <<
" to be an existing file."
150 [[nodiscard]]
path const&
159 return boost::filesystem::exists(
file_);
beast::unit_test::Suite & test_
DirGuard(beast::unit_test::Suite &test, path subDir, bool useCounter=true)
path const & subdir() const
auto rmDir(path const &toRm)
boost::filesystem::path path
path const & file() const
FileDirGuard(beast::unit_test::Suite &test, path subDir, path file, std::string const &contents, bool useCounter=true, bool create=true)
XRPL_NO_SANITIZE_ADDRESS void Throw(Args &&... args)