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

Camelcade / Perl5-IDEA / #525521819

12 Apr 2026 11:03AM UTC coverage: 76.189% (+0.1%) from 76.061%
#525521819

push

github

hurricup
[qodana] Suppressed a warning on the api method

14764 of 22542 branches covered (65.5%)

Branch coverage included in aggregate %.

31091 of 37644 relevant lines covered (82.59%)

0.83 hits per line

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

53.85
/plugin/backend/src/main/java/com/perl5/lang/perl/idea/sdk/host/os/PerlOsHandler.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.sdk.host.os;
18

19
import com.intellij.openapi.projectRoots.Sdk;
20
import com.perl5.lang.perl.idea.sdk.host.PerlHostData;
21
import org.jetbrains.annotations.NotNull;
22
import org.jetbrains.annotations.Nullable;
23

24
import javax.swing.*;
25

26
public abstract class PerlOsHandler {
27
  private final @NotNull String myName;
28

29
  private final @Nullable Icon myIcon;
30

31
  public PerlOsHandler(@NotNull String name) {
32
    this(name, null);
×
33
  }
×
34

35
  public PerlOsHandler(@NotNull String name, @Nullable Icon icon) {
1✔
36
    myName = name;
1✔
37
    myIcon = icon;
1✔
38
  }
1✔
39

40
  public abstract @NotNull String getPerlExecutableName();
41

42
  /**
43
   * @return operation system presentable name
44
   */
45
  @SuppressWarnings("unused")
46
  public final @NotNull String getPresentableName() {
47
    return myName;
×
48
  }
49

50
  /**
51
   * @return true iff os is MS windows family
52
   */
53
  public abstract boolean isMsWindows();
54

55

56
  public final @Nullable Icon getIcon() {
57
    return myIcon;
1✔
58
  }
59

60
  /**
61
   * @return file extension used for compiled xs extensions.
62
   */
63
  public abstract @NotNull String getXSBinaryExtension();
64

65
  public static @NotNull PerlOsHandler notNullFrom(@NotNull Sdk sdk) {
66
    return PerlHostData.notNullFrom(sdk).getOsHandler();
1!
67
  }
68
}
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