| 351 | } |
| 352 | |
| 353 | static std::string renormalize_json(const std::string & json_str) { |
| 354 | try { |
| 355 | auto json_obj = json::parse(json_str); |
| 356 | return json_obj.dump(); |
| 357 | } catch (const std::exception & e) { |
| 358 | return ""; // ignore parial JSON contents for comparison purposes |
| 359 | } |
| 360 | } |
| 361 | |
| 362 | static void assert_msg_equals(const common_chat_msg & expected, |
| 363 | const common_chat_msg & actual, |
no test coverage detected