Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
268,700
void () { var index = ((FileBasedIndexEx)FileBasedIndex.getInstance()).getIndex(FileTypeIndex.NAME); ((FileTypeIndexImplBase)index).processPendingNotifications(); }
flushNotifications
268,701
void (@NotNull FileType fileType) { notifications.compute(fileType, (__, val) -> { if (val == null) { return 1; } else { return val + 1; } }); }
onChangedForFileType
268,702
FileType (@NotNull String name, @NotNull String extension, @NotNull Disposable parent) { FileType foo = new FakeFileType() { @Override public boolean isMyFileType(@NotNull VirtualFile file) { return file.getName().endsWith("." + extension); } @Override public @NotNull String getName() { return name; } @Override public ...
registerFakeFileType
268,703
boolean (@NotNull VirtualFile file) { return file.getName().endsWith("." + extension); }
isMyFileType
268,704
String () { return name; }
getName
268,705
String () { return name; }
getDescription
268,706
void () { TestModeFlags.set(DependenciesIndexedStatusService.ENFORCEMENT_USAGE_TEST_MODE_FLAG, true); }
before
268,707
void () { TestModeFlags.set(DependenciesIndexedStatusService.ENFORCEMENT_USAGE_TEST_MODE_FLAG, false); }
after
268,708
void (List<AdditionalLibraryRootsProvider> providers, List<IndexableSetContributor> contributors, List<DirectoryIndexExcludePolicy> policies) { ApplicationManager.getApplication().runWriteAction(() -> { ((ExtensionPointImpl<@NotNull AdditionalLibraryRootsProvider>)AdditionalLibraryRootsProvider.EP_NAME.getPoint()). mas...
setUp
268,709
void () { AdditionalLibraryRootsProvider provider = new AdditionalLibraryRootsProvider() { @Override public @NotNull Collection<SyntheticLibrary> getAdditionalProjectLibraries(@NotNull Project project) { ArrayList<SyntheticLibrary> result = new ArrayList<>(); addLibrary(result, libraryRootsNoId, null); addLibrary(resul...
setUp
268,710
Collection<SyntheticLibrary> (@NotNull Project project) { ArrayList<SyntheticLibrary> result = new ArrayList<>(); addLibrary(result, libraryRootsNoId, null); addLibrary(result, libraryRootsId1, "ID1"); addLibrary(result, libraryRootsId2, "ID2"); return result; }
getAdditionalProjectLibraries
268,711
void (@NotNull List<SyntheticLibrary> list, @NotNull List<VirtualFile> contentRoots, @Nullable String id) { if (contentRoots.isEmpty()) return; if (id == null) { list.add(SyntheticLibrary.newImmutableLibrary(contentRoots)); } else { list.add(SyntheticLibrary.newImmutableLibrary(id, contentRoots, Collections.emptyList()...
addLibrary
268,712
void () { libraryRootsNoId.clear(); libraryRootsId1.clear(); libraryRootsId2.clear(); }
tearDown
268,713
void () { VirtualFile first = tempDirectory.newVirtualDirectory("first/"); VirtualFile second = tempDirectory.newVirtualDirectory("second/"); assertNothingToRescan(); libraryRootsNoId.add(first); assertRescanningLibraries(YES, first); assertNothingToRescan(); libraryRootsNoId.add(second); assertRescanningLibraries(YES,...
checkAddingSyntheticLibraryRootInSingleLibraryWithoutId
268,714
void () { VirtualFile first = tempDirectory.newVirtualDirectory("first/"); VirtualFile second = tempDirectory.newVirtualDirectory("second/"); { VirtualFile constantAdditionalLib = tempDirectory.newVirtualDirectory("constantAdditionalLib/"); libraryRootsId1.add(constantAdditionalLib); assertRescanningLibraries(YES, cons...
checkAddingSyntheticLibraryRootInLibraryWithId
268,715
void () { VirtualFile first = tempDirectory.newVirtualDirectory("first/"); VirtualFile second = tempDirectory.newVirtualDirectory("second/"); { VirtualFile constantAdditionalLib = tempDirectory.newVirtualDirectory("constantAdditionalLib/"); libraryRootsId1.add(constantAdditionalLib); assertRescanningLibraries(YES, cons...
checkAddingSyntheticLibraryRootInNonSingleLibraryWithoutId
268,716
void () { VirtualFile first = tempDirectory.newVirtualDirectory("first/"); VirtualFile second = tempDirectory.newVirtualDirectory("second/"); assertNothingToRescan(); libraryRootsNoId.add(first); assertRescanningLibraries(ThreeState.NO, first); assertRescanningLibraries(UNSURE, first); libraryRootsNoId.add(second); ass...
checkAddingSyntheticLibraryRootWithCancelledIndexingInSingleLibraryWithoutId
268,717
void () { VirtualFile first = tempDirectory.newVirtualDirectory("first/"); VirtualFile second = tempDirectory.newVirtualDirectory("second/"); assertNothingToRescan(); libraryRootsId1.add(first); libraryRootsId2.add(second); assertRescanningLibraries(YES, first, second); assertNothingToRescan(); libraryRootsId1.add(seco...
checkSwitchingRootBetweenLibrariesWithIds
268,718
void () { VirtualFile first = tempDirectory.newVirtualDirectory("first/"); VirtualFile second = tempDirectory.newVirtualDirectory("second/"); assertNothingToRescan(); libraryRootsId1.add(first); libraryRootsId1.add(second); assertRescanningLibraries(YES, first, second); assertNothingToRescan(); libraryRootsId1.clear();...
checkReorderingOfRoots
268,719
void (ThreeState finishIndexingWithStatus, VirtualFile... roots) { DependenciesIndexedStatusService statusService = DependenciesIndexedStatusService.getInstance(getProject()); @Nullable Pair<@NotNull Collection<? extends IndexableIteratorBuilder>, @NotNull StatusMark> statusPair; statusPair = statusService.getDeltaWith...
assertRescanningLibraries
268,720
void () { IndexableSetContributor contributor = new IndexableSetContributor() { @Override public @NotNull Set<VirtualFile> getAdditionalProjectRootsToIndex(@NotNull Project project) { return Set.copyOf(indexableProjectRoots); } @Override public @NotNull Set<VirtualFile> getAdditionalRootsToIndex() { return Set.copyOf(i...
setUp
268,721
Set<VirtualFile> (@NotNull Project project) { return Set.copyOf(indexableProjectRoots); }
getAdditionalProjectRootsToIndex
268,722
Set<VirtualFile> () { return Set.copyOf(indexableRoots); }
getAdditionalRootsToIndex
268,723
void () { indexableProjectRoots.clear(); indexableRoots.clear(); }
tearDown
268,724
void () { doCheckAddingRoots(indexableRoots); }
checkAddingAppRoots
268,725
void () { doCheckAddingRoots(indexableProjectRoots); }
checkAddingProjectRoots
268,726
void (List<VirtualFile> roots) { VirtualFile first = tempDirectory.newVirtualDirectory("first/"); VirtualFile second = tempDirectory.newVirtualDirectory("second/"); assertNothingToRescan(); roots.add(first); assertRescanningIndexableSets(YES, first); assertNothingToRescan(); roots.add(second); assertRescanningIndexable...
doCheckAddingRoots
268,727
void () { VirtualFile first = tempDirectory.newVirtualDirectory("first/"); VirtualFile second = tempDirectory.newVirtualDirectory("second/"); assertNothingToRescan(); indexableProjectRoots.add(first); indexableRoots.add(second); assertRescanningIndexableSets(YES, first, second); assertNothingToRescan(); indexableProjec...
checkSwitchingRootBetweenProjectAndApplicationRoots
268,728
void () { doCheckAddingRootsWithCancelledIndexing(indexableProjectRoots); }
checkAddingProjectRootsWithCancelledIndexing
268,729
void () { doCheckAddingRootsWithCancelledIndexing(indexableRoots); }
checkAddingApplicationRootsWithCancelledIndexing
268,730
void (List<VirtualFile> roots) { VirtualFile first = tempDirectory.newVirtualDirectory("first/"); VirtualFile second = tempDirectory.newVirtualDirectory("second/"); assertNothingToRescan(); roots.add(first); assertRescanningIndexableSets(ThreeState.NO, first); assertRescanningIndexableSets(UNSURE, first); roots.add(sec...
doCheckAddingRootsWithCancelledIndexing
268,731
void () { VirtualFile first = tempDirectory.newVirtualDirectory("first/"); VirtualFile second = tempDirectory.newVirtualDirectory("second/"); assertNothingToRescan(); indexableRoots.add(first); indexableRoots.add(second); assertRescanningIndexableSets(YES, first, second); assertNothingToRescan(); indexableRoots.clear()...
checkReorderingOfRoots
268,732
void (ThreeState finishIndexingWithStatus, VirtualFile... roots) { DependenciesIndexedStatusService statusService = DependenciesIndexedStatusService.getInstance(getProject()); @Nullable Pair<@NotNull Collection<? extends IndexableIteratorBuilder>, @NotNull StatusMark> statusPair; statusPair = statusService.getDeltaWith...
assertRescanningIndexableSets
268,733
void () { DirectoryIndexExcludePolicy policy = new DirectoryIndexExcludePolicy() { @Override public String @NotNull [] getExcludeUrlsForProject() { return ArrayUtil.toStringArray(excludedUrls); } @Override public Function<Sdk, List<VirtualFile>> getExcludeSdkRootsStrategy() { return sdk -> excludedFromSdk; } }; setUp(C...
setUp
268,734
void () { excludedUrls.clear(); excludedFromSdk.clear(); }
tearDown
268,735
void () { Ref<DirectorySpec> firstDirSpec = new Ref<>(); Ref<DirectorySpec> secondDirSpec = new Ref<>(); ProjectStructureDslKt.createJavaModule(projectModelRule, "module", moduleContentBuilder -> { moduleContentBuilder.source("sourceRoot", JavaSourceRootType.SOURCE, contentBuilder -> { firstDirSpec.set(contentBuilder.d...
checkExcludingProjectPart
268,736
void () { Ref<DirectorySpec> firstDirSpec = new Ref<>(); Ref<DirectorySpec> secondDirSpec = new Ref<>(); ProjectStructureDslKt.createJavaModule(projectModelRule, "module", moduleContentBuilder -> { moduleContentBuilder.source("sourceRoot", JavaSourceRootType.SOURCE, contentBuilder -> { firstDirSpec.set(contentBuilder.d...
checkReorderingExcludingProjectPart
268,737
void () { Ref<DirectorySpec> classesDirSpec = new Ref<>(); Ref<DirectorySpec> sourcesDirSpec = new Ref<>(); VirtualFile sdkRoot = tempDirectory.newVirtualDirectory("sdkRoot"); ProjectStructureDslKt.buildDirectoryContent(sdkRoot, contentBuilder -> { contentBuilder.dir("sdk", sdkBuilder -> { classesDirSpec.set(sdkBuilder...
checkExcludingSdkPart
268,738
void () { Ref<DirectorySpec> classesDirSpec = new Ref<>(); Ref<DirectorySpec> classesExcludedDirSpec = new Ref<>(); Ref<DirectorySpec> sourcesDirSpec = new Ref<>(); Ref<DirectorySpec> sourcesExcludedDirSpec = new Ref<>(); VirtualFile sdkRoot = tempDirectory.newVirtualDirectory("sdkRoot"); ProjectStructureDslKt.buildDir...
checkExcludingSdkPartWithSdkStrategy
268,739
void () { doTestLibraryExcluding(libRootPair -> { Module module = ProjectStructureDslKt.createJavaModule(projectModelRule, "module", moduleContentBuilder -> { return Unit.INSTANCE; }); ModuleRootModificationUtil.addModuleLibrary(module, "libName", Collections.singletonList(libRootPair.getFirst().getUrl()), Collections....
checkExcludingModuleLibraryPart
268,740
void () { doTestLibraryExcluding(libRootPair -> { Module module = ProjectStructureDslKt.createJavaModule(projectModelRule, "module", moduleContentBuilder -> { return Unit.INSTANCE; }); LibraryEx library = projectModelRule.addProjectLevelLibrary("libName", setup -> { setup.addRoot(libRootPair.getFirst(), OrderRootType.C...
checkExcludingProjectLibraryPart
268,741
void () { doTestLibraryExcluding(libRootPair -> { Module module = ProjectStructureDslKt.createJavaModule(projectModelRule, "module", moduleContentBuilder -> { return Unit.INSTANCE; }); LibraryEx library = projectModelRule.addApplicationLevelLibrary("libName", setup -> { setup.addRoot(libRootPair.getFirst(), OrderRootTy...
checkExcludingGlobalLibraryPart
268,742
void (Consumer<Pair<VirtualFile, VirtualFile>> libraryCreator) { Ref<DirectorySpec> classesDirSpec = new Ref<>(); Ref<DirectorySpec> sourcesDirSpec = new Ref<>(); VirtualFile sdkRoot = tempDirectory.newVirtualDirectory("sdkRoot"); ProjectStructureDslKt.buildDirectoryContent(sdkRoot, contentBuilder -> { contentBuilder.d...
doTestLibraryExcluding
268,743
void (Consumer<List<String>> urlsConsumer) { urlsConsumer.accept(excludedUrls); fireRootsChangedTotalRescan(RootsChangeRescanningInfo.NO_RESCAN_NEEDED);//to update DirectoryIndex }
updateExcludedRoots
268,744
void (Consumer<List<VirtualFile>> urlsConsumer) { urlsConsumer.accept(excludedFromSdk); fireRootsChangedTotalRescan(RootsChangeRescanningInfo.NO_RESCAN_NEEDED);//to update DirectoryIndex }
updateExcludedFromSdkRoots
268,745
void (ThreeState finishIndexingWithStatus, VirtualFile... roots) { DependenciesIndexedStatusService statusService = DependenciesIndexedStatusService.getInstance(getProject()); @Nullable Pair<@NotNull Collection<? extends IndexableIteratorBuilder>, @NotNull StatusMark> statusPair; statusPair = statusService.getDeltaWith...
assertRescanningProjectContent
268,746
void (ThreeState finishIndexingWithStatus, VirtualFile... roots) { DependenciesIndexedStatusService statusService = DependenciesIndexedStatusService.getInstance(getProject()); @Nullable Pair<@NotNull Collection<? extends IndexableIteratorBuilder>, @NotNull StatusMark> statusPair; statusPair = statusService.getDeltaWith...
assertRescanningSdkContent
268,747
void (ThreeState finishIndexingWithStatus, Collection<VirtualFile> roots, Collection<VirtualFile> sourceRoots) { DependenciesIndexedStatusService statusService = DependenciesIndexedStatusService.getInstance(getProject()); @Nullable Pair<@NotNull Collection<? extends IndexableIteratorBuilder>, @NotNull StatusMark> statu...
assertRescanningLibraryContent
268,748
Project () { return projectModelRule.project; }
getProject
268,749
StatusMark () { DependenciesIndexedStatusService statusService = DependenciesIndexedStatusService.getInstance(getProject()); Pair<Collection<? extends IndexableIteratorBuilder>, StatusMark> statusPair = statusService.getDeltaWithLastIndexedStatus(); assertEmpty(statusPair.getFirst()); return statusPair.getSecond(); }
assertNothingToRescan
268,750
void (RootsChangeRescanningInfo info) { ApplicationManager.getApplication().runWriteAction(() -> { ProjectRootManagerEx.getInstanceEx(getProject()).makeRootsChange(EmptyRunnable.getInstance(), info); }); }
fireRootsChangedTotalRescan
268,751
void () { StatusMark mark = assertNothingToRescan(); DependenciesIndexedStatusService.getInstance(getProject()).indexingFinished(true, mark); }
assertNothingToRescanAndFinishIndexing
268,752
void (@NotNull ThreeState finishIndexingWithStatus, @NotNull StatusMark second, @NotNull DependenciesIndexedStatusService statusService) { switch (finishIndexingWithStatus) { case YES -> statusService.indexingFinished(true, second); case NO -> statusService.indexingFinished(false, second); case UNSURE -> {} } }
finishIndexing
268,753
void () { Assert.assertTrue(isSecretParameter("bla-token")); Assert.assertTrue(isSecretParameter("bla.secret.param")); Assert.assertTrue(isSecretParameter("idea.pasSword")); Assert.assertTrue(isSecretParameter("npm.auth.KEY")); }
testSecretParameters
268,754
boolean (String name) { for (String word : name.split("\\W+")) { if (word.equalsIgnoreCase("secret") || word.equalsIgnoreCase("token") || word.equalsIgnoreCase("key") || word.equalsIgnoreCase("password")) { return true; } } return false; }
isSecretParameter
268,755
void () { /* { "intField" : 43 "obj": { "name" : "testName", "versions" : ["1", "2"] } } */ EventLogGroup group = new EventLogGroup("newGroup", 1); StringEventField nameField = EventFields.StringValidatedByEnum("name", "os"); StringListEventField versionsField = EventFields.StringListValidatedByCustomRule("versions", C...
testObjectEvent
268,756
void () { EventLogGroup group = new EventLogGroup("newGroup", 1); StringEventField nameField = EventFields.StringValidatedByEnum("name", "os"); IntEventField notRegisteredField = EventFields.Int("not_registered"); EventId1<ObjectEventData> event = group.registerEvent("testEvent", new ObjectEventField("obj", nameField))...
testLogOnlyRegisteredObjectFields
268,757
void () { EventLogGroup group = new EventLogGroup("newGroup", 1); IntEventField countField = EventFields.Int("count"); StringEventField nameField = EventFields.StringValidatedByEnum("name", "os"); EventId1<List<? extends ObjectEventData>> event = group.registerEvent("testEvent", new ObjectListEventField("objects", name...
testObjectListEventByFields
268,758
void () { doTestField(EventFields.Boolean("enabled"), true, "true"); }
testPrimitiveTrueBooleanField
268,759
void () { doTestField(EventFields.Boolean("enabled"), false, "false"); }
testPrimitiveFalseBooleanField
268,760
void () { doTestField(EventFields.Int("count"), 123, "123"); }
testPrimitiveIntField
268,761
void () { doTestField(EventFields.RoundedInt("rounded_count"), 123, "128"); }
testPrimitiveRoundedIntField
268,762
void () { doTestField(EventFields.RoundedInt("rounded_count"), -1, "-1"); }
testPrimitiveNegativeAsRoundedIntField
268,763
void () { doTestField(EventFields.RoundedInt("rounded_count"), 0, "0"); }
testPrimitiveZeroAsRoundedIntField
268,764
void () { doTestField(EventFields.Long("duration_ms"), 123L, "123"); }
testPrimitiveLongField
268,765
void () { doTestField(EventFields.RoundedLong("rounded_duration_ms"), 60L, "64"); }
testPrimitiveRoundedLongField
268,766
void () { doTestField(EventFields.RoundedLong("rounded_duration_ms"), -1424612L, "-2097152"); }
testPrimitiveNegativeAsRoundedLongField
268,767
void () { doTestField(EventFields.RoundedLong("rounded_duration_ms"), 0L, "0"); }
testPrimitiveZeroAsRoundedLongField
268,768
void () { doTestField(EventFields.Double("probability"), 0.2, "0.2"); }
testPrimitiveDoubleField
268,769
void () { doTestField(EventFields.StringValidatedByEnum("type", "os"), "OPENED", "OPENED"); }
testPrimitiveStringField
268,770
void () { doTestField( EventFields.Class("class_name"), TestEventScheme.class, "com.intellij.internal.statistics.StatisticsSchemeDescriptionTest$TestEventScheme" ); }
testClassNameField
268,771
void () { doTestField( EventFields.Enum("type", TestEnumEvent.class), TestEnumEvent.CLOSED, "CLOSED" ); }
testEnumField
268,772
void () { doTestListField( EventFields.StringListValidatedByCustomRule("errors", CustomValidationRule.class), List.of("foo", "bar"), List.of("foo", "bar") ); }
testStringListField
268,773
void () { doTestListField( EventFields.LongList("performance"), List.of(123L, 15L, 123456L), List.of("123", "15", "123456") ); }
testLongListField
268,774
void (Disposable disposable) { final ExtensionPoint<FacetType> ep = Extensions.getRootArea().getExtensionPoint(FacetType.EP_NAME); TestCase.assertNotNull(ep); final FacetTypeId id = new FacetTypeId("DebugUsageStatisticsFacet"); final TestUsageStatisticsFacetType facetType = new TestUsageStatisticsFacetType(id, "TestUsa...
registerTestFacetType
268,775
void (Disposable disposable) { final ExtensionPoint<FacetType> ep = Extensions.getRootArea().getExtensionPoint(FacetType.EP_NAME); TestCase.assertNotNull(ep); final FacetTypeId id = new FacetTypeId("DebugUsageStatisticsFacet"); final TestUsageStatisticsFacetType facetType = new TestUsageStatisticsFacetType(id, "Test Us...
registerTestFacetTypeWithSpace
268,776
FacetConfiguration () { return null; }
createDefaultConfiguration
268,777
Facet (@NotNull Module module, String name, @NotNull FacetConfiguration configuration, @Nullable Facet underlyingFacet) { return new TestUsageStatisticsFacet(this, module, name, configuration, underlyingFacet); }
createFacet
268,778
boolean (ModuleType moduleType) { return false; }
isSuitableModuleType
268,779
void (Description description) { Config config = description.getAnnotation(Config.class); if (config != null) { myConfig = config; } else { try { myConfig = BulkChangesMergerTest.class.getMethod("dummy").getAnnotation(Config.class); } catch (NoSuchMethodException e) { throw new RuntimeException(e); } } }
starting
268,780
void () { }
dummy
268,781
void () { myMerger = new BulkChangesMerger(); }
setUp
268,782
void () { doTest("abcd", "a123d", c("123", 1, 3)); }
simpleReplaceInTheMiddle
268,783
void () { doTest("abcd", "a1b2c3d45", c("1", 1), c("2", 2), c("3", 3), c("45", 4)); }
disjointInserts
268,784
void () { doTest("abcdefg", "a12bc3d", c("12", 1), c("3", 3)); }
interestedSymbolsNumberLessThanAvailable
268,785
void () { doTest("0123456789", "a2bc4defg8", c("a", 0, 2), c("bc", 3, 4), c("defg", 5, 8), c("", 9, 10)); }
inplaceZeroGroups
268,786
void () { doTest("abcdefghijklmnopqrst", "acABdCjkDEFGHIJKLMpqrst", c("", 1, 2), c("AB", 3), c("C", 4, 9), c("DEFGHIJKLM", 11, 15)); }
inplaceGrowingGroupsWithLastPositive
268,787
void () { doTest("abcdefghijk", "acABdCjk", c("", 1, 2), c("AB", 3), c("C", 4, 9)); }
inplaceGrowingGroupsWithLastNegative
268,788
void () { doTest("0123456789", "0ab2c3defg67hijk9", c("ab", 1, 2), c("c", 3), c("defg", 4, 6), c("hijk", 8, 9)); }
onlyGrowing
268,789
void () { doTest("0123456789", "0a35b9", c("a", 1, 3), c("", 4, 5), c("b", 6, 9)); }
onlyShrinking
268,790
void () { doTest("0123", "", c("", 1, 3), c("abc", 4)); }
insufficientLengthForInplaceMerge
268,791
void () { doTest("0123456789ABC", "0abc1358d9eBC", c("abc", 1), c("", 2, 3), c("", 4, 5), c("", 6, 8), c("d", 9), c("e", 10, 11)); }
overlapWithPositiveGroupOnStart
268,792
void () { doTestUpdateOffset(5, 5, c("a", 6)); doTestUpdateOffset(5, 6, c("a", 3)); doTestUpdateOffset(5, 5, c("a", 6, 7)); doTestUpdateOffset(5, 5, c("a", 3, 4)); doTestUpdateOffset(5, 4, c("", 3, 4)); doTestUpdateOffset(5, 5, c("", 6, 7)); doTestUpdateOffset(5, 2, c("", 0, 1), c("", 2, 3), c("", 3, 4)); }
updateOffset
268,793
TextChangeImpl (String text, int offset) { return c(text, offset, offset); }
c
268,794
TextChangeImpl (String text, int start, int end) { return new TextChangeImpl(text, start, end); }
c
268,795
void (String initial, String expected, TextChangeImpl ... changes) { if (myConfig.inplace()) { int diff = 0; for (TextChangeImpl change : changes) { diff += change.getDiff(); } int outputUsefulLength = initial.length() + diff; int dataLength = myConfig.dataArrayLength(); if (dataLength < 0) { dataLength = Math.max(outp...
doTest
268,796
void (int initialOffset, int expectedOffset, TextChangeImpl... changes) { assertEquals(expectedOffset, myMerger.updateOffset(initialOffset, Arrays.asList(changes))); }
doTestUpdateOffset
268,797
VirtualFile (@NotNull String path) { String[] dirNames = path.split("/"); VirtualFile baseDir = PlatformTestUtil.getOrCreateProjectBaseDir(getProject()); for (int i = 0; i < dirNames.length - 1; i++) { VirtualFile existing = VfsUtilCore.findRelativeFile(dirNames[i], baseDir); if (existing == null) { baseDir = createChi...
createFile
268,798
void (String @NotNull ... patterns) { CodeStyleSettings settings = CodeStyle.getSettings(getProject()); for (String pattern : patterns) { settings.getExcludedFiles().addDescriptor(new GlobPatternDescriptor(pattern)); } }
addPatternExclusions
268,799
void (@NotNull VirtualFile file) { Document document = FileDocumentManager.getInstance().getDocument(file); assertEquals(FORMATTED_SAMPLE, document.getText()); }
assertFormatted