(t *testing.T, leftDelim, rightDelim, input string, items ...itemType)
| 42 | } |
| 43 | |
| 44 | func lexerTestCaseCustomDelimiters(t *testing.T, leftDelim, rightDelim, input string, items ...itemType) { |
| 45 | lexer := lex("test.customDelimiters", input, false) |
| 46 | lexer.setDelimiters(leftDelim, rightDelim) |
| 47 | lexer.run() |
| 48 | lexerTestCaseCustomLexer(t, lexer, input, items...) |
| 49 | } |
| 50 | |
| 51 | func TestLexer(t *testing.T) { |
| 52 | lexerTestCase(t, `{{}}`, itemLeftDelim, itemRightDelim) |
no test coverage detected
searching dependent graphs…