Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
14,100 | void () { doTest(true); } | testCommands |
14,101 | void () { doTest(true); } | testRegex |
14,102 | void () { doTest(true); } | testRegex2 |
14,103 | void () { doTest(true); } | testRedirection |
14,104 | void () { doTest(true); } | testRedirection2 |
14,105 | void () { doTest(true); } | testSource |
14,106 | void () { doTest(true); } | testRedirectErrors |
14,107 | void () { doTest(true); } | testIdea263122 |
14,108 | void () { doTest(true); } | testIdea244342 |
14,109 | void () { doTest(true); } | testIdea279283 |
14,110 | void () { doTest(true); } | testInstallJdk |
14,111 | void () { doTest(true); } | testTest |
14,112 | void () { assertNull(ShShebangParserUtil.detectInterpreter(null)); assertNull(ShShebangParserUtil.detectInterpreter("/usr/bin")); } | testInvalidShebang |
14,113 | void () { assertEquals("sh", ShShebangParserUtil.detectInterpreter("#!/bin/sh")); assertEquals("sh", ShShebangParserUtil.detectInterpreter("#! /bin/sh ")); assertEquals("sh", ShShebangParserUtil.detectInterpreter("#!/bin/sh -x")); assertEquals("sh", ShShebangParserUtil.detectInterpreter("#!/bin/sh -x\n#")); assertEquals("sh", ShShebangParserUtil.detectInterpreter("#!C:/AppData/Git/usr/bin/sh.exe")); } | testShShebangTest |
14,114 | void () { assertEquals("sh", ShShebangParserUtil.detectInterpreter("#!/usr/bin/env sh\n")); assertEquals("sh", ShShebangParserUtil.detectInterpreter("#! /usr/bin/env sh \n")); } | testEnvShebangTest |
14,115 | void () { assertEquals("sh", ShShebangParserUtil.detectInterpreter("#!/bin/sh -eu \n")); } | testBashShebangTest |
14,116 | void () { assertEquals("awk", ShShebangParserUtil.detectInterpreter("#!/usr/bin/awk -f\n# ")); } | testAwkShebangTest |
14,117 | void () { doTest("fori<caret>", "for i in {1..5} ; do\n \ndone"); } | testForiExpression |
14,118 | void () { doTest("cmd<caret>", "`command`"); } | testCmd |
14,119 | void () { doTest("cmd success check<caret>", "if [[ $? == 0 ]]; then\n echo \"Succeed\"\nelse\n echo \"Failed\"\nfi"); } | testCmdCheckResult |
14,120 | void () { doTest("tar compress<caret>", "tar -czvf /path/to/archive.tar.gz /path/to/directory"); } | testTarCompress |
14,121 | void () { doTest("tar decompress<caret>", "tar -C /extract/to/path -xzvf /path/to/archive.tar.gz"); } | testTarDecompress |
14,122 | void () { doTest("mkdir<caret>", "mkdir \"dirname\""); } | testMkdir |
14,123 | void () { doTest("git branch create<caret>", "git checkout -b branch_name"); } | testGitBranchCreate |
14,124 | void () { doTest("git push<caret>", "git push origin branch_name"); } | testGitPush |
14,125 | void () { doTest("git commit<caret>", "git commit -m \"commit_message\""); } | testGitCommit |
14,126 | void () { doTest("curl<caret>", "curl --request GET -sL \\\n --url 'http://example.com'\\\n --output './path/to/file'"); } | testCurl |
14,127 | void () { doTest("rm<caret>", "rm -f ./path/file"); } | testRm |
14,128 | void () { doTest("find<caret>", "find ./path -type f -name \"file_name\""); } | testFind |
14,129 | void () { doTest("xargs<caret>", " | xargs command"); } | testXargs |
14,130 | void () { doTest("heredoc<caret>", "<<EOF\n text\nEOF"); } | testHeredoc |
14,131 | void () { doTest("system kernel info<caret>", "uname -a"); } | testKernelInfo |
14,132 | void () { doTest("system info linux<caret>", "lsb_release -a"); } | testLinuxInfo |
14,133 | void () { doTest("system info mac<caret>", "sw_vers"); } | testMacOSInfo |
14,134 | void () { doTestEmptyLookup("echo stuff # this a<caret>"); } | testComment |
14,135 | void (String actual) { myFixture.configureByText("a.sh", actual); final Editor editor = myFixture.getEditor(); final Project project = editor.getProject(); assertNotNull(project); new ListTemplatesAction().actionPerformedImpl(project, editor); final LookupImpl lookup = (LookupImpl) LookupManager.getActiveLookup(editor); assertNull(lookup); } | doTestEmptyLookup |
14,136 | void (String actual, String expected) { myFixture.configureByText("a.sh", actual); final Editor editor = myFixture.getEditor(); final Project project = editor.getProject(); assertNotNull(project); new ListTemplatesAction().actionPerformedImpl(project, editor); final LookupImpl lookup = (LookupImpl) LookupManager.getActiveLookup(editor); assertNotNull(lookup); lookup.finishLookup(Lookup.NORMAL_SELECT_CHAR); TemplateState template = TemplateManagerImpl.getTemplateState(editor); if (template != null) { Disposer.dispose(template); } myFixture.checkResult(expected); } | doTest |
14,137 | void () { doTest("array create<caret>", "myArray=(item1 item2 item3)\n"); } | testArrayCreate |
14,138 | void () { doTest("array all<caret>", "${myArray[@]}\n"); } | testArrayAll |
14,139 | void () { doTest("array at index<caret>", "${myArray[index]}\n"); } | testArrayAtIndex |
14,140 | void () { doTest("array length<caret>", "${#myArray[@]}\n"); } | testArrayLength |
14,141 | void () { doTest("array delete<caret>", "unset myArray\n"); } | testArrayDelete |
14,142 | void () { doTest("array delete at<caret>", "unset myArray[index]\n"); } | testArrayDeleteAt |
14,143 | void () { doTest("array set element<caret>", "myArray[index]=value\n"); } | testArraySetElement |
14,144 | void () { doTest("array iteration<caret>", "for item in ${myArray[@]}; do\n echo \"$item\"\ndone\n"); } | testArrayIteration |
14,145 | void (String actual, String expected) { myFixture.configureByText("a.sh", actual); final Editor editor = myFixture.getEditor(); final Project project = editor.getProject(); assertNotNull(project); new ListTemplatesAction().actionPerformedImpl(project, editor); final LookupImpl lookup = (LookupImpl) LookupManager.getActiveLookup(editor); assertNotNull(lookup); lookup.finishLookup(Lookup.NORMAL_SELECT_CHAR); TemplateState template = TemplateManagerImpl.getTemplateState(editor); if (template != null) { Disposer.dispose(template); } myFixture.checkResult(expected); } | doTest |
14,146 | void () { doTypingTest("#!/usr/bin/env <caret>\n", "zsh", ShFileType.class); } | testShebangFileDetect1 |
14,147 | void () { doTypingTest("#! /usr/bin/env <caret>\n", "zsh", ShFileType.class); } | testShebangFileDetect2 |
14,148 | void () { doTypingTest("#!/bin/<caret> \n", "bash", ShFileType.class); } | testShebangFileDetect3 |
14,149 | void () { doTypingTest("#! /bin/<caret> \n", "sh", ShFileType.class); } | testShebangFileDetect4 |
14,150 | void () { doTypingTest("#!/bin/<caret> -x\n", "sh", ShFileType.class); } | testShebangFileDetect5 |
14,151 | void () { doTypingTest("#!C:/AppData/Git/usr/bin/<caret>.exe\n", "sh", ShFileType.class); } | testShebangFileDetect6 |
14,152 | void () { doTypingTest("#!<caret>\n", " ", PlainTextFileType.class); } | testInvalidShebangFileDetect1 |
14,153 | void () { doTypingTest("/usr/bin<caret>\n", " ", PlainTextFileType.class); } | testInvalidShebangFileDetect2 |
14,154 | void (String initialFileContent, String insertedContent, Class<?> expectedFileType) { PsiFile psiFile = myFixture.configureByText("a", initialFileContent); assertTrue(psiFile.getFileType() instanceof PlainTextFileType); myFixture.type(insertedContent); PsiDocumentManager documentManager = PsiDocumentManager.getInstance(getProject()); FileDocumentManager.getInstance().saveDocument(documentManager.getDocument(psiFile)); ApplicationManager.getApplication().runWriteAction(() -> { FileTypeManagerEx fileTypeManagerEx = (FileTypeManagerEx)FileTypeManager.getInstance(); fileTypeManagerEx.makeFileTypesChange("sh file type detector test", EmptyRunnable.getInstance()); }); assertTrue(expectedFileType.isInstance(myFixture.getFile().getFileType())); } | doTypingTest |
14,155 | String () { return PluginPathManager.getPluginHomePath("sh") + "/core/testData/spellchecker"; } | getTestDataPath |
14,156 | void () { doTest(); } | testTypoInString |
14,157 | void () { doTest(); } | testTypoInHereDoc |
14,158 | void () { doTest(); } | testTypoInComment |
14,159 | void () { doTest(); } | testTypoInRowString |
14,160 | void () { doTest(); } | testTypoInVariableName |
14,161 | void () { myFixture.testHighlighting(false, false, true, getTestName(true) + ".sh"); } | doTest |
14,162 | String () { return PluginPathManager.getPluginHomePath("sh") + "/core/testData/generate/"; } | getTestDataPath |
14,163 | void () { doTest(new ShGenerateForLoop()); } | testForLoop |
14,164 | void () { doTest(new ShGenerateForLoop()); } | testForLoopInsert |
14,165 | void () { doTest(new ShGenerateWhileLoop()); } | testWhileLoop |
14,166 | void () { doTest(new ShGenerateWhileLoop()); } | testWhileLoopInsert |
14,167 | void () { doTest(new ShGenerateUntilLoop()); } | testUntilLoop |
14,168 | void () { doTest(new ShGenerateUntilLoop()); } | testUntilLoopInsert |
14,169 | void (@NotNull CodeInsightAction action) { String testName = getTestName(true); myFixture.configureByFile(testName + ".sh"); Project project = myFixture.getProject(); Editor editor = myFixture.getEditor(); action.actionPerformedImpl(project, editor); myFixture.checkResultByFile(testName + ".after.sh"); } | doTest |
14,170 | String () { return PluginPathManager.getPluginHomePath("sh") + "/core/testData"; } | getTestDataPath |
14,171 | void () { doTest(true); } | testAppendAssignment |
14,172 | void () { doTest(true); } | testArithForCommand1 |
14,173 | void () { doTest(true); } | testArithmeticArrayRefs |
14,174 | void () { doTest(true); } | testArithmeticComplexExpressions |
14,175 | void () { doTest(true); } | testArithmeticForLoop |
14,176 | void () { doTest(true); } | testArithmeticForLoopVarError |
14,177 | void () { doTest(true); } | testArithmeticNumbers |
14,178 | void () { doTest(true); } | testArithmeticParse |
14,179 | void () { doTest(true); } | testArithmeticParseAssignments |
14,180 | void () { doTest(true); } | testArithmeticParseAssignmentsErrors |
14,181 | void () { doTest(true); } | testArithmeticParseList |
14,182 | void () { doTest(true); } | testArithmeticParseParentheses |
14,183 | void () { doTest(true); } | testArithmeticParseSquareMode |
14,184 | void () { doTest(true); } | testArithmeticTristateOperator |
14,185 | void () { doTest(true); } | testArithmeticVarAssignment |
14,186 | void () { doTest(true); } | testArrayAssignment |
14,187 | void () { doTest(true); } | testArrayVar |
14,188 | void () { doTest(true); } | testAssigmentCommands |
14,189 | void () { doTest(true); } | testBackquoteCommand |
14,190 | void () { doTest(true); } | testBackquoteCommandErrors |
14,191 | void () { doTest(true); } | testBacktickParsing |
14,192 | void () { doTest(true); } | testBodyWithErrors |
14,193 | void () { doTest(true); } | testBuildInCommandDeclare |
14,194 | void () { doTest(true); } | testCaseSimple1 |
14,195 | void () { doTest(true); } | testCheckErrorMarkers |
14,196 | void () { doTest(true); } | testCommandParseAssignment |
14,197 | void () { doTest(true); } | testCommandWithErrors |
14,198 | void () { doTest(true); } | testComplicatedHereDoc |
14,199 | void () { doTest(true); } | testComplicatedHereDocs |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.