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

Method test_legacy

tests/Library_test.cpp:79–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 dataDir = QDir(QFINDTESTDATA("testdata/Library")).absolutePath();
78 }
79 void test_legacy()
80 {
81 RuntimeContext r = dummyContext();
82 Library test("test.package:testname:testversion");
83 QCOMPARE(test.artifactPrefix(), QString("test.package:testname"));
84 QCOMPARE(test.isNative(), false);
85
86 QStringList jar, native, native32, native64;
87 test.getApplicableFiles(r, jar, native, native32, native64, QString());
88 QCOMPARE(jar, getStorage("test/package/testname/testversion/testname-testversion.jar"));
89 QCOMPARE(native, {});
90 QCOMPARE(native32, {});
91 QCOMPARE(native64, {});
92 }
93 void test_legacy_url()
94 {
95 RuntimeContext r = dummyContext();

Callers

nothing calls this directly

Calls 4

QStringClass · 0.85
isNativeMethod · 0.80
getApplicableFilesMethod · 0.80
artifactPrefixMethod · 0.45

Tested by

no test coverage detected