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

Function test

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

Source from the content-addressed store, hash-verified

241};
242
243static void test(const std::string & input, bool is_partial, const std::vector<std::vector<std::string>> & args_paths, const std::vector<std::vector<std::string>> & content_paths, const std::string & expected) {
244 common_chat_msg_parser builder(input, is_partial, {});
245 auto js = builder.try_consume_json_with_dumped_args(args_paths, content_paths);
246 assert_equals(true, js.has_value());
247 assert_equals(is_partial, js->is_partial);
248 assert_equals(expected, args_paths.size() == 1 && args_paths[0].empty() ? js->value.get<std::string>() : js->value.dump());
249}
250
251static void test_deepseek_v3_1_tool_calls() {
252 //common_log_set_verbosity_thold(LOG_DEFAULT_DEBUG);

Callers 10

demo.test.tsFile · 0.90
testMethod · 0.70
test_regexFunction · 0.70
test_json_healingFunction · 0.70
test_allFunction · 0.70
test_resolves_to_stringFunction · 0.70
runFunction · 0.50
findEntriesFunction · 0.50

Calls 5

assert_equalsFunction · 0.70
sizeMethod · 0.65
emptyMethod · 0.65
dumpMethod · 0.45

Tested by

no test coverage detected