MCPcopy Create free account
hub / github.com/CloudyKit/jet / TestKeywordsDisallowedAsBlockNames

Function TestKeywordsDisallowedAsBlockNames

parse_test.go:94–98  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

92}
93
94func 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
100func TestParseTemplateControl(t *testing.T) {
101 p := ParserTestCase{T: t}

Callers

nothing calls this directly

Calls 1

ExpectErrorMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…