MCPcopy Create free account
hub / github.com/Skycoder42/QtAutoUpdater / performConfig

Method performConfig

tests/auto/plugins/WebQueryTest/tst_webquery.cpp:79–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79QVariantMap WebQueryTest::performConfig()
80{
81 return {
82 {QStringLiteral("check/url"), _server->checkUrl()},
83 {QStringLiteral("check/autoQuery"), _autoQuery},
84 {QStringLiteral("check/parser"), _parser},
85
86 {QStringLiteral("install/download"), true},
87 {QStringLiteral("install/downloadUrl"), _server->downloadUrl()},
88#ifdef Q_OS_WIN
89 {QStringLiteral("install/tool"), QStringLiteral("python")},
90#else
91 {QStringLiteral("install/tool"), QStringLiteral("python3")},
92#endif
93 {QStringLiteral("install/parallel"), true},
94 {QStringLiteral("install/arguments"), QStringList {
95 QStringLiteral("%{downloadPath}"),
96 _server->installUrl().toString(QUrl::FullyEncoded)
97 }},
98 {QStringLiteral("install/addDataArgs"), true},
99 {QStringLiteral("install/runAsAdmin"), false}
100 };
101}
102
103QList<UpdateInfo> WebQueryTest::createInfos(const QVersionNumber &versionFrom, const QVersionNumber &versionTo)
104{

Callers

nothing calls this directly

Calls 3

checkUrlMethod · 0.80
downloadUrlMethod · 0.80
installUrlMethod · 0.80

Tested by

no test coverage detected