MCPcopy Create free account
hub / github.com/dynjs/dynjs / lex

Method lex

src/test/java/org/dynjs/parser/js/JSLexerTest.java:13–19  ·  view source on GitHub ↗
(String str)

Source from the content-addressed store, hash-verified

11public class JSLexerTest {
12
13 protected Token lex(String str) throws IOException {
14 StringReader reader = new StringReader(str);
15 CircularCharBuffer buf = new CircularCharBuffer(reader, 5);
16 Lexer lexer = new Lexer(buf);
17 Token t = lexer.nextToken();
18 return t;
19 }
20
21 @Test
22 public void testPunctuation() throws IOException {

Callers 10

testPunctuationMethod · 0.95
testIdentifiersMethod · 0.95
testKeywordsMethod · 0.95
testBooleanLiteralsMethod · 0.95
testNumericLiteralsMethod · 0.95
testStringLiteralsMethod · 0.95
testRegexpLiteralsMethod · 0.95
lexFunction · 0.80

Calls 1

nextTokenMethod · 0.95

Tested by

no test coverage detected