BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Convenience class which creates a directory on disk for test content. More...
Public Member Functions | |
FolderBasedTest (const std::string &test_dir) | |
~FolderBasedTest () | |
std::string | createEmptyDir (const std::string &subdir) const |
Creates an empty directory in main test folder. More... | |
std::string | testDir () const |
std::string | testPath () const |
Return full path to the test folder. Located in CMAKE_BINARY_DIR/test_output/<m_test_dir>. More... | |
Protected Attributes | |
std::string | m_test_dir |
Convenience class which creates a directory on disk for test content.
Definition at line 23 of file folderbasedtest.h.
FolderBasedTest::FolderBasedTest | ( | const std::string & | test_dir | ) |
Definition at line 19 of file folderbasedtest.cpp.
References TestUtils::CreateTestDirectory(), and m_test_dir.
|
default |
std::string FolderBasedTest::createEmptyDir | ( | const std::string & | subdir | ) | const |
Creates an empty directory in main test folder.
Remove recursively previous one with the same name, if exist.
Definition at line 39 of file folderbasedtest.cpp.
References ModelView::Utils::create_directory(), ModelView::Utils::join(), ModelView::Utils::remove_all(), and testPath().
std::string FolderBasedTest::testDir | ( | ) | const |
Definition at line 24 of file folderbasedtest.cpp.
References m_test_dir.
std::string FolderBasedTest::testPath | ( | ) | const |
Return full path to the test folder. Located in CMAKE_BINARY_DIR/test_output/<m_test_dir>.
Definition at line 31 of file folderbasedtest.cpp.
References m_test_dir, and TestUtils::TestDirectoryPath().
Referenced by createEmptyDir().
|
protected |
Definition at line 35 of file folderbasedtest.h.
Referenced by FolderBasedTest(), testDir(), and testPath().