Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
14,500
void () { doTest(); }
testTransitiveImport
14,501
void () { doTest(); }
testDotTransitiveImport
14,502
void () { myFixture.configureByFile("source.sh"); PsiReference reference = myFixture.getFile().findReferenceAt(myFixture.getCaretOffset()); assertNull(reference.resolve()); }
doNullTest
14,503
void () { doTest( "source.sh", "target.sh"); }
doTest
14,504
void (String filePath) { doTest( filePath, "target.sh"); }
doTest
14,505
void (String filePath, String targetFilePath) { myFixture.configureByFile(filePath); PsiReference reference = myFixture.getFile().findReferenceAt(myFixture.getCaretOffset()); PsiElement targetElement = reference.resolve(); assertNotNull(targetElement); assertEquals(targetFilePath, targetElement.getContainingFile().getVirtualFile().getName()); }
doTest
14,506
Lexer () { return new ShLexer(); }
createLexer
14,507
String () { return PluginPathManager.getPluginHomePath("sh") + "/core/testData/lexer"; }
getDirPath
14,508
String (@NotNull String extension) { return getDirPath() + "/" + getTestName(true) + extension; }
getPathToTestDataFile
14,509
void () { doFileTest("sh"); }
testFirst
14,510
void () { doFileTest("sh"); }
testHello
14,511
void () { doFileTest("sh"); }
testExprs
14,512
void () { doFileTest("sh"); }
testCase
14,513
void () { doFileTest("sh"); }
testFor
14,514
void () { doFileTest("sh"); }
testIf
14,515
void () { doFileTest("sh"); }
testHeredoc
14,516
void () { doFileTest("sh"); }
testTrap
14,517
void () { doFileTest("sh"); }
testTrap2
14,518
void () { doFileTest("sh"); }
testLet
14,519
void () { doFileTest("sh"); }
testParams
14,520
void () { doFileTest("sh"); }
testSelect
14,521
void () { doFileTest("sh"); }
testBinaryData
14,522
void () { doFileTest("sh"); }
testParamExpansionSub
14,523
void () { doFileTest("sh"); }
testRegex1
14,524
void () { doFileTest("sh"); }
testRegex2
14,525
void () { doFileTest("sh"); }
testStrings
14,526
void () { doFileTest("sh"); }
testParamExpansionEscape
14,527
void () { doFileTest("sh"); }
testProcessSubstitution
14,528
void () { doFileTest("sh"); }
testTest
14,529
void () { doFileTest("sh"); }
testShouldBeFixed
14,530
void () { doFileTest("sh"); }
testIdea263122
14,531
void () { doFileTest("sh"); }
testIdea244342
14,532
void () { doFileTest("sh"); }
testIdea280499
14,533
void () { doFileTest("sh"); }
testIdea289121
14,534
void () { doFileTest("sh"); }
testIdea275872
14,535
void () { doFileTest("sh"); }
testIdea278953
14,536
void (@NotNull String fileExt) { super.doFileTest(fileExt); String text = loadTestDataFile("." + fileExt); checkCorrectRestart(text); collectZeroStateStatistics(text); }
doFileTest
14,537
void (String text) { Lexer lexer = createLexer(); lexer.start(text); List<Integer> segments = new ArrayList<>(); boolean rowWithZeroState = false; boolean segmentStart = false; int segmentSize = 0; while (lexer.getTokenType() != null) { if (lexer.getState() == 0) { rowWithZeroState = true; if (segmentStart) { segments.add(segmentSize); segmentSize = 0; segmentStart = false; } } if (lexer.getTokenType().toString().equals("\\n")) { if (!rowWithZeroState) { segmentSize++; segmentStart = true; } rowWithZeroState = false; } lexer.advance(); } if (segmentStart) { segments.add(segmentSize); } double averageSize = segments.stream().mapToInt(Integer::intValue).average().orElse(0); double maxSize = segments.stream().mapToInt(Integer::intValue).max().orElse(0); if (segments.size() > 0) { System.out.println("Average segment size in test " + getName() + ": " + averageSize); System.out.println("Segments count: " + segments.size()); System.out.println("Max rows in segment: " + maxSize); System.out.println(); } }
collectZeroStateStatistics
14,538
Lexer () { return new ShLexer(); }
createLexer
14,539
String () { return PluginPathManager.getPluginHomePath("sh") + "/core/testData/oldLexer/v4"; }
getDirPath
14,540
String (@NotNull String extension) { return getDirPath() + "/" + getTestName(true) + extension; }
getPathToTestDataFile
14,541
void () { doFileTest("sh"); }
testCasePattern
14,542
void () { doFileTest("sh"); }
testIssue469
14,543
void () { doFileTest("sh"); }
testV4Lexing
14,544
void () { doFileTest("sh"); }
testIssue243
14,545
Lexer () { return new ShLexer(); }
createLexer
14,546
String () { return PluginPathManager.getPluginHomePath("sh") + "/core/testData/oldLexer/v3"; }
getDirPath
14,547
String (@NotNull String extension) { return getDirPath() + "/" + getTestName(true) + extension; }
getPathToTestDataFile
14,548
void () { doFileTest("sh"); }
testSimpleDefTokenization
14,549
void () { doFileTest("sh"); }
testVariables
14,550
void () { doFileTest("sh"); }
testArrayVariables
14,551
void () { doFileTest("sh"); }
testArrayWithString
14,552
void () { doFileTest("sh"); }
testSquareBracketArithmeticExpr
14,553
void () { doFileTest("sh"); }
testArithmeticExpr
14,554
void () { doFileTest("sh"); }
testLetExpressions
14,555
void () { doFileTest("sh"); }
testShebang
14,556
void () { doFileTest("sh"); }
testIdentifier
14,557
void () { doFileTest("sh"); }
testStrings
14,558
void () { doFileTest("sh"); }
testSubshellString
14,559
void () { doFileTest("sh"); }
testSubshellSubstring
14,560
void () { doFileTest("sh"); }
testWords
14,561
void () { doFileTest("sh"); }
testInternalCommands
14,562
void () { doFileTest("sh"); }
testExpressions
14,563
void () { doFileTest("sh"); }
testSubshell
14,564
void () { doFileTest("sh"); }
testNumber
14,565
void () { doFileTest("sh"); }
testFunction
14,566
void () { doFileTest("sh"); }
testVariable
14,567
void () { doFileTest("sh"); }
testRedirect1
14,568
void () { doFileTest("sh"); }
testConditional
14,569
void () { doFileTest("sh"); }
testBracket
14,570
void () { doFileTest("sh"); }
testParameterSubstitution
14,571
void () { doFileTest("sh"); }
testWeirdStuff1
14,572
void () { doFileTest("sh"); }
testCaseWhitespacePattern
14,573
void () { doFileTest("sh"); }
testNestedCase
14,574
void () { doFileTest("sh"); }
testBackquote1
14,575
void () { doFileTest("sh"); }
testCasePattern
14,576
void () { doFileTest("sh"); }
testAssignmentList
14,577
void () { doFileTest("sh"); }
testEval
14,578
void () { doFileTest("sh"); }
testNestedStatements
14,579
void () { doFileTest("sh"); }
testV4Lexing
14,580
void () { doFileTest("sh"); }
testParamExpansionNested
14,581
void () { doFileTest("sh"); }
testParamExpansion
14,582
void () { doFileTest("sh"); }
testArithmeticLiterals
14,583
void () { doFileTest("sh"); }
testReadCommand
14,584
void () { doFileTest("sh"); }
testUmlaut
14,585
void () { doFileTest("sh"); }
testSubshellExpr
14,586
void () { doFileTest("sh"); }
testIssue201
14,587
void () { doFileTest("sh"); }
testHeredoc
14,588
void () { doFileTest("sh"); }
testMultilineHeredoc
14,589
void () { doFileTest("sh"); }
testIssue118
14,590
void () { doFileTest("sh"); }
testIssue125
14,591
void () { doFileTest("sh"); }
testIssue199
14,592
void () { doFileTest("sh"); }
testIssue242
14,593
void () { doFileTest("sh"); }
testIssue246
14,594
void () { doFileTest("sh"); }
testIssue266
14,595
void () { doFileTest("sh"); }
testIssue270
14,596
void () { doFileTest("sh"); }
testIssue272
14,597
void () { doFileTest("sh"); }
testIssue300
14,598
void () { doFileTest("sh"); }
testIssue303
14,599
void () { doFileTest("sh"); }
testIssue308