| 48 | namespace chi { |
| 49 | |
| 50 | void Result::addEntry(const char* ec, const char* overview, nlohmann::json data) { |
| 51 | assert(ec[0] == 'E' || ec[0] == 'I' || ec[0] == 'W'); |
| 52 | |
| 53 | mergeJsonIntoConservative(data, contextJson()); |
| 54 | |
| 55 | result_json.push_back( |
| 56 | nlohmann::json({{"errorcode", ec}, {"overview", overview}, {"data", data}})); |
| 57 | if (ec[0] == 'E') mSuccess = false; |
| 58 | } |
| 59 | |
| 60 | std::string Result::dump() const { |
| 61 | std::string ret; |
no test coverage detected