(t *testing.T)
| 92 | } |
| 93 | |
| 94 | func TestKeywordsDisallowedAsBlockNames(t *testing.T) { |
| 95 | p := ParserTestCase{T: t} |
| 96 | p.ExpectError("block_content.jet", `{{ block content() }}bla{{ end }}`, "template: block_content.jet:1: parsing block clause: unexpected keyword 'content' (expected name)") |
| 97 | p.ExpectError("block_if.jet", `{{ block if() }}bla{{ end }}`, "template: block_if.jet:1: parsing block clause: unexpected keyword 'if' (expected name)") |
| 98 | } |
| 99 | |
| 100 | func TestParseTemplateControl(t *testing.T) { |
| 101 | p := ParserTestCase{T: t} |
nothing calls this directly
no test coverage detected
searching dependent graphs…