| 92 | } |
| 93 | |
| 94 | QSet<QString> TestUtils::deployTree(const QStringList &tree) { |
| 95 | QSet<QString> res; |
| 96 | for (const auto &i : tree) { |
| 97 | QFileInfo fInfo(i); |
| 98 | if (!fInfo.exists() && QDir().mkpath(i)) { |
| 99 | res.insert(getFilePath(QFileInfo(i).absoluteFilePath())); |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | return res; |
| 104 | } |
| 105 | |
| 106 | QHash<QString, int> TestUtils::compareTree(const QSet<QString> &leftTree, const QSet<QString> &rightTree) { |
| 107 | QHash<QString, int> result; |