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

Camelcade / Perl5-IDEA / #525521839

30 Apr 2026 02:10PM UTC coverage: 76.215% (+0.06%) from 76.16%
#525521839

push

github

hurricup
Testing plugin 2.16.1-SNAPSHOT

14764 of 22542 branches covered (65.5%)

Branch coverage included in aggregate %.

31105 of 37642 relevant lines covered (82.63%)

0.83 hits per line

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

63.64
/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, @Nullable Icon icon) {
1✔
32
    myName = name;
1✔
33
    myIcon = icon;
1✔
34
  }
1✔
35

36
  public abstract @NotNull String getPerlExecutableName();
37

38
  /**
39
   * @return operation system presentable name
40
   */
41
  @SuppressWarnings("unused")
42
  public final @NotNull String getPresentableName() {
43
    return myName;
×
44
  }
45

46
  /**
47
   * @return true iff os is MS windows family
48
   */
49
  public abstract boolean isMsWindows();
50

51

52
  public final @Nullable Icon getIcon() {
53
    return myIcon;
1✔
54
  }
55

56
  /**
57
   * @return file extension used for compiled xs extensions.
58
   */
59
  public abstract @NotNull String getXSBinaryExtension();
60

61
  public static @NotNull PerlOsHandler notNullFrom(@NotNull Sdk sdk) {
62
    return PerlHostData.notNullFrom(sdk).getOsHandler();
1!
63
  }
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