MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / test_legacy_native

Method test_legacy_native

tests/Library_test.cpp:131–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129 QCOMPARE(native64, {});
130 }
131 void test_legacy_native()
132 {
133 RuntimeContext r = dummyContext();
134 Library test("test.package:testname:testversion");
135 test.m_nativeClassifiers["linux"] = "linux";
136 QCOMPARE(test.isNative(), true);
137 test.setRepositoryURL("file://foo/bar");
138 {
139 QStringList jar, native, native32, native64;
140 test.getApplicableFiles(r, jar, native, native32, native64, QString());
141 QCOMPARE(jar, {});
142 QCOMPARE(native, getStorage("test/package/testname/testversion/testname-testversion-linux.jar"));
143 QCOMPARE(native32, {});
144 QCOMPARE(native64, {});
145 QStringList failedFiles;
146 auto dls = test.getDownloads(r, cache.get(), failedFiles, QString());
147 QCOMPARE(dls.size(), 1);
148 QCOMPARE(failedFiles, {});
149 auto dl = dls[0];
150 QCOMPARE(dl->url(), QUrl("file://foo/bar/test/package/testname/testversion/testname-testversion-linux.jar"));
151 }
152 }
153 void test_legacy_native_arch()
154 {
155 RuntimeContext r = dummyContext();

Callers

nothing calls this directly

Calls 9

QStringClass · 0.85
QUrlClass · 0.85
isNativeMethod · 0.80
setRepositoryURLMethod · 0.80
getApplicableFilesMethod · 0.80
getDownloadsMethod · 0.80
getMethod · 0.45
sizeMethod · 0.45
urlMethod · 0.45

Tested by

no test coverage detected