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

Method loadIndexedPack

tests/ResourceModel_test.cpp:51–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 QJsonArray documentToArray(QJsonDocument& doc) const override { return doc.object().value("hits").toArray(); }
50
51 void loadIndexedPack(ModPlatform::IndexedPack& pack, QJsonObject& obj) override
52 {
53 pack.authors.append({ Json::requireString(obj, "author"), "" });
54 pack.description = Json::requireString(obj, "description");
55 pack.addonId = Json::requireString(obj, "project_id");
56 }
57};
58
59class ResourceModelTest : public QObject {

Callers

nothing calls this directly

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected