Commit a6e321b
test(connection): add missing DeriveOverall edge-case coverage
Add 6 new [InlineData] entries to the existing DeriveOverall_ReturnsCorrectState
theory in ConnectionStateMachineTests.cs that were not previously covered:
- Connected + Error/PairingRejected/RateLimited + nodeEnabled=false → Ready
(node errors are suppressed when node mode is disabled; was only tested for
nodeEnabled=true)
- Connected + Connecting + nodeEnabled=false → Ready
(node-connecting state is ignored when node is disabled)
- Connected + Idle + nodeEnabled=true → Connected
(fallthrough case: operator is connected, node not yet started — real startup
state, reached the last "if (op == Connected) return Connected" branch)
- Connected + PairingRequired + nodeEnabled=false → PairingRequired
(node pairing requirement surfaces regardless of nodeEnabled)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent f52b829 commit a6e321b
1 file changed
Lines changed: 10 additions & 0 deletions
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
371 | 381 | | |
372 | 382 | | |
373 | 383 | | |
| |||
0 commit comments