/* * 1 covered goal: * 1 com.werken.saxpath.XPathLexer.consume()V: root-Branch */ @Test public void test4() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer("+G->M3NC"); xPathLexer0.consume(); assertEquals(1, xPathLexer0.currentPosition()); assertEquals(true, xPathLexer0.hasMoreChars()); }
/* * 1 covered goal: * 1 com.werken.saxpath.XPathLexer.setPreviousToken(Lcom/werken/saxpath/Token;)V: root-Branch */ @Test public void test3() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer("C"); xPathLexer0.setPreviousToken((Token) null); assertEquals(true, xPathLexer0.hasMoreChars()); assertEquals(1, xPathLexer0.endPosition()); }
/* * 1 covered goal: * 1 com.werken.saxpath.XPathLexer.consume(I)V: root-Branch */ @Test public void test3() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer(); xPathLexer0.consume((int) '\uFFFF'); assertEquals(65535, xPathLexer0.currentPosition()); assertEquals(false, xPathLexer0.hasMoreChars()); }
/* * 1 covered goal: * 1 com.werken.saxpath.XPathLexer.isIdentifierStartChar(C)Z: I4 Branch 228 IF_ICMPEQ L1003 - true */ @Test public void test10() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer("s"); boolean boolean0 = xPathLexer0.isIdentifierStartChar('_'); assertEquals(true, boolean0); assertEquals(true, xPathLexer0.hasMoreChars()); }
/* * 5 covered goals: * 1 com.werken.saxpath.XPathLexer.currentPosition()I: root-Branch * 2 com.werken.saxpath.XPathLexer.setXPath(Ljava/lang/String;)V: root-Branch * 3 com.werken.saxpath.XPathLexer.endPosition()I: root-Branch * 4 com.werken.saxpath.XPathLexer.<init>(Ljava/lang/String;)V: root-Branch * 5 com.werken.saxpath.XPathLexer.hasMoreChars()Z: I6 Branch 224 IF_ICMPGE L986 - false */ @Test public void test0() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer("+G->M3NC"); boolean boolean0 = xPathLexer0.hasMoreChars(); assertEquals(0, xPathLexer0.currentPosition()); assertEquals(8, xPathLexer0.endPosition()); assertEquals(true, boolean0); }
/* * 3 covered goals: * 1 com.werken.saxpath.XPathLexer.hasMoreChars()Z: I6 Branch 224 IF_ICMPGE L986 - true * 2 com.werken.saxpath.XPathLexer.currentPosition()I: root-Branch * 3 com.werken.saxpath.XPathLexer.endPosition()I: root-Branch */ @Test public void test6() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer(); boolean boolean0 = xPathLexer0.hasMoreChars(); assertEquals(0, xPathLexer0.endPosition()); assertEquals(0, xPathLexer0.currentPosition()); assertEquals(false, boolean0); }