mirror of
https://github.com/starship/starship.git
synced 2026-06-22 02:02:12 +07:00
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:
@@ -94,6 +94,7 @@ shadow-rs = "0.6.2"
|
||||
|
||||
[dev-dependencies]
|
||||
tempfile = "3.2.0"
|
||||
mockall = "0.9"
|
||||
|
||||
[profile.release]
|
||||
codegen-units = 1
|
||||
|
||||
Reference in New Issue
Block a user