Class Dune::XT::Common::Test::ScopedTestDir¶
-
class Dune::XT::Common::Test::ScopedTestDir¶
A working directory unique to the running test, removed again when the scope ends. The directory is named after get_unique_test_name(), so tests within one binary never collide. Removal happens in the destructor rather than at the end of the test body, so it also runs when an ASSERT_* aborts the test early – a failing test should not leave anything behind either. The directory is only created once something is written into it (make_ofstream() and friends create the leading directories); path() and file() merely name it.
Method Dune::XT::Common::Test::ScopedTestDir::operator=¶
-
ScopedTestDir &Dune::XT::Common::Test::ScopedTestDir::operator=(const ScopedTestDir&) = delete¶
No documentation provided.
Method Dune::XT::Common::Test::ScopedTestDir::operator=¶
-
ScopedTestDir &Dune::XT::Common::Test::ScopedTestDir::operator=(ScopedTestDir&&) = delete¶
No documentation provided.
Method Dune::XT::Common::Test::ScopedTestDir::path¶
-
const std::string &Dune::XT::Common::Test::ScopedTestDir::path() const¶
The directory itself.
Method Dune::XT::Common::Test::ScopedTestDir::file¶
-
std::string Dune::XT::Common::Test::ScopedTestDir::file(const std::string &name) const¶
The path of an entry below this directory.
Constructor Dune::XT::Common::Test::ScopedTestDir::ScopedTestDir¶
-
explicit Dune::XT::Common::Test::ScopedTestDir::ScopedTestDir(const std::string &prefix)¶
No documentation provided.
Constructor Dune::XT::Common::Test::ScopedTestDir::ScopedTestDir¶
-
Dune::XT::Common::Test::ScopedTestDir::ScopedTestDir(const ScopedTestDir&) = delete¶
No documentation provided.
Constructor Dune::XT::Common::Test::ScopedTestDir::ScopedTestDir¶
-
Dune::XT::Common::Test::ScopedTestDir::ScopedTestDir(ScopedTestDir&&) = delete¶
No documentation provided.
Destructor Dune::XT::Common::Test::ScopedTestDir::~ScopedTestDir¶
-
Dune::XT::Common::Test::ScopedTestDir::~ScopedTestDir()¶
No documentation provided.
Field Dune::XT::Common::Test::ScopedTestDir::path_¶
-
const std::string Dune::XT::Common::Test::ScopedTestDir::path_¶
No documentation provided.