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

Function test_namespace

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

Source from the content-addressed store, hash-verified

843}
844
845static void test_namespace(testing & t) {
846 test_template(t, "namespace counter",
847 "{% set ns = namespace(count=0) %}{% for i in range(3) %}{% set ns.count = ns.count + 1 %}{% endfor %}{{ ns.count }}",
848 json::object(),
849 "3"
850 );
851}
852
853static void test_tests(testing & t) {
854 test_template(t, "is odd",

Callers

nothing calls this directly

Calls 1

test_templateFunction · 0.85

Tested by

no test coverage detected