Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
65,200
void () { doTest(); }
testSingleQuote1
65,201
void () { doTest(); }
testSingleQuote1Tag
65,202
void () { doTest(); }
testSingleQuote2
65,203
void () { doTest(); }
testDoubleQuote1
65,204
void () { doTest(); }
testDoubleQuote2
65,205
void () { doTest(); }
testDoubleQuote4
65,206
void () { doTest(); }
testDoubleQuoteTag
65,207
void () { myFixture.configureByFile(getTestName(true) + ".yml"); final int offset = myFixture.getCaretOffset(); final PsiElement elementAtCaret = myFixture.getFile().findElementAt(offset); final YAMLScalar scalarElement = PsiTreeUtil.getNonStrictParentOfType(elementAtCaret, YAMLScalar.class); assertNotNull(scalarElemen...
doTest
65,208
void () { doInvalidTest(""); doInvalidTest(" "); doInvalidTest(" name"); doInvalidTest("name "); doInvalidTest("name\t"); doInvalidTest("\nname"); doInvalidTest("\tname"); doInvalidTest("\rname"); doInvalidTest("? name"); doInvalidTest(": name"); doInvalidTest("- name"); doInvalidTest(",name"); doInvalidTest("[name"); ...
testInvalidNames
65,209
void () { doValidTest("name"); doValidTest("name with spaces"); doValidTest("?name"); doValidTest(":name"); doValidTest("-name"); doValidTest("name#"); doValidTest("name:with:colons"); }
testValidNames
65,210
void (@NotNull final String name) { assertNotNull("Expected \"" + name + "\" to be an invalid name", INPUT_VALIDATOR.getErrorMessage(name, getProject())); }
doInvalidTest
65,211
void (@NotNull final String name) { assertNull("Expected \"" + name + "\" to be a valid name", INPUT_VALIDATOR.getErrorMessage(name, getProject())); }
doValidTest
65,212
String () { return PathManagerEx.getCommunityHomePath() + "/plugins/yaml/testSrc/org/jetbrains/yaml/intention/data/"; }
getTestDataPath
65,213
void () { myFixture.enableInspections(YAMLDuplicatedKeysInspection.class); doTest("Remove key"); }
testDeleteDuplicatedKey
65,214
void () { doDeleteAnchorTest(); }
testDeleteAnchor1
65,215
void () { doDeleteAnchorTest(); }
testDeleteAnchor2
65,216
void () { doDeleteAnchorTest(); }
testDeleteAnchor3
65,217
void () { myFixture.enableInspections(YAMLUnusedAnchorInspection.class); doTest("Remove anchor"); }
doDeleteAnchorTest
65,218
void (@NotNull String intentionName) { String testName = getTestName(true); myFixture.configureByFile(testName + ".yml"); IntentionAction quickFix = findIntention(intentionName); myFixture.launchAction(quickFix); myFixture.checkResultByFile(testName + ".txt"); }
doTest
65,219
IntentionAction (@NotNull String name) { List<IntentionAction> intentions = myFixture.getAvailableIntentions(); Optional<IntentionAction> intention = intentions.stream().filter(it -> it.getText().contains(name)).findFirst(); assert intention.isPresent(); return intention.get(); }
findIntention
65,220
String () { return PathManagerEx.getCommunityHomePath() + "/plugins/yaml/testSrc/org/jetbrains/yaml/highlighting/data/"; }
getTestDataPath
65,221
void () { doTest(); }
testBlockScalarHeaderError
65,222
void () { doTest(); }
testMultipleAnchorsError
65,223
void () { doTest(); }
testMultipleTagsError
65,224
void () { myFixture.enableInspections(YAMLUnresolvedAliasInspection.class); doTest(); }
testUnresolvedAlias
65,225
void () { myFixture.enableInspections(YAMLRecursiveAliasInspection.class); doTest(); }
testRecursiveAlias
65,226
void () { myFixture.enableInspections(YAMLDuplicatedKeysInspection.class); doTest(); }
testDuplicatedKeys
65,227
void () { myFixture.enableInspections(YAMLUnusedAnchorInspection.class); doTest(); }
testUnusedAnchors
65,228
void () { doTest(); }
testSameLineComposedValue
65,229
void () { doTest(); }
testInvalidBlockChildren
65,230
void () { doTest(); }
testInvalidIndent
65,231
void () { doTest(true); }
testWebUrls
65,232
void () { doTest(false); }
doTest
65,233
void (boolean checkInfos) { myFixture.testHighlighting(true, checkInfos, false, getTestName(true) + ".yml"); }
doTest
65,234
Lexer () { return new YAMLFlexLexer(); }
createLexer
65,235
void (@NotNull String text, @Nullable String expected) { super.doTest(text, expected); checkCorrectRestart(text); }
doTest
65,236
String () { return (PathManagerEx.getCommunityHomePath() + "/plugins/yaml/testSrc/org/jetbrains/yaml/lexer/data/") .substring(PathManager.getHomePath().length()); }
getDirPath
65,237
void () { doTest(); }
test2docs
65,238
void () { doTest(); }
testColorspage
65,239
void () { doTest(); }
testDocuments
65,240
void () { doTest(); }
testIndentation
65,241
void () { doTest(); }
testMap_between_seq
65,242
void () { doTest(); }
testMap_map
65,243
void () { doTest(); }
testQuoted_scalars
65,244
void () { doTest(); }
testSample_log
65,245
void () { doTest(); }
testSeq_seq
65,246
void () { doTest(); }
testSequence_mappings
65,247
void () { doTest(); }
testWrong_string_highlighting
65,248
void () { doTest(); }
testValue_injection
65,249
void () { doTest(); }
testValue_injection_2
65,250
void () { doTest(); }
testComma
65,251
void () { doTest(); }
testIndex
65,252
void () { doTest(); }
testKeydots
65,253
void () { doTest(); }
testColons74100
65,254
void () { doTest(); }
testOnlyyamlkey
65,255
void () { doTest(); }
testKey_parens
65,256
void () { doTest(); }
testKey_trailing_space
65,257
void () { doTest(); }
testComments
65,258
void () { doTest(); }
testNon_comment
65,259
void () { doTest(); }
testNon_comment2
65,260
void () { doTest(); }
testKey_with_brackets
65,261
void () { doTest(); }
testStrings
65,262
void () { doTest(); }
testStringWithTag
65,263
void () { doTest(); }
testNested_seqs
65,264
void () { doTest(); }
testMultiline_seq
65,265
void () { doTest(); }
testClosing_braces_in_value
65,266
void () { doTest(); }
testQuoted_keys
65,267
void () { doTest(); }
testTyped_scalar_list
65,268
void () { doTest(); }
testMultiline_ruby_16796
65,269
void () { doTest(); }
testRuby14738
65,270
void () { doTest(); }
testRuby14864
65,271
void () { doTest(); }
testRuby15402
65,272
void () { doTest(); }
testRuby17389
65,273
void () { doTest(); }
testRuby19105
65,274
void () { doTest(); }
testEmptyMultiline
65,275
void () { doTest(); }
testMultilineDoubleQuotedKey
65,276
void () { doTest(); }
testMultilineSingleQuotedKey
65,277
void () { doTest(); }
testMultilineDqLiteralWithEscapedNewlines
65,278
void () { doTest(); }
testSmallExplicitDocument
65,279
void () { doTest(); }
testSmallStream
65,280
void () { doTest(); }
testVerbatimTags
65,281
void () { doTest(); }
testTagShorthands
65,282
void () { doTest(); }
testOnlyScalars
65,283
void () { doTest(); }
testOnlyScalarNoDocument
65,284
void () { doTest(); }
testSingleQuotedEscapes
65,285
void () { doTest(); }
testUnicodeNewlines
65,286
void () { doTest(); }
testCcDocumentMarker1
65,287
void () { doTest(); }
testCcDocumentMarker2
65,288
void () { doTest(); }
testAnchorsAndAliases
65,289
void () { doTest(); }
testBlockScalarAfterDocMarker
65,290
void () { doTest(); }
testBlockScalarDocument
65,291
void () { doTest(); }
testBlockScalarZeroIndent
65,292
void () { doTest(); }
testExplicitMaps
65,293
void () { doTest(); }
testEarlyDocumentEnd
65,294
void () { doTest(); }
testInlinedSequence
65,295
void () { doTest(); }
testExoticMultilinePlainScalar
65,296
void () { doTest(); }
testLonelyCloseBracket
65,297
void () { doTest(); }
testShiftedSecondKey
65,298
void () { doTest(); }
testColonStartedTokens
65,299
void () { doTest(); }
testAliasInKey