| 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"); |
nothing calls this directly
no test coverage detected