()
| 36 | } |
| 37 | |
| 38 | function isUsingBatteryBsd() { |
| 39 | const apm = isUsingBatteryApm(); |
| 40 | |
| 41 | if (apm !== null) { |
| 42 | return apm; |
| 43 | } |
| 44 | |
| 45 | return isUsingBatteryUpower(); |
| 46 | } |
| 47 | |
| 48 | function isUsingBatteryDarwin() { |
| 49 | try { |
no test coverage detected
searching dependent graphs…