Tests of ProjectUtils namespace functions.
More...
Tests of ProjectUtils namespace functions.
Definition at line 30 of file projectutils.test.cpp.
◆ ProjectUtilsTest()
ProjectUtilsTest::ProjectUtilsTest |
( |
| ) |
|
|
inline |
Definition at line 32 of file projectutils.test.cpp.
34 ,
sample_model(std::make_unique<SessionModel>(
"SampleModel"))
FolderBasedTest(const std::string &test_dir)
std::unique_ptr< SessionModel > sample_model
◆ ~ProjectUtilsTest()
ProjectUtilsTest::~ProjectUtilsTest |
( |
| ) |
|
|
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*> ProjectUtilsTest::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> ProjectUtilsTest::sample_model |
The documentation for this class was generated from the following file: