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

Method test_onenine_native

tests/Library_test.cpp:291–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected