/* * Copyright (C) 2018-2020 QuasarApp. * Distributed under the lgplv3 software license, see the accompanying * Everyone is permitted to copy and distribute verbatim copies * of this license document, but changing it is not allowed. */ #ifndef TESTUTILS_H #define TESTUTILS_H #include class TestUtils { public: TestUtils(); QSet getTree(const QString& path, int limit = -1, int depch = 0); QSet 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 compareTree(const QSet& leftTree, const QSet& rightTree); /** * @brief deployFile - deploy one file from recurses * @param file * @param distanation * @return true if operation is seccessful */ bool deployFile(const QString& file, const QString& distanation, const QHash &replaceCase = {}) const; private: QString getFilePath(const QString &i); }; #endif // TESTUTILS_H