| 250 | } |
| 251 | |
| 252 | bool parse_bool_scalar(const std::string & value, const std::string & key) { |
| 253 | if (value == "true") { |
| 254 | return true; |
| 255 | } |
| 256 | if (value == "false") { |
| 257 | return false; |
| 258 | } |
| 259 | throw std::runtime_error("yaml boolean key has invalid value: " + key); |
| 260 | } |
| 261 | |
| 262 | std::string require_string(const FlattenedDocument & document, const std::string & key) { |
| 263 | const auto it = document.scalars.find(key); |
no outgoing calls
no test coverage detected