MCPcopy Create free account
hub / github.com/Tencent/tgfx / SetJSONValue

Function SetJSONValue

test/src/utils/Baseline.cpp:101–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101static void SetJSONValue(nlohmann::json& target, const std::string& key, const std::string& value) {
102 std::lock_guard<std::mutex> autoLock(jsonLocker);
103 std::string jsonKey;
104 auto json = FindJSON(target, key, &jsonKey);
105 (*json)[jsonKey] = value;
106}
107
108bool Baseline::Compare(std::shared_ptr<PixelBuffer> pixelBuffer, const std::string& key) {
109 if (pixelBuffer == nullptr) {

Callers 1

CompareVersionAndMd5Function · 0.85

Calls 1

FindJSONFunction · 0.85

Tested by

no test coverage detected