|
Multi diag tools
|
FakeRoot.h provides some helpers to make tests in a fake file system. More...
Functions | |
| QString | pathWithFakeRoot (const QTemporaryDir &root, const QString &path) |
| Get full path to root + path. More... | |
| void | prependFakeRootToPath (const QTemporaryDir &root, QString &path) |
| Prepend path of root to path. | |
| void | prependFakeRootToPathList (const QTemporaryDir &root, QStringList &pathList) |
| Apply prependFakeRootToPath() to all elements in pathList. | |
| bool | createPathInFakeRoot (const QTemporaryDir &root, const QString &path) |
| void MDT_TESTLIB_CORE_EXPORT prependFakeRootToPathList(const QTemporaryDir & root, Mdt::FileSystem::PathList & pathList); More... | |
| bool | createPathListInFakeRoot (const QTemporaryDir &root, const QStringList &pathList) |
| Create a list of path in a fake root. | |
FakeRoot.h provides some helpers to make tests in a fake file system.
Some additions to QTestLib.
Example of usage:
| bool MDT_TESTLIB_CORE_EXPORT Mdt::TestLib::createPathInFakeRoot | ( | const QTemporaryDir & | root, |
| const QString & | path | ||
| ) |
void MDT_TESTLIB_CORE_EXPORT prependFakeRootToPathList(const QTemporaryDir & root, Mdt::FileSystem::PathList & pathList);
Create a path in a fake root
Definition at line 46 of file FakeRoot.cpp.
| QString MDT_TESTLIB_CORE_EXPORT Mdt::TestLib::pathWithFakeRoot | ( | const QTemporaryDir & | root, |
| const QString & | path | ||
| ) |
Get full path to root + path.
For example, if root is /tmp/someDir :
Definition at line 29 of file FakeRoot.cpp.
1.8.11