MCPcopy
hub / github.com/valyala/quicktemplate / TestScannerFailure

Function TestScannerFailure

parser/scanner_test.go:276–290  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

274}
275
276func TestScannerFailure(t *testing.T) {
277 testScannerFailure(t, "a{%")
278 testScannerFailure(t, "a{%foo")
279 testScannerFailure(t, "a{%% }foo")
280 testScannerFailure(t, "a{% foo %")
281 testScannerFailure(t, "b{% fo() %}bar")
282 testScannerFailure(t, "aa{% foo bar")
283
284 testScannerFailure(t, "a{%-")
285 testScannerFailure(t, "a{%-foo")
286 testScannerFailure(t, "a{%-% }foo")
287 testScannerFailure(t, "a{%- foo %")
288 testScannerFailure(t, "b{%- fo() %}bar")
289 testScannerFailure(t, "aa{%- foo bar")
290}
291
292func testScannerFailure(t *testing.T, str string) {
293 r := bytes.NewBufferString(str)

Callers

nothing calls this directly

Calls 1

testScannerFailureFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…