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