add fuzz constructor

Signed-off-by: BaoYang <baoyang9@h-partners.com>
Change-Id: If5845d2bbe1cb82a6427e456ba856bba3e1bea2c
This commit is contained in:
BaoYang
2025-10-22 17:11:20 +08:00
parent 99d76d95b3
commit 39b29c2c3e
@@ -118,6 +118,7 @@ std::string CompoRandomGenerator::ConstructLocationJson()
jsonComponent[JsonTagConstants::JSON_IS_OVERLAY_NODE_SET_TAG] = false;
jsonComponent[JsonTagConstants::JSON_IS_CUSTOMIZABLE] = false;
jsonComponent[JsonTagConstants::JSON_TIP_POSITION] = TipPosition::ABOVE_BOTTOM;
jsonComponent[JsonTagConstants::JSON_IS_ARKUI_COMPONENT] = false;
compoJson_ = jsonComponent;
return compoJson_.dump();
}
@@ -173,6 +174,7 @@ std::string CompoRandomGenerator::ConstructSaveJson()
jsonComponent[JsonTagConstants::JSON_IS_OVERLAY_NODE_SET_TAG] = false;
jsonComponent[JsonTagConstants::JSON_IS_CUSTOMIZABLE] = false;
jsonComponent[JsonTagConstants::JSON_TIP_POSITION] = TipPosition::ABOVE_BOTTOM;
jsonComponent[JsonTagConstants::JSON_IS_ARKUI_COMPONENT] = false;
compoJson_ = jsonComponent;
return compoJson_.dump();
}
@@ -228,6 +230,7 @@ std::string CompoRandomGenerator::ConstructPasteJson()
jsonComponent[JsonTagConstants::JSON_IS_OVERLAY_NODE_SET_TAG] = false;
jsonComponent[JsonTagConstants::JSON_IS_CUSTOMIZABLE] = false;
jsonComponent[JsonTagConstants::JSON_TIP_POSITION] = TipPosition::ABOVE_BOTTOM;
jsonComponent[JsonTagConstants::JSON_IS_ARKUI_COMPONENT] = false;
compoJson_ = jsonComponent;
return compoJson_.dump();
}