MCPcopy Create free account
hub / github.com/QuasarApp/CQtDeployer / deployTree

Method deployTree

tests/units/testutils.cpp:94–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94QSet<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
106QHash<QString, int> TestUtils::compareTree(const QSet<QString> &leftTree, const QSet<QString> &rightTree) {
107 QHash<QString, int> result;

Callers

nothing calls this directly

Calls 1

QDirClass · 0.85

Tested by

no test coverage detected