MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / test_with_args

Function test_with_args

subprojects/llama.cpp/tests/test-chat-parser.cpp:395–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393}
394
395static 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
403static void test_json_with_dumped_args_no_args() {
404 // Normal JSON, nothing to heal, nothing to dump

Callers 1

Calls 3

assert_equalsFunction · 0.70
dumpMethod · 0.45

Tested by

no test coverage detected