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

Method test_Through

tests/MojangVersionFormat_test.cpp:40–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 }
39
40 void test_Through()
41 {
42 QJsonDocument doc = readJson(QFINDTESTDATA("testdata/MojangVersionFormat/1.9.json"));
43 auto vfile = MojangVersionFormat::versionFileFromJson(doc, "1.9.json");
44 auto doc2 = MojangVersionFormat::versionFileToJson(vfile);
45 writeJson("1.9-passthorugh.json", doc2);
46 QCOMPARE(doc.toJson(), doc2.toJson());
47 }
48};
49
50QTEST_GUILESS_MAIN(MojangVersionFormatTest)

Callers

nothing calls this directly

Calls 1

toJsonMethod · 0.80

Tested by

no test coverage detected