Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
59,100 | void (@NotNull ProcessEvent event) { if (testsRootNode.isInProgress()) { ApplicationManager.getApplication().invokeLater(() -> { if (event.getExitCode() == 1) { testsRootNode.setTestFailed("", null, false); } else { testsRootNode.setFinished(); } resultsViewer.onBeforeTestingFinished(testsRootNode); resultsViewer.onTes... | processTerminated |
59,101 | void (@NotNull Object buildId, @NotNull BuildEvent event) { if (buildId != task.getId()) return; if (event instanceof FinishBuildEvent) { Disposer.dispose(disposable); } else if (event instanceof StartBuildEvent) { // override start build event to use different execution console, toolbar actions etc. BuildDescriptor bu... | onEvent |
59,102 | void (@NotNull BuildEvent event, @NotNull Project project, @NotNull SMTestProxy.SMRootTestProxy testsRootNode) { // open Build tw for file error, as it usually comes from compilation if ((event instanceof FileMessageEvent) && ((FileMessageEvent)event).getKind() == MessageEvent.Kind.ERROR) { openBuildToolWindow(project)... | maybeOpenBuildToolWindow |
59,103 | void (@NotNull Project project) { ApplicationManager.getApplication().invokeLater(() -> { ToolWindow toolWindow = BuildContentManager.getInstance(project).getOrCreateToolWindow(); if (toolWindow.isAvailable() && !toolWindow.isVisible()) { toolWindow.show(null); } }, ModalityState.nonModal(), project.getDisposed()); } | openBuildToolWindow |
59,104 | void (@NotNull GradleTestsExecutionConsole executionConsole, @NotNull ProcessHandler processHandler, @NotNull String text, @NotNull Key processOutputType) { GradleTestsExecutionConsoleOutputProcessor.onOutput(executionConsole, text, processOutputType); } | onOutput |
59,105 | void (@NotNull GradleTestsExecutionConsole executionConsole, @NotNull ExternalSystemTaskNotificationEvent event) { if (event instanceof ExternalSystemTaskExecutionEvent) { ExternalSystemProgressEvent progressEvent = ((ExternalSystemTaskExecutionEvent)event).getProgressEvent(); OperationDescriptor descriptor = progressE... | onStatusChange |
59,106 | boolean (@NotNull ExternalSystemTask task) { if (task instanceof ExternalSystemExecuteTaskTask taskTask) { if (StringUtil.equals(taskTask.getExternalSystemId().getId(), GradleConstants.SYSTEM_ID.getId())) { var isRunAsTest = taskTask.getUserData(GradleRunConfiguration.RUN_AS_TEST_KEY); if (ObjectUtils.chooseNotNull(isR... | isApplicableFor |
59,107 | boolean (@NotNull ExternalSystemExecuteTaskTask taskTask) { var project = taskTask.getIdeProject(); var modulePath = taskTask.getExternalProjectPath(); var commandLine = GradleCommandLineUtil.parseCommandLine(taskTask.getTasksToExecute(), taskTask.getArguments()); var indices = GradleTasksIndices.getInstance(project); ... | hasTestTasks |
59,108 | AnAction[] (@NotNull final GradleTestsExecutionConsole consoleView) { JavaRerunFailedTestsAction rerunFailedTestsAction = new GradleRerunFailedTestsAction(consoleView); rerunFailedTestsAction.setModelProvider(() -> consoleView.getResultsViewer()); return new AnAction[]{rerunFailedTestsAction, new JvmToggleAutoTestActio... | getRestartActions |
59,109 | ToggleModelAction (TestConsoleProperties properties) { return new MyToggleModelAction(properties); } | createToggleModelAction |
59,110 | void (TestFrameworkRunningModel model) { final RunProfile runConfiguration = model.getProperties().getConfiguration(); if(runConfiguration instanceof ExternalSystemRunConfiguration) { mySystemId = ((ExternalSystemRunConfiguration)runConfiguration).getSettings().getExternalSystemId(); } } | setModel |
59,111 | void (@NotNull AnActionEvent e, boolean state) { final String reportFilePath = getReportFilePath(); if (reportFilePath != null) { BrowserUtil.browse(reportFilePath); } } | setSelected |
59,112 | boolean () { final String reportFilePath = getReportFilePath(); return reportFilePath != null; } | isEnabled |
59,113 | boolean () { return GradleConstants.SYSTEM_ID.equals(mySystemId); } | isVisible |
59,114 | String () { final AbstractProperty.AbstractPropertyContainer properties = getProperties(); if (properties instanceof GradleConsoleProperties gradleConsoleProperties) { final File testReport = gradleConsoleProperties.getGradleTestReport(); if (testReport != null && testReport.isFile()) return testReport.getPath(); } ret... | getReportFilePath |
59,115 | String () { return myParentId; } | getParentId |
59,116 | void (@Nullable String parentId) { myParentId = parentId; } | setParentId |
59,117 | TestEventResult () { return myLastResult; } | getLastResult |
59,118 | void (@Nullable TestEventResult lastResult) { myLastResult = lastResult; } | setLastResult |
59,119 | boolean (@NotNull ConfigurationFromContext self, @NotNull ConfigurationFromContext other) { return !other.isProducedBy(PatternGradleConfigurationProducer.class) && !other.isProducedBy(TestMethodGradleConfigurationProducer.class) && super.isPreferredConfiguration(self, other); } | isPreferredConfiguration |
59,120 | boolean (@NotNull ConfigurationFromContext self, @NotNull ConfigurationFromContext other) { return !other.isProducedBy(PatternGradleConfigurationProducer.class) && !other.isProducedBy(TestMethodGradleConfigurationProducer.class) && super.shouldReplace(self, other); } | shouldReplace |
59,121 | String (@NotNull ConfigurationContext context, @NotNull PsiClass element) { return Objects.requireNonNull(element.getName()); } | getLocationName |
59,122 | String ( @NotNull ConfigurationContext context, @NotNull PsiClass element, @NotNull List<? extends PsiClass> chosenElements ) { List<? extends PsiClass> elements = chosenElements.isEmpty() ? List.of(element) : chosenElements; return StringUtil.join(elements, aClass -> aClass.getName(), "|"); } | suggestConfigurationName |
59,123 | void ( @NotNull ConfigurationContext context, @NotNull PsiClass element, @NotNull Consumer<List<PsiClass>> onElementsChosen ) { InheritorChooser.chooseAbstractClassInheritors(context, element, onElementsChosen); } | chooseSourceElements |
59,124 | List<TestTasksToRun> ( @NotNull ConfigurationContext context, @NotNull PsiClass element, @NotNull List<? extends PsiClass> chosenElements ) { Project project = Objects.requireNonNull(context.getProject()); VirtualFile source = Objects.requireNonNull(element.getContainingFile().getVirtualFile()); List<? extends PsiClass... | getAllTestsTaskToRun |
59,125 | boolean (@NotNull ConfigurationContext context) { var location = context.getLocation(); return location != null && getMethodLocation(location) != null; } | pointsToMethod |
59,126 | boolean (@NotNull GradleRunConfiguration configuration, @NotNull ConfigurationContext context, @NotNull Ref<PsiElement> sourceElement) { if (pointsToMethod(context)) return false; return super.doSetupConfigurationFromContext(configuration, context, sourceElement); } | doSetupConfigurationFromContext |
59,127 | boolean (@NotNull GradleRunConfiguration configuration, @NotNull ConfigurationContext context) { if (pointsToMethod(context)) return false; return super.doIsConfigurationFromContext(configuration, context); } | doIsConfigurationFromContext |
59,128 | SMTRunnerEventsListener () { return myEventPublisher; } | getEventPublisher |
59,129 | GradleFileComparisonEventPatcher () { return myComparisonEventPatcher; } | getFileComparisonEventPatcher |
59,130 | StringBuilder () { return myBuffer; } | getBuffer |
59,131 | void () { testsMap.clear(); super.dispose(); } | dispose |
59,132 | SMTestLocator () { return GradleConsoleProperties.GRADLE_TEST_LOCATOR; } | getUrlProvider |
59,133 | boolean () { return true; } | isExecutionViewHidden |
59,134 | void (@NotNull String s, @NotNull ConsoleViewContentType contentType) { if (detectUnwantedEmptyLine(s)) return; super.print(s, contentType); if (myBuildViewManager != null && myTaskId != null) { OutputBuildEventImpl outputBuildEvent = new OutputBuildEventImpl(myTaskId, s, contentType != ConsoleViewContentType.ERROR_OUT... | print |
59,135 | boolean (@NotNull String s) { if (Platform.current().lineSeparator.equals(s)) { if (lastMessageWasEmptyLine) return true; lastMessageWasEmptyLine = true; } else { lastMessageWasEmptyLine = false; } return false; } | detectUnwantedEmptyLine |
59,136 | boolean (@NotNull ConfigurationFromContext self, @NotNull ConfigurationFromContext other) { return !other.isProducedBy(AllInPackageGradleConfigurationProducer.class) && super.isPreferredConfiguration(self, other); } | isPreferredConfiguration |
59,137 | boolean (@NotNull ConfigurationFromContext self, @NotNull ConfigurationFromContext other) { return !other.isProducedBy(AllInPackageGradleConfigurationProducer.class) && super.shouldReplace(self, other); } | shouldReplace |
59,138 | String (@NotNull ConfigurationContext context, @NotNull PsiElement element) { Module module = Objects.requireNonNull(context.getModule()); return String.format("'%s'", module.getName()); } | getLocationName |
59,139 | String ( @NotNull ConfigurationContext context, @NotNull PsiElement element, @NotNull List<? extends PsiElement> chosenElements ) { Module module = Objects.requireNonNull(context.getModule()); return ExecutionBundle.message("test.in.scope.presentable.text", module.getName()); } | suggestConfigurationName |
59,140 | void ( @NotNull ConfigurationContext context, @NotNull PsiElement element, @NotNull Consumer<List<PsiElement>> onElementsChosen ) { onElementsChosen.accept(Collections.emptyList()); } | chooseSourceElements |
59,141 | List<TestTasksToRun> ( @NotNull ConfigurationContext context, @NotNull PsiElement element, @NotNull List<? extends PsiElement> chosenElements ) { Project project = Objects.requireNonNull(context.getProject()); Module module = Objects.requireNonNull(context.getModule()); VirtualFile directory = ((PsiFileSystemItem)eleme... | getAllTestsTaskToRun |
59,142 | List<VirtualFile> (@NotNull Module module, @NotNull VirtualFile directory) { DataNode<ModuleData> moduleDataNode = GradleUtil.findGradleModuleData(module); if (moduleDataNode == null) return Collections.emptyList(); String rootPath = directory.getPath(); return ExternalSystemApiUtil.findAll(moduleDataNode, ProjectKeys.... | findTestSourcesUnderDirectory |
59,143 | boolean (@NotNull ConfigurationFromContext self, @NotNull ConfigurationFromContext other) { return other.isProducedBy(AllInDirectoryGradleConfigurationProducer.class) || super.isPreferredConfiguration(self, other); } | isPreferredConfiguration |
59,144 | boolean (@NotNull ConfigurationFromContext self, @NotNull ConfigurationFromContext other) { return other.isProducedBy(AllInDirectoryGradleConfigurationProducer.class) || super.shouldReplace(self, other); } | shouldReplace |
59,145 | String (@NotNull ConfigurationContext context, @NotNull PsiPackage element) { return String.format("'%s'", element.getName()); } | getLocationName |
59,146 | String ( @NotNull ConfigurationContext context, @NotNull PsiPackage element, @NotNull List<? extends PsiPackage> chosenElements ) { return ExecutionBundle.message("test.in.scope.presentable.text", element.getQualifiedName()); } | suggestConfigurationName |
59,147 | void ( @NotNull ConfigurationContext context, @NotNull PsiPackage element, @NotNull Consumer<List<PsiPackage>> onElementsChosen ) { onElementsChosen.accept(Collections.emptyList()); } | chooseSourceElements |
59,148 | List<TestTasksToRun> ( @NotNull ConfigurationContext context, @NotNull PsiPackage element, @NotNull List<? extends PsiPackage> chosenElements ) { Project project = Objects.requireNonNull(context.getProject()); Module module = Objects.requireNonNull(context.getModule()); PsiElement psiLocation = Objects.requireNonNull(c... | getAllTestsTaskToRun |
59,149 | PsiElement (@NotNull Module module, @NotNull PsiElement element) { if (element instanceof PsiFileSystemItem) { return element; } PsiFile containingFile = element.getContainingFile(); if (containingFile != null) { return element; } if (element instanceof PsiPackage) { return getPackageDirectory(module, (PsiPackage)eleme... | getSourceElement |
59,150 | PsiDirectory (@NotNull Module module, @NotNull PsiPackage element) { PsiDirectory[] sourceDirs = element.getDirectories(GlobalSearchScope.moduleScope(module)); if (sourceDirs.length == 0) return null; return sourceDirs[0]; } | getPackageDirectory |
59,151 | PsiPackage (@NotNull PsiElement location) { PsiPackage psiPackage = AbstractJavaTestConfigurationProducer.checkPackage(location); if (psiPackage == null) return null; if (psiPackage.getQualifiedName().isEmpty()) return null; return psiPackage; } | extractPackage |
59,152 | void ( @NotNull GradleTestsExecutionConsole console, @NotNull ExternalSystemProgressEvent<? extends TestOperationDescriptor> event ) { var eventProcessor = createEventProcessor(console, event); if (eventProcessor != null) { eventProcessor.process(event); } } | onStatusChange |
59,153 | boolean () { return true; } | isSuite |
59,154 | void (@NotNull ExternalSystemProgressEvent<? extends TestOperationDescriptor> testEvent) { var testDescriptor = testEvent.getDescriptor(); var testId = testEvent.getEventId(); var parentTestId = testEvent.getParentEventId(); var suiteName = StringUtil.notNullize(testDescriptor.getSuiteName()); var fqClassName = StringU... | process |
59,155 | void ( @NotNull String testId, @Nullable String parentTestId, @NotNull String suiteName, @NotNull String fqClassName, @NotNull String displayName ) { var isCombineSameTests = !showInternalTestNodes(); if (isCombineSameTests && isHiddenTestNode(suiteName)) { var parentTestProxy = findParentTestProxy(parentTestId); regis... | doProcess |
59,156 | boolean (@Nullable String suiteName) { return suiteName == null || suiteName.startsWith("Gradle Test Executor") || suiteName.startsWith("Gradle Test Run"); } | isHiddenTestNode |
59,157 | void (@NotNull ExternalSystemProgressEvent<? extends TestOperationDescriptor> testEvent) { var event = (ExternalSystemFinishEvent<? extends TestOperationDescriptor>)testEvent; process(event, false); } | process |
59,158 | void (@NotNull ExternalSystemFinishEvent<? extends TestOperationDescriptor> event, boolean isXml) { var patcher = getExecutionConsole().getFileComparisonEventPatcher(); var patchedEvent = patcher.patchTestFinishEvent(event, isXml); if (patchedEvent == null) { LOG.info("Skipped event because it is incomplete: " + event)... | process |
59,159 | void (@NotNull ExternalSystemFinishEvent<? extends TestOperationDescriptor> event) { var testId = event.getEventId(); var testResult = event.getOperationResult(); var startTime = testResult.getStartTime(); var endTime = testResult.getEndTime(); var testProxy = findTestProxy(testId); if (testProxy == null) { LOG.error("... | process |
59,160 | void (@NotNull SMTestProxy testProxy, @NotNull Failure failure) { if (failure instanceof TestFailure testFailure) { processTestFailureResult(testProxy, testFailure); } else { LOG.warn("Undefined test failure type: " + failure.getClass().getName()); var message = ObjectUtils.doIfNotNull(failure, it -> it.getMessage()); ... | processFailureResult |
59,161 | void (@NotNull SMTestProxy testProxy, @NotNull TestFailure failure) { var message = ObjectUtils.doIfNotNull(failure, it -> it.getMessage()); var stackTrace = failure.getStackTrace(); var comparisonResult = ObjectUtils.doIfNotNull(message, it -> AssertionParser.parse(it)); if (failure instanceof TestAssertionFailure ass... | processTestFailureResult |
59,162 | void (@NotNull GradleTestsExecutionConsole executionConsole, @NotNull String text, @NotNull Key<?> processOutputType) { var eventMessage = getEventMessage(executionConsole, text, processOutputType); if (eventMessage == null) return; try { var xml = new TestEventXPPXmlView(eventMessage); var eventType = TestEventType.fr... | onOutput |
59,163 | String (@NotNull GradleTestsExecutionConsole executionConsole, @NotNull String text, @NotNull Key<?> processOutputType) { String eventMessage = null; final StringBuilder consoleBuffer = executionConsole.getBuffer(); String trimmedText = text.trim(); if (StringUtil.endsWith(trimmedText, LOG_EOL)) { consoleBuffer.append(... | getEventMessage |
59,164 | String () { return myTestEventType == null ? "" : myTestEventType; } | getTestEventType |
59,165 | String () { return myTestName == null ? "" : myTestName; } | getTestName |
59,166 | String () { return Strings.isEmpty(myTestDisplayName) ? getTestName() : myTestDisplayName; } | getTestDisplayName |
59,167 | String () { return myTestParentId == null ? "" : myTestParentId; } | getTestParentId |
59,168 | String () { return myTestId == null ? "" : myTestId; } | getTestId |
59,169 | String () { return myTestClassName == null ? "" : myTestClassName; } | getTestClassName |
59,170 | String () { return myTestEventResultType == null ? "" : myTestEventResultType; } | getTestEventResultType |
59,171 | String () { return myEventTitle == null ? "" : myEventTitle; } | getEventTitle |
59,172 | boolean () { return Boolean.parseBoolean(myEventOpenSettings == null ? "" : myEventOpenSettings); } | isEventOpenSettings |
59,173 | String () { return myEventMessage == null ? "" : myEventMessage; } | getEventMessage |
59,174 | String () { return myTestEventTest == null ? "" : myTestEventTest; } | getTestEventTest |
59,175 | String () { return myTestEventTestDescription == null ? "" : myTestEventTestDescription; } | getTestEventTestDescription |
59,176 | String () { return myEventTestReport == null ? "" : myEventTestReport; } | getEventTestReport |
59,177 | String () { return myEventTestResultActionFilePath == null ? "" : myEventTestResultActionFilePath; } | getEventTestResultActualFilePath |
59,178 | String () { return myEventTestResultFilePath == null ? "" : myEventTestResultFilePath; } | getEventTestResultFilePath |
59,179 | String () { return myEventTestResultExpected == null ? "" : myEventTestResultExpected; } | getEventTestResultExpected |
59,180 | String () { return myEventTestResultActual == null ? "" : myEventTestResultActual; } | getEventTestResultActual |
59,181 | String () { return myEventTestResultFailureType == null ? "" : myEventTestResultFailureType; } | getEventTestResultFailureType |
59,182 | String () { return myEventTestResultExceptionName == null ? "" : myEventTestResultExceptionName; } | getEventTestResultExceptionName |
59,183 | String () { return myEventTestResultStackTrace == null ? "" : myEventTestResultStackTrace; } | getEventTestResultStackTrace |
59,184 | String () { return myEventTestResultErrorMsg == null ? "" : myEventTestResultErrorMsg; } | getEventTestResultErrorMsg |
59,185 | String () { return myEventTestResultEndTime == null ? "" : myEventTestResultEndTime; } | getEventTestResultEndTime |
59,186 | String () { return myEventTestResultStartTime == null ? "" : myEventTestResultStartTime; } | getEventTestResultStartTime |
59,187 | void (@NotNull Notification notification, @NotNull HyperlinkEvent event) { notification.expire(); if ("Gradle settings".equals(event.getDescription())) { ExternalSystemManager<?, ?, ?, ?, ?> manager = ExternalSystemApiUtil.getManager(GradleConstants.SYSTEM_ID); assert manager instanceof GradleManager; GradleManager gra... | hyperlinkUpdate |
59,188 | String (@NlsSafe String configurationErrorMsg, boolean openSettings) { if (openSettings) { return new HtmlBuilder() .append(HtmlChunk.br()) .append("\n") .append(configurationErrorMsg) .append(HtmlChunk.link("Gradle settings", GradleBundle.message("gradle.open.gradle.settings"))) .toString(); } return new HtmlBuilder()... | getConfigurationErrorMessage |
59,189 | void (@NotNull ExternalSystemProgressEvent<? extends TestOperationDescriptor> testEvent) { // TODO not yet implemented } | process |
59,190 | void (@NotNull ExternalSystemProgressEvent<? extends TestOperationDescriptor> testEvent) { getExecutionConsole().getFileComparisonEventPatcher() .setBuiltInTestEventsUsed(); var testDescriptor = testEvent.getDescriptor(); var testId = testEvent.getEventId(); var parentTestId = testEvent.getParentEventId(); var suiteNam... | process |
59,191 | void ( @NotNull String testId, @Nullable String parentTestId, @NotNull String suiteName, @NotNull String fqClassName, @Nullable String methodName, @NotNull String displayName ) { var testProxy = createTestProxy(parentTestId, suiteName, fqClassName, methodName, displayName); registerTestProxy(testId, testProxy); // Befo... | doProcess |
59,192 | void (@NotNull GradleSMTestProxy testProxy) { if (testProxy.getParent() == null) { var parentId = testProxy.getParentId(); var parentNode = findParentTestProxy(parentId); parentNode.addChild(testProxy); } } | setParentIfNeeded |
59,193 | void (@NotNull GradleSMTestProxy testProxy) { if (!testProxy.isInProgress()) { if (testProxy.isSuite()) { testProxy.setStarted(); getResultsViewer().onSuiteStarted(testProxy); getExecutionConsole().getEventPublisher().onSuiteStarted(testProxy); } else { testProxy.setStarted(); getResultsViewer().onTestStarted(testProxy... | setStartedIfNeeded |
59,194 | void ( @NotNull GradleSMTestProxy node, @NotNull Consumer<GradleSMTestProxy> process ) { while (node != null) { process.accept(node); node = ObjectUtils.tryCast(node.getParent(), GradleSMTestProxy.class); } } | traverseTestNodesFromChildToParent |
59,195 | boolean () { return true; } | isSuite |
59,196 | void (@NotNull ExternalSystemProgressEvent<? extends TestOperationDescriptor> testEvent) { var finishEvent = (ExternalSystemFinishEvent<? extends TestOperationDescriptor>)testEvent; var testId = testEvent.getEventId(); var result = TestEventResult.fromOperationResult(finishEvent.getOperationResult()); doProcess(testId,... | process |
59,197 | void (String testId, TestEventResult result) { final SMTestProxy testProxy = findTestProxy(testId); if (testProxy == null) return; if (testProxy != getResultsViewer().getTestsRootNode()) { if (testProxy instanceof GradleSMTestProxy) { TestEventResult lastResult = ((GradleSMTestProxy)testProxy).getLastResult(); if (last... | doProcess |
59,198 | GradleTestsExecutionConsole () { return myExecutionConsole; } | getExecutionConsole |
59,199 | SMTestRunnerResultsForm () { return getExecutionConsole().getResultsViewer(); } | getResultsViewer |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.