Tests for Project class.
More...
Tests for Project class.
Definition at line 43 of file project.test.cpp.
◆ ProjectTest()
ProjectTest::ProjectTest |
( |
| ) |
|
|
inline |
Definition at line 45 of file project.test.cpp.
47 ,
sample_model(std::make_unique<SessionModel>(samplemodel_name))
48 ,
material_model(std::make_unique<SessionModel>(materialmodel_name))
FolderBasedTest(const std::string &test_dir)
std::unique_ptr< SessionModel > material_model
std::unique_ptr< SessionModel > sample_model
◆ ~ProjectTest()
ProjectTest::~ProjectTest |
( |
| ) |
|
|
default |
◆ createContext()
◆ createEmptyDir()
std::string FolderBasedTest::createEmptyDir |
( |
const std::string & |
subdir | ) |
const |
|
inherited |
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.
std::string testPath() const
Return full path to the test folder. Located in CMAKE_BINARY_DIR/test_output/<m_test_dir>.
MVVM_MODEL_EXPORT void remove_all(const std::string &path)
Removes directory with all its content.
MVVM_MODEL_EXPORT std::string join(const std::string &part1, const std::string &part2)
Joins two path elements into the path.
MVVM_MODEL_EXPORT bool create_directory(const std::string &path)
Create directory, parent directory must exist.
References ModelView::Utils::create_directory(), ModelView::Utils::join(), ModelView::Utils::remove_all(), and FolderBasedTest::testPath().
◆ models()
◆ testDir()
std::string FolderBasedTest::testDir |
( |
| ) |
const |
|
inherited |
◆ testPath()
std::string FolderBasedTest::testPath |
( |
| ) |
const |
|
inherited |
◆ m_test_dir
std::string FolderBasedTest::m_test_dir |
|
protectedinherited |
◆ material_model
◆ sample_model
The documentation for this class was generated from the following file: