Expand description
Mock device implementation for testing.
This module provides a mock device that can be used for unit testing without requiring actual BLE hardware.
The MockDevice implements the AranetDevice trait, allowing it to be
used interchangeably with real devices in generic code.
§Features
- Failure injection: Set the device to fail on specific operations
- Latency simulation: Add artificial delays to simulate slow BLE responses
- Custom behavior: Inject custom reading generators for dynamic test scenarios
Structs§
- Mock
Device - A mock Aranet device for testing.
- Mock
Device Builder - Builder for creating mock devices with custom settings.