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

Alan-Jowett / sonde / 24481506122
82%

Build:
DEFAULT BRANCH: main
Ran 15 Apr 2026 10:26PM UTC
Jobs 1
Files 112
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

15 Apr 2026 10:23PM UTC coverage: 80.474%. First build
24481506122

push

github

web-flow
test(modem): add BLE pairing state machine unit tests (#725)

* test(modem): add BLE pairing state machine unit tests

Add 6 bridge-level tests exercising realistic BLE pairing event
sequences via MockBle event injection:

- `ble_pairing_accept_full_flow` — MD-0416 AC1: PairingConfirm →
  operator accept → Connected forwarded
- `ble_pairing_reject_full_flow` — MD-0416 AC4: PairingConfirm →
  operator reject → Disconnected, no Connected ever sent
- `ble_pre_auth_gatt_write_buffered` — MD-0409 AC5: Recv emitted
  before Connected (buffered write flush order)
- `ble_pairing_timeout_disconnects` — MD-0414 AC4 / T-0622:
  PairingConfirm → no reply → Disconnected, no auto-reply
- `ble_idle_timeout_disconnects` — MD-0415: idle polls → Disconnected
- `ble_deferred_connected_with_buffered_write` — MD-0416 AC1+AC2
  combined: full flow with buffered GATT write and deferred Connected

Closes #693

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* test(modem): address review — stricter assertions and doc accuracy

- Use exact `assert_eq!` for `check_pairing_timeout_count` (not `>=`)
- Assert 2-frame decodes consume the entire TX buffer (no extra msgs)
- Clarify doc comments: bridge tests verify event forwarding/ordering,
  not ble.rs internal deferral/buffering behavior

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* style(modem): fix rustfmt formatting in BLE pairing tests

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* test(modem): assert full TX buffer consumption and clarify doc comments

- Assert `consumed == tx.len()` on all single-frame decodes to catch
  unexpected extra messages
- Rename timeout/idle tests to reflect what bridge-level tests actually
  validate (event forwarding, not timing behavior)
- Fix missing closing ... (continued)

182 of 193 new or added lines in 1 file covered. (94.3%)

23727 of 29484 relevant lines covered (80.47%)

185.09 hits per line

Uncovered Changes

Lines Coverage ∆ File
11
92.01
crates/sonde-modem/src/bridge.rs
Jobs
ID Job ID Ran Files Coverage
1 24481506122.1 15 Apr 2026 10:26PM UTC 112
80.47
GitHub Action Run
Source Files on build 24481506122
  • Tree
  • List 112
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24481506122
  • 7d5d86dd on github
  • Prev Build on main (#24475905346)
  • Next Build on main (#24483890787)
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