| 28 | using ErrorGenerator = |
| 29 | std::function<void(Json::Value const*, cmJSONState* state)>; |
| 30 | ErrorGenerator ErrorGeneratorBuilder(std::string const& errorMessage) |
| 31 | { |
| 32 | return [errorMessage](Json::Value const* value, cmJSONState* state) -> void { |
| 33 | state->AddErrorAtValue(errorMessage, value); |
| 34 | }; |
| 35 | }; |
| 36 | |
| 37 | static ErrorGenerator InvalidArray = ErrorGeneratorBuilder("Invalid Array"); |
| 38 | JsonErrors::ErrorGenerator InvalidRootQueryObject( |
no test coverage detected
searching dependent graphs…