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

Method test_parse_ZIP2

tests/WorldSaveParse_test.cpp:49–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 }
48
49 void test_parse_ZIP2()
50 {
51 QString source = QFINDTESTDATA("testdata/WorldSaveParse");
52
53 QString zip_ws = FS::PathCombine(source, "minecraft_save_2.zip");
54 WorldSave save{ QFileInfo(zip_ws) };
55
56 bool valid = WorldSaveUtils::processZIP(save);
57
58 QVERIFY(save.saveFormat() == WorldSaveFormat::MULTI);
59 QVERIFY(save.saveDirName() == "world_2");
60 QVERIFY(valid == true);
61 }
62
63 void test_parseFolder()
64 {

Callers

nothing calls this directly

Calls 5

PathCombineFunction · 0.85
QFileInfoClass · 0.85
saveFormatMethod · 0.80
saveDirNameMethod · 0.80
processZIPFunction · 0.50

Tested by

no test coverage detected