Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
48,600 | void () { assertEquals(DOUBLE, doTest(true)); } | testDoubleDivInteger |
48,601 | void () { assertEquals(DATE, doTest(true)); } | testDatePlusYmd |
48,602 | void () { assertEquals(DATE, doTest(true)); } | testDatePlusDtd |
48,603 | void () { assertEquals(TIME, doTest(true)); } | testTimePlusDtd |
48,604 | void () { assertEquals(DATETIME, doTest(true)); } | testDateTimePlusYmd |
48,605 | void () { assertEquals(DATETIME, doTest(true)); } | testDateTimePlusDtd |
48,606 | void () { assertEquals(YEARMONTHDURATION, doTest(true)); } | testYmdPlusYmd |
48,607 | void () { assertEquals(DAYTIMEDURATION, doTest(true)); } | testDtdPlusDtd |
48,608 | void () { assertEquals(DOUBLE, doTest(true)); } | testDoubleMinusInteger |
48,609 | void () { assertEquals(DAYTIMEDURATION, doTest(true)); } | testDateMinusDate |
48,610 | void () { assertEquals(DATE, doTest(false)); } | testDateMinusYmd |
48,611 | void () { assertEquals(DATE, doTest(false)); } | testDateMinusDtd |
48,612 | void () { assertEquals(DAYTIMEDURATION, doTest(true)); } | testTimeMinusTime |
48,613 | void () { assertEquals(TIME, doTest(false)); } | testTimeMinusDtd |
48,614 | void () { assertEquals(YEARMONTHDURATION, doTest(true)); } | testYmdMinusYmd |
48,615 | void () { assertEquals(DOUBLE, doTest(true)); } | testDoubleMultInteger |
48,616 | void () { assertEquals(YEARMONTHDURATION, doTest(true)); } | testYmdMultInteger |
48,617 | void () { assertEquals(YEARMONTHDURATION, doTest(true)); } | testYmdMultDecimal |
48,618 | XPathType (boolean symmetric) { myFixture.configureByFile(getTestFileName() + ".xpath2"); final XPathExpression expression = getExpression(); // all these cases must be green myFixture.checkHighlighting(); if (symmetric && expression instanceof XPathBinaryExpression expr) { if (expr.getLOperand().getType() != expr.getR... | doTest |
48,619 | XPathExpression () { final XPathFile file = (XPathFile)myFixture.getFile(); final XPathExpression expression = file.getExpression(); assertNotNull(expression); return expression; } | getExpression |
48,620 | String () { return "xpath2/types"; } | getSubPath |
48,621 | Lexer () { return XPathLexer.create(false); } | createLexer |
48,622 | String () { return TestBase.getTestDataPath("xpath/parsing/lexer").substring(PathManager.getHomePath().length()); } | getDirPath |
48,623 | void () { doTest("attribute::*"); } | testAttributeAxis |
48,624 | void () { doTest("something::*"); } | testBadAxis |
48,625 | void () { doTest("attribute()"); } | testAttributeNodeType |
48,626 | void () { doTest("element()"); } | testElementNodeType |
48,627 | void () { doTest("attribute/*"); } | testAttributeNCName |
48,628 | void () { doTest("element/*"); } | testElementNCName |
48,629 | void () { doTest("child::xsd:element and contains('a', 'a')"); } | testPrefixedNameAnd |
48,630 | void () { TestNamespaceContext.install(myFixture.getTestRootDisposable()); configure(); assertContainsElements(myFixture.getLookupElementStrings(), "xs:anyAtomicType", "xs:untypedAtomic", "xs:anyURI"); } | testCastInsert |
48,631 | void () { myFixture.configureByFile(getTestFileName() + ".xpath2"); myFixture.completeBasic(); } | configure |
48,632 | void () { configure(); myFixture.type("\n"); myFixture.checkResultByFile(getTestFileName() + "_after.xpath2"); } | testTreatInsert |
48,633 | String () { return "xpath2/completion"; } | getSubPath |
48,634 | void () { doXPathHighlighting(); } | testComments |
48,635 | void () { doXPathHighlighting(); } | testNodeComp |
48,636 | void () { doXPathHighlighting(); } | testNewOps |
48,637 | void () { doXPathHighlighting(); } | testSequence |
48,638 | void () { doXPathHighlighting(); } | testEmptySequence |
48,639 | void () { doXPathHighlighting(); } | testRange |
48,640 | void () { doXPathHighlighting(); } | testIfThenElse |
48,641 | void () { doXPathHighlighting(); } | testIfThenElseMissing |
48,642 | void () { doXPathHighlighting(); } | testForLoop |
48,643 | void () { doXPathHighlighting(); } | testSomeEvery |
48,644 | void () { doXPathHighlighting(); } | testTypeExpressions |
48,645 | void () { doXPathHighlighting(); } | testDoubleLiterals |
48,646 | void () { doXPathHighlighting(); } | testWildcardNamespace |
48,647 | void () { doXPathHighlighting(); } | testInvalidWildcard |
48,648 | void () { doXPathHighlighting(); } | testMissingInstanceOfType |
48,649 | void () { doXPathHighlighting(); } | testMissingSatisfiesExpression |
48,650 | void () { doXPathHighlighting(); } | testValidTypeOccurrenceIndicators |
48,651 | void () { doXPathHighlighting(); } | testInvalidTypeOccurrenceIndicator1 |
48,652 | void () { doXPathHighlighting(); } | testInvalidTypeOccurrenceIndicator2 |
48,653 | void () { doXPathHighlighting(); } | testNonKeywords |
48,654 | void () { doXPathHighlighting(); } | testCastWithMultiplication |
48,655 | void () { doXPathHighlighting(); } | testKindTestWithStar |
48,656 | void () { doXPathHighlighting(); } | testUnionSubExpression |
48,657 | void () { final String name = getTestFileName(); myFixture.testHighlighting(false, false, false, name + ".xpath2"); } | doXPathHighlighting |
48,658 | String () { return "xpath2/parsing"; } | getSubPath |
48,659 | String () { return getTestDataPath(getSubPath()); } | getTestDataPath |
48,660 | String (String subPath) { // path logic taken from intellij.regexp tests final String def = PluginPathManager.getPluginHomePath("xpath") + "/xpath-lang/testData"; return System.getProperty("idea.xpath.testdata-path", def) + "/" + subPath; } | getTestDataPath |
48,661 | String () { final String s = getName().substring("test".length()); return Character.toLowerCase(s.charAt(0)) + s.substring(1); } | getTestFileName |
48,662 | void () { doXPathHighlighting(); } | testIfInsideArgumentList |
48,663 | void () { doXPathHighlighting(); } | testConsecutiveComparison |
48,664 | void () { doXPathHighlighting(); } | testNumberFollowedByToken |
48,665 | void () { doXPathHighlighting(); } | testNumberFollowedByToken2 |
48,666 | void () { doXPathHighlighting(); } | testMalformedStringLiteral |
48,667 | void () { doXPathHighlighting(); } | testQuotedStringLiteral |
48,668 | void () { doXPathHighlighting(); } | testEmptyStringLiteral |
48,669 | void () { doXPathHighlighting(); } | testNodeKindTest |
48,670 | void () { doXPathHighlighting(); } | testIncorrectNodeKindTests |
48,671 | void () { doXPathHighlighting(); } | testValidOperations |
48,672 | void () { TestNamespaceContext.install(myFixture.getTestRootDisposable()); doXPathHighlighting(); } | testValidOperations2 |
48,673 | void () { doXPathHighlighting(); } | testPlusOperatorNotApplicable |
48,674 | void () { doXPathHighlighting(); } | testToOperatorNotApplicable |
48,675 | void () { doXPathHighlighting(); } | testIntersectOperatorNotApplicable |
48,676 | void () { doXPathHighlighting(); } | testUnionOperatorNotApplicable |
48,677 | void () { doXPathHighlighting(); } | testInvalidNodeTypePredicate |
48,678 | String () { return "xpath2/highlighting"; } | getSubPath |
48,679 | Lexer () { return XPathLexer.create(true); } | createLexer |
48,680 | String () { return TestBase.getTestDataPath("xpath2/parsing/lexer").substring(PathManager.getHomePath().length()); } | getDirPath |
48,681 | void () { doTest("if/treat/else/some/instance/of/return/as"); } | testNonKeywords |
48,682 | void () { doTest("for $i"); } | testFor |
48,683 | void () { doTest("if ("); } | testIf |
48,684 | void () { doTest("if:func()"); } | testExtFunctionCall |
48,685 | void () { doTest("attribute::*"); } | testAttributeAxis |
48,686 | void () { doTest("something::*"); } | testBadAxis |
48,687 | void () { doTest("attribute()"); } | testAttributeNodeType |
48,688 | void () { doTest("element()"); } | testElementNodeType |
48,689 | void () { doTest("attribute/*"); } | testAttributeNCName |
48,690 | void () { doTest("element/*"); } | testElementNCName |
48,691 | void () { doTest("child::xsd:element and contains('a', 'a')"); } | testPrefixedNameAnd |
48,692 | void () { doTest("$foo:var"); } | testQualifiedVar |
48,693 | void () { assertTrue(XPathType.isAssignable(XPath2Type.NODE, XPath2Type.ITEM)); assertFalse(XPathType.isAssignable(XPath2Type.NODE, XPath2Type.STRING)); } | testStatic |
48,694 | void () { // via "effective boolean value" assertTrue(XPathType.isAssignable(XPath2Type.BOOLEAN, XPath2Type.STRING)); assertTrue(XPathType.isAssignable(XPath2Type.BOOLEAN, XPath2Type.NUMERIC)); assertTrue(XPathType.isAssignable(XPath2Type.BOOLEAN, XPath2Type.INTEGER)); assertFalse(XPathType.isAssignable(XPath2Type.BOOL... | testBooleanAssignability |
48,695 | void () { assertTrue(XPathType.isAssignable(XPath2Type.ITEM, XPath2Type.STRING)); assertTrue(XPathType.isAssignable(XPath2Type.ITEM, XPath2Type.BOOLEAN)); assertTrue(XPathType.isAssignable(XPath2Type.ITEM, XPath2Type.DATE)); } | testAnyAssignability |
48,696 | void () { assertTrue(XPathType.isAssignable(XPath2Type.FLOAT, XPath2Type.INTEGER)); assertTrue(XPathType.isAssignable(XPath2Type.FLOAT, XPath2Type.DECIMAL)); assertTrue(XPathType.isAssignable(XPath2Type.DOUBLE, XPath2Type.FLOAT)); assertTrue(XPathType.isAssignable(XPath2Type.DOUBLE, XPath2Type.INTEGER)); assertTrue(XPa... | testNumericAssignability |
48,697 | void () { assertTrue(XPathType.isAssignable(XPath2Type.STRING, XPath2Type.ANYURI)); assertTrue(XPathType.isAssignable(XPath2Type.STRING, XPath2SequenceType.create(XPath2Type.STRING))); assertTrue(XPathType.isAssignable(XPath2SequenceType.create(XPath2Type.STRING), XPath2SequenceType.create(XPath2Type.STRING))); assertT... | testStringAssignability |
48,698 | void () { doTestXsltSupport(); } | testSupportedXslt10 |
48,699 | void () { doTestXsltSupport(); } | testSupportedXslt10_Loaded |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.