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

Method test_legacy_url_local_broken

tests/Library_test.cpp:105–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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();
108 Library test("test.package:testname:testversion");
109 QCOMPARE(test.isNative(), false);
110 QStringList failedFiles;
111 test.setHint("local");
112 auto downloads = test.getDownloads(r, cache.get(), failedFiles, QString());
113 QCOMPARE(downloads.size(), 0);
114 QCOMPARE(failedFiles, {"testname-testversion.jar"});
115 }
116 void test_legacy_url_local_override()
117 {
118 RuntimeContext r = dummyContext();

Callers

nothing calls this directly

Calls 6

QStringClass · 0.85
isNativeMethod · 0.80
setHintMethod · 0.80
getDownloadsMethod · 0.80
getMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected