MCPcopy Create free account
hub / github.com/catboost/catboost / Patch

Method Patch

library/cpp/yconf/patcher/config_patcher.cpp:57–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 }
56
57 void TWrapper::Patch() {
58 if (Patched)
59 return;
60 Preprocess();
61
62 const NJson::TJsonValue::TMapType* values;
63 if (!JsonPatch.GetMapPointer(&values))
64 ythrow yexception() << "unable to get map pointer in the json patch.";
65 for (const auto& value : *values) {
66 Config->PatchEntry(value.first, value.second.GetStringRobust(), Prefix);
67 }
68
69 Postprocess();
70 Patched = true;
71 }
72
73 void TWrapper::Preprocess() {
74 TString parsed;

Callers

nothing calls this directly

Calls 4

yexceptionClass · 0.85
PatchEntryMethod · 0.80
GetMapPointerMethod · 0.45
GetStringRobustMethod · 0.45

Tested by

no test coverage detected