mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-05-03 13:09:34 +00:00
26 lines
608 B
C++
26 lines
608 B
C++
#ifndef TESTUTILS_H
|
|
#define TESTUTILS_H
|
|
|
|
#include <QSet>
|
|
|
|
class TestUtils
|
|
{
|
|
public:
|
|
TestUtils();
|
|
QSet<QString> getTree(const QString& path, int limit = -1, int depch = 0);
|
|
QSet<QString> createTree( const QStringList& tree);
|
|
|
|
/**
|
|
* @brief compareTree - compare 2 tree
|
|
* @param leftTree
|
|
* @param rightTree
|
|
* @return hash with pathes and indexes( 1 - missing left and -1 - missing right)
|
|
*/
|
|
QHash<QString, int> compareTree(const QSet<QString>& leftTree, const QSet<QString>& rightTree);
|
|
|
|
private:
|
|
QString getFilePath(const QString &i);
|
|
};
|
|
|
|
#endif // TESTUTILS_H
|