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

Method test_onenine_native

tests/Library_test.cpp:288–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286 }
287 }
288 void test_onenine_native()
289 {
290 RuntimeContext r = dummyContext("osx");
291 auto test = readMojangJson(QFINDTESTDATA("testdata/Library/lib-native.json"));
292 QStringList jar, native, native32, native64;
293 test->getApplicableFiles(r, jar, native, native32, native64, QString());
294 QCOMPARE(jar, QStringList());
295 QCOMPARE(native,
296 getStorage("org/lwjgl/lwjgl/lwjgl-platform/2.9.4-nightly-20150209/lwjgl-platform-2.9.4-nightly-20150209-natives-osx.jar"));
297 QCOMPARE(native32, {});
298 QCOMPARE(native64, {});
299 QStringList failedFiles;
300 auto dls = test->getDownloads(r, cache.get(), failedFiles, QString());
301 QCOMPARE(dls.size(), 1);
302 QCOMPARE(failedFiles, {});
303 QCOMPARE(dls[0]->url(), QUrl("https://libraries.minecraft.net/org/lwjgl/lwjgl/lwjgl-platform/2.9.4-nightly-20150209/"
304 "lwjgl-platform-2.9.4-nightly-20150209-natives-osx.jar"));
305 }
306 void test_onenine_native_arch()
307 {
308 RuntimeContext r = dummyContext("windows");

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected