(t *testing.T)
| 274 | } |
| 275 | |
| 276 | func 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 | |
| 292 | func testScannerFailure(t *testing.T, str string) { |
| 293 | r := bytes.NewBufferString(str) |
nothing calls this directly
no test coverage detected
searching dependent graphs…