| 234 | } |
| 235 | |
| 236 | Utils::StatusWithReason FileSpec::Private::extractQuery(NL::json& node) |
| 237 | { |
| 238 | auto it = node.find("query"); |
| 239 | if (it == node.end()) |
| 240 | return true; |
| 241 | NL::json& val = *it; |
| 242 | if (!val.is_null()) |
| 243 | { |
| 244 | if (!extractStringMap(val, m_query)) |
| 245 | return { -1, "'filename' sub-argument 'query' must be an object of " |
| 246 | "string key-value pairs." }; |
| 247 | } |
| 248 | node.erase(it); |
| 249 | return true; |
| 250 | } |
| 251 | |
| 252 | // Provide access to the private 'parse' function. |
| 253 | Utils::StatusWithReason FileSpecHelper::parse(FileSpec& spec, NL::json& node) |
nothing calls this directly
no test coverage detected