mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-04-27 18:24:33 +00:00
40 lines
890 B
C++
40 lines
890 B
C++
//#
|
|
//# Copyright (C) 2020-2022 QuasarApp.
|
|
//# Distributed under the GPLv3 software license, see the accompanying
|
|
//# Everyone is permitted to copy and distribute verbatim copies
|
|
//# of this license document, but changing it is not allowed.
|
|
//#
|
|
|
|
|
|
#include "qmlextracttest.h"
|
|
#include "qmlqt5.h"
|
|
#include "qmlcreator.h"
|
|
#include <configparser.h>
|
|
#include <dependenciesscanner.h>
|
|
#include <filemanager.h>
|
|
#include <packing.h>
|
|
#include <pluginsparser.h>
|
|
|
|
|
|
void QMLExtractTest::test() {
|
|
QmlCreator creator("./");
|
|
auto imports = creator.getQmlImports();
|
|
|
|
auto qmlFiles = creator.getCopyedQml();
|
|
|
|
|
|
QMLQt5 scaner("./");
|
|
|
|
|
|
for (const auto &file : qAsConst(qmlFiles)) {
|
|
|
|
|
|
auto fileImports = scaner.extractImportsFromFile(file);
|
|
|
|
for (const auto &fil : imports.value(file)) {
|
|
QVERIFY(fileImports.contains(fil, Qt::CaseInsensitive));
|
|
}
|
|
|
|
}
|
|
}
|