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

Function test_comments

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

Source from the content-addressed store, hash-verified

815}
816
817static void test_comments(testing & t) {
818 test_template(t, "inline comment",
819 "before{# comment #}after",
820 json::object(),
821 "beforeafter"
822 );
823
824 test_template(t, "comment ignores code",
825 "{% set x = 1 %}{# {% set x = 999 %} #}{{ x }}",
826 json::object(),
827 "1"
828 );
829}
830
831static void test_macros(testing & t) {
832 test_template(t, "simple macro",

Callers

nothing calls this directly

Calls 1

test_templateFunction · 0.85

Tested by

no test coverage detected