Tests for ProjectManager class.
More...
Tests for ProjectManager class.
Definition at line 34 of file projectmanager.test.cpp.
◆ ProjectManagerTest()
ProjectManagerTest::ProjectManagerTest |
( |
| ) |
|
|
inline |
Definition at line 36 of file projectmanager.test.cpp.
38 ,
sample_model(std::make_unique<ModelView::SessionModel>(samplemodel_name))
FolderBasedTest(const std::string &test_dir)
std::unique_ptr< SessionModel > sample_model
◆ ~ProjectManagerTest()
ProjectManagerTest::~ProjectManagerTest |
( |
| ) |
|
|
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()
std::vector<SessionModel*> ProjectManagerTest::models |
( |
| ) |
const |
|
inline |
◆ testDir()
std::string FolderBasedTest::testDir |
( |
| ) |
const |
|
inherited |
◆ testPath()
std::string FolderBasedTest::testPath |
( |
| ) |
const |
|
inherited |
◆ m_test_dir
std::string FolderBasedTest::m_test_dir |
|
protectedinherited |
◆ sample_model
std::unique_ptr<SessionModel> ProjectManagerTest::sample_model |
The documentation for this class was generated from the following file: