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

Function test_template

subprojects/llama.cpp/tests/test-jinja.cpp:1874–1880  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1872}
1873
1874static void test_template(testing & t, const std::string & name, const std::string & tmpl, const json & vars, const std::string & expect) {
1875 if (g_python_mode) {
1876 test_template_py(t, name, tmpl, vars, expect);
1877 } else {
1878 test_template_cpp(t, name, tmpl, vars, expect);
1879 }
1880}
1881
1882//
1883// fuzz tests to ensure no crashes occur on malformed inputs

Callers 14

test_whitespace_controlFunction · 0.85
test_conditionalsFunction · 0.85
test_loopsFunction · 0.85
test_expressionsFunction · 0.85
test_set_statementFunction · 0.85
test_filtersFunction · 0.85
test_literalsFunction · 0.85
test_commentsFunction · 0.85
test_macrosFunction · 0.85
test_namespaceFunction · 0.85
test_testsFunction · 0.85
test_string_methodsFunction · 0.85

Calls 2

test_template_pyFunction · 0.85
test_template_cppFunction · 0.85

Tested by

no test coverage detected