| 86 | void chi::Result::removeContext(int id) { mContexts.erase(id); } |
| 87 | |
| 88 | nlohmann::json Result::contextJson() const { |
| 89 | // merge all the contexts |
| 90 | auto merged = nlohmann::json::object(); |
| 91 | |
| 92 | for (const auto& ctx : mContexts) { mergeJsonIntoConservative(merged, ctx.second); } |
| 93 | |
| 94 | return merged; |
| 95 | } |
| 96 | |
| 97 | Result operator+(const Result& lhs, const Result& rhs) { |
| 98 | Result ret; |
no test coverage detected