///////////////////////////////////////////////////////////////////////////
| 337 | |
| 338 | //////////////////////////////////////////////////////////////////////////////// |
| 339 | void Hooks::separateOutput(const std::vector<std::string>& output, std::vector<std::string>& json, |
| 340 | std::vector<std::string>& feedback) const { |
| 341 | for (auto& i : output) { |
| 342 | if (isJSON(i)) |
| 343 | json.push_back(i); |
| 344 | else |
| 345 | feedback.push_back(i); |
| 346 | } |
| 347 | } |
| 348 | |
| 349 | //////////////////////////////////////////////////////////////////////////////// |
| 350 | bool Hooks::isJSON(const std::string& input) const { |
nothing calls this directly
no outgoing calls
no test coverage detected