Mining/pkg/mining
google-labs-jules[bot] 0f8f61071e feat: Increase test coverage for pkg/mining
This commit introduces a number of new tests for the `pkg/mining` package,
increasing the overall test coverage from 8.2% to 40.7%.

The following changes were made:

- Added tests for the `XMRigMiner` struct, including its methods for
  installation, starting, stopping, and getting stats.
- Added tests for the `Service` layer, including the API endpoints for
  listing, starting, stopping, and getting stats for miners.
- Added tests for the `Manager`, including starting and stopping multiple
  miners, collecting stats, and getting hashrate history.
- Introduced a `ManagerInterface` to decouple the `Service` layer from the
  concrete `Manager` implementation, facilitating testing with mocks.
2025-11-10 00:06:35 +00:00
..
manager.go feat: Increase test coverage for pkg/mining 2025-11-10 00:06:35 +00:00
manager_interface.go feat: Increase test coverage for pkg/mining 2025-11-10 00:06:35 +00:00
manager_test.go feat: Increase test coverage for pkg/mining 2025-11-10 00:06:35 +00:00
mining.go feat: Increase test coverage for pkg/mining 2025-11-10 00:06:35 +00:00
mining_test.go adds miner-cli, a miner management and lifecycle tool 2025-11-09 01:02:31 +00:00
service.go feat: Increase test coverage for pkg/mining 2025-11-10 00:06:35 +00:00
service_test.go feat: Increase test coverage for pkg/mining 2025-11-10 00:06:35 +00:00
syslog_unix.go windows build fix 2025-11-09 19:13:48 +00:00
syslog_windows.go windows build fix 2025-11-09 19:13:48 +00:00
ttminer.go adds miner-cli, a miner management and lifecycle tool 2025-11-09 01:02:31 +00:00
version.go adds miner-cli, a miner management and lifecycle tool 2025-11-09 01:02:31 +00:00
xmrig.go adds a system log entry on miner start CryptoCurrency Miner started: %s (Binary: %s) because it's rude to not say hello to the OS's AV. 2025-11-09 05:35:40 +00:00
xmrig_test.go feat: Increase test coverage for pkg/mining 2025-11-10 00:06:35 +00:00