Tests for ProjectManager class.
More...
◆ ProjectManagerDecoratorTest()
ProjectManagerDecoratorTest::ProjectManagerDecoratorTest |
( |
| ) |
|
|
inline |
Definition at line 35 of file projectmanagerdecorator.test.cpp.
37 ,
sample_model(std::make_unique<ModelView::SessionModel>(samplemodel_name))
FolderBasedTest(const std::string &test_dir)
std::unique_ptr< SessionModel > sample_model
◆ ~ProjectManagerDecoratorTest()
ProjectManagerDecoratorTest::~ProjectManagerDecoratorTest |
( |
| ) |
|
|
default |
◆ 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*> ProjectManagerDecoratorTest::models |
( |
| ) |
const |
|
inline |
◆ projectContext()
◆ testDir()
std::string FolderBasedTest::testDir |
( |
| ) |
const |
|
inherited |
◆ testPath()
std::string FolderBasedTest::testPath |
( |
| ) |
const |
|
inherited |
◆ userContext()
UserInteractionContext ProjectManagerDecoratorTest::userContext |
( |
const std::string & |
create_dir = {} , |
|
|
const std::string & |
select_dir = {} |
|
) |
| |
|
inline |
Definition at line 51 of file projectmanagerdecorator.test.cpp.
52 const std::string& select_dir = {})
Defines the context to interact with the user regarding save/save-as/create-new project scenarious.
select_dir_callback_t m_select_dir_callback
create_dir_callback_t m_create_dir_callback
◆ m_test_dir
std::string FolderBasedTest::m_test_dir |
|
protectedinherited |
◆ sample_model
std::unique_ptr<SessionModel> ProjectManagerDecoratorTest::sample_model |
The documentation for this class was generated from the following file: