| 393 | } |
| 394 | |
| 395 | static void test_with_args(const std::string & input, const std::string & expected, bool parse_as_partial = true, bool is_partial = true) { |
| 396 | common_chat_msg_parser builder(input, parse_as_partial, {}); |
| 397 | auto js = builder.try_consume_json_with_dumped_args({{"args"}}, {}); |
| 398 | assert_equals(true, js.has_value()); |
| 399 | assert_equals(is_partial, js->is_partial); |
| 400 | assert_equals(expected, js->value.dump()); |
| 401 | } |
| 402 | |
| 403 | static void test_json_with_dumped_args_no_args() { |
| 404 | // Normal JSON, nothing to heal, nothing to dump |
no test coverage detected