test(battery): add battery tests (#2795)

Add some tests to the battery module, make it testable by mocking out the code that fetches battery info.
This commit is contained in:
Andrew Houts
2021-06-29 18:46:41 -05:00
committed by GitHub
parent 72e5a544fc
commit 53a30046d1
6 changed files with 423 additions and 41 deletions
+1
View File
@@ -94,6 +94,7 @@ shadow-rs = "0.6.2"
[dev-dependencies]
tempfile = "3.2.0"
mockall = "0.9"
[profile.release]
codegen-units = 1