• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Camelcade / Perl5-IDEA / #525521770

03 Mar 2026 03:30PM UTC coverage: 75.982% (+0.01%) from 75.972%
#525521770

push

github

hurricup
[qodana] Hardcoded literal

14770 of 22632 branches covered (65.26%)

Branch coverage included in aggregate %.

3 of 3 new or added lines in 1 file covered. (100.0%)

13 existing lines in 6 files now uncovered.

31095 of 37731 relevant lines covered (82.41%)

0.82 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

46.67
/plugin/backend/src/main/java/com/perl5/lang/perl/idea/execution/PerlTerminalExecutionConsole.java
1
/*
2
 * Copyright 2015-2026 Alexandr Evstigneev
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 * http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16

17
package com.perl5.lang.perl.idea.execution;
18

19
import com.intellij.execution.impl.ConsoleViewImpl;
20
import com.intellij.execution.impl.ConsoleViewUtil;
21
import com.intellij.execution.ui.ConsoleView;
22
import com.intellij.openapi.application.ModalityState;
23
import com.intellij.openapi.application.ReadAction;
24
import com.intellij.openapi.project.Project;
25
import com.intellij.psi.search.GlobalSearchScope;
26
import com.intellij.terminal.TerminalExecutionConsole;
27
import com.intellij.util.concurrency.AppExecutorUtil;
28
import com.perl5.lang.perl.idea.sdk.host.PerlConsoleView;
29
import com.perl5.lang.perl.idea.sdk.host.PerlHostData;
30
import org.jetbrains.annotations.NotNull;
31
import org.jetbrains.annotations.Nullable;
32

33
public class PerlTerminalExecutionConsole extends TerminalExecutionConsole implements PerlConsoleView {
34
  private @Nullable PerlHostData<?, ?> myHostData;
35

36
  public PerlTerminalExecutionConsole(@NotNull Project project) {
37
    //noinspection deprecation
38
    super(project, null);
×
39
    updatePredefinedFiltersLater(project, this);
×
UNCOV
40
  }
×
41

42
  @Override
43
  public @Nullable PerlHostData<?, ?> getHostData() {
UNCOV
44
    return myHostData;
×
45
  }
46

47
  @Override
48
  public @NotNull PerlTerminalExecutionConsole withHostData(@Nullable PerlHostData<?, ?> hostData) {
49
    myHostData = hostData;
×
UNCOV
50
    return this;
×
51
  }
52

53
  /**
54
   * Copy-paste of {@link ConsoleViewImpl#updatePredefinedFiltersLater()}
55
   */
56
  public static void updatePredefinedFiltersLater(@NotNull Project project, @NotNull ConsoleView consoleView) {
57
    ReadAction
1✔
58
      .nonBlocking(() -> ConsoleViewUtil.computeConsoleFilters(project, consoleView, GlobalSearchScope.allScope(project)))
1✔
59
      .expireWith(consoleView)
1✔
60
      .finishOnUiThread(
1✔
61
        ModalityState.stateForComponent(consoleView.getComponent()), filters -> filters.forEach(consoleView::addMessageFilter)
1✔
62
      ).submit(AppExecutorUtil.getAppExecutorService());
1✔
63
  }
1✔
64
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc