agent: small refactoring and tests for battery package (#1872)

This commit is contained in:
henrygd
2026-04-02 20:56:30 -04:00
committed by hank
parent d656036d3b
commit 6b5e6ffa9a
5 changed files with 250 additions and 38 deletions

View File

@@ -1,4 +1,4 @@
// Package battery provides functions to check if the system has a battery and to get the battery stats.
// Package battery provides functions to check if the system has a battery and return the charge state and percentage.
package battery
const (