MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / test_legacy_url

Method test_legacy_url

tests/Library_test.cpp:93–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91 QCOMPARE(native64, {});
92 }
93 void test_legacy_url()
94 {
95 RuntimeContext r = dummyContext();
96 QStringList failedFiles;
97 Library test("test.package:testname:testversion");
98 test.setRepositoryURL("file://foo/bar");
99 auto downloads = test.getDownloads(r, cache.get(), failedFiles, QString());
100 QCOMPARE(downloads.size(), 1);
101 QCOMPARE(failedFiles, {});
102 NetAction::Ptr dl = downloads[0];
103 QCOMPARE(dl->m_url, QUrl("file://foo/bar/test/package/testname/testversion/testname-testversion.jar"));
104 }
105 void test_legacy_url_local_broken()
106 {
107 RuntimeContext r = dummyContext();

Callers

nothing calls this directly

Calls 6

QStringClass · 0.85
QUrlClass · 0.85
setRepositoryURLMethod · 0.80
getDownloadsMethod · 0.80
getMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected