• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Alan-Jowett / sonde / 23449318902
82%

Build:
DEFAULT BRANCH: main
Ran 23 Mar 2026 05:12PM UTC
Jobs 1
Files 73
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Mar 2026 04:52PM UTC coverage: 84.332% (+0.4%) from 83.943%
23449318902

push

github

web-flow
Add pairing tool reliability and error recovery tests (8 gaps) (#421)

* Add pairing tool reliability and error recovery tests (8 gaps)

Close all 8 validation gaps from issue #341:

1. PT-1003 — No implicit retries: tests verify exactly one GATT
   write/read attempt per operation (Phase 1 and Phase 2).

2. PT-1000 — Transient failure tolerance: Phase 2 mid-provision
   disconnect test (`ConnectionDropped` during `NODE_ACK` read),
   plus retry-after-failure verification.

3. PT-1002 — Connection timeout exercised: inject `Timeout` error
   from `connect()` in both Phase 1 and Phase 2.

4. PT-0502 — BLE disconnect on error paths: assert
   `transport.connected == false` and `disconnect_count > 0`
   after Phase 1 and Phase 2 failures.

5. PT-1001 — Resource leaks: 10 Phase 1 and 8 Phase 2 consecutive
   failure scenarios with post-failure connection state assertion.

6. PT-0801 — Platform secure storage: DPAPI round-trip, tamper
   detection, and distinct-key tests (`#[cfg(windows)]`).

7. PT-1004 — Reusable core: compile-time test exercising core types,
   store, transport, envelope, crypto, and validation without any
   platform feature flags.

8. PT-1100/PT-1200–PT-1206 — Traceability: add PT-1000–PT-1004 and
   PT-1100 to the meta-requirement traceability table; add T-PT-1004
   to Appendix A.

MockBleTransport gains `connect_error`, `write_error`, and
`disconnect_count` fields for error injection and resource-leak
verification.

Closes #341

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix: record write attempts on error, add read_call_count, update test IDs

- MockBleTransport: record writes before checking write_error so tests
  can assert exact attempt counts even on injected failures
- MockBleTransport: add read_call_count field to track read_indication
  calls for no-retry verification
- Phase 1 / Phase 2 PT-1003 tests: assert write attempt count and
  read_call_count to detect implicit retries
- DPAPI tests: reas... (continued)

508 of 510 new or added lines in 4 files covered. (99.61%)

18402 of 21821 relevant lines covered (84.33%)

48.44 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
94.45
1.76% crates/sonde-pair/src/phase1.rs
1
96.24
3.31% crates/sonde-pair/src/phase2.rs
Jobs
ID Job ID Ran Files Coverage
1 23449318902.1 23 Mar 2026 05:12PM UTC 73
84.33
GitHub Action Run
Source Files on build 23449318902
  • Tree
  • List 73
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23449318902
  • d54ac74e on github
  • Prev Build on main (#23421479676)
  • Next Build on main (#23451882979)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc