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

Method test_legacy

tests/Library_test.cpp:75–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 dataDir = QDir(QFINDTESTDATA("testdata/Library")).absolutePath();
74 }
75 void test_legacy()
76 {
77 RuntimeContext r = dummyContext();
78 Library test("test.package:testname:testversion");
79 QCOMPARE(test.artifactPrefix(), QString("test.package:testname"));
80 QCOMPARE(test.isNative(), false);
81
82 QStringList jar, native, native32, native64;
83 test.getApplicableFiles(r, jar, native, native32, native64, QString());
84 QCOMPARE(jar, getStorage("test/package/testname/testversion/testname-testversion.jar"));
85 QCOMPARE(native, {});
86 QCOMPARE(native32, {});
87 QCOMPARE(native64, {});
88 }
89 void test_legacy_url()
90 {
91 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