CQtDeployer/UnitTests/testutils.h

26 lines
578 B
C
Raw Normal View History

2019-09-08 14:18:58 +03:00
#ifndef TESTUTILS_H
#define TESTUTILS_H
#include <QSet>
class TestUtils
{
public:
TestUtils();
QSet<QString> getTree( const QString& path);
QSet<QString> createTree( const QStringList& tree);
2019-09-08 14:18:58 +03:00
/**
* @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);
2019-09-08 14:18:58 +03:00
};
#endif // TESTUTILS_H