| 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; |
nothing calls this directly
no test coverage detected