Description
Expand test coverage for RTU transport to include handler execution, error paths, and edge cases.
Current Coverage
Unit tests (15 tests):
- ✓ Lifecycle (create, start, stop, double-start)
- ✓ Configuration (all serial port options)
- ✓ Basic request handler registration
Integration tests (14 tests):
- ✓ Emulator initialization with RTU
- ✓ Device management
- ✓ Configuration options
Coverage: 40.8% (below 95% threshold)
Missing Test Coverage
1. Handler Execution Tests
No tests verify actual request/response flow through handler methods.
2. Error Path Tests
- Invalid response format
- Handler rejection/error throwing
- Malformed responses
3. ServiceVector Integration
- Verify all 8 callbacks are registered
- Test callback invocation
4. Edge Cases
- Empty register reads
- Maximum register count
- Concurrent operations
Acceptance Criteria
Priority
Medium - Improves confidence and regression prevention
Related
Description
Expand test coverage for RTU transport to include handler execution, error paths, and edge cases.
Current Coverage
Unit tests (15 tests):
Integration tests (14 tests):
Coverage: 40.8% (below 95% threshold)
Missing Test Coverage
1. Handler Execution Tests
No tests verify actual request/response flow through handler methods.
2. Error Path Tests
3. ServiceVector Integration
4. Edge Cases
Acceptance Criteria
Priority
Medium - Improves confidence and regression prevention
Related