added tests, fixed issues with overriding/format

In the documentation it states that child values can override the parent
values. Originally this code did not support that but now it does. Also
added in testing inspired by the previous tests.

Signed-off-by: cullvox <cullvox@outlook.com>
This commit is contained in:
cullvox
2023-09-12 21:34:42 -04:00
parent df88ccd419
commit a4e6530513
9 changed files with 321 additions and 98 deletions

View File

@ -35,8 +35,8 @@ bool processZIP(ResourcePack& pack, ProcessingLevel level = ProcessingLevel::Ful
bool processFolder(ResourcePack& pack, ProcessingLevel level = ProcessingLevel::Full);
bool processComponent(const QJsonValue& value, QString& result);
bool processComponentList(const QJsonArray& value, QString& result);
struct TextFormatter;
bool processComponent(const QJsonValue& value, QString& result, const TextFormatter* parentFormat = nullptr);
bool processMCMeta(ResourcePack& pack, QByteArray&& raw_data);
bool processPackPNG(const ResourcePack& pack, QByteArray&& raw_data);