MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / isUsingBatteryLinux

Function isUsingBatteryLinux

lib/models/hardware-info.js:61–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59}
60
61function isUsingBatteryLinux() {
62 const sysClassPowerSupply = isUsingBatterySysClassPowerSupply();
63
64 if (sysClassPowerSupply !== null) {
65 return sysClassPowerSupply;
66 }
67
68 const acpi = isUsingBatteryAcpi();
69
70 if (acpi !== null) {
71 return acpi;
72 }
73
74 return isUsingBatteryUpower();
75}
76
77function isUsingBatterySysClassPowerSupply() {
78 try {

Callers 1

isUsingBatteryFunction · 0.85

Calls 3

isUsingBatteryAcpiFunction · 0.85
isUsingBatteryUpowerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…