MCPcopy Create free account
hub / github.com/Tencent/libpag / setJSONValue

Method setJSONValue

test/src/utils/Baseline.cpp:293–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293void Baseline::setJSONValue(nlohmann::json& target, const std::string& key,
294 const std::string& value) {
295 std::lock_guard<std::mutex> autoLock(locker);
296 std::string jsonKey;
297 auto json = FindJSON(target, key, &jsonKey);
298 (*json)[jsonKey] = value;
299}
300} // namespace pag

Callers

nothing calls this directly

Calls 1

FindJSONFunction · 0.85

Tested by

no test coverage detected