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

devonfw / IDEasy / 25736422770

12 May 2026 01:06PM UTC coverage: 70.677% (+0.05%) from 70.624%
25736422770

Pull #1932

github

web-flow
Merge 5611c8234 into e6efbbdff
Pull Request #1932: #1844: Fix VSCode installation haning in WSL

4434 of 6924 branches covered (64.04%)

Branch coverage included in aggregate %.

11399 of 15478 relevant lines covered (73.65%)

3.12 hits per line

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

90.0
cli/src/main/java/com/devonfw/tools/ide/os/SystemInfo.java
1
package com.devonfw.tools.ide.os;
2

3
import com.devonfw.tools.ide.version.VersionIdentifier;
4

5
/**
6
 * Interface to get information about the current machine running the IDE.
7
 */
8
public interface SystemInfo {
9

10
  /**
11
   * @return the current {@link OperatingSystem}.
12
   */
13
  OperatingSystem getOs();
14

15
  /**
16
   * @return the raw name of the current {@link OperatingSystem}.
17
   */
18
  String getOsName();
19

20
  /**
21
   * @return the version of the current {@link OperatingSystem}.
22
   */
23
  VersionIdentifier getOsVersion();
24

25
  /**
26
   * @return the raw name of the current {@link SystemArchitecture}.
27
   */
28
  String getArchitectureName();
29

30
  /**
31
   * @return the current {@link SystemArchitecture}.
32
   */
33
  SystemArchitecture getArchitecture();
34

35
  /**
36
   * @return {@code true} if we are on {@link OperatingSystem#WINDOWS windows}.
37
   */
38
  default boolean isWindows() {
39

40
    return getOs() == OperatingSystem.WINDOWS;
8✔
41
  }
42

43
  /**
44
   * @return {@code true} if we are on {@link OperatingSystem#MAC mac OS}.
45
   */
46
  default boolean isMac() {
47

48
    return getOs() == OperatingSystem.MAC;
8✔
49
  }
50

51
  /**
52
   * @return {@code true} if we are on {@link OperatingSystem#LINUX linux}.
53
   */
54
  default boolean isLinux() {
55

56
    return getOs() == OperatingSystem.LINUX;
8✔
57
  }
58

59
  /**
60
   * @return {@code true} if we are running inside WSL (Windows Subsystem for Linux).
61
   */
62
  default boolean isWsl() {
63

64
    return false;
×
65
  }
66

67
}
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