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

lexus2k / tinyproto / 23957724679
90%

Build:
DEFAULT BRANCH: master
Ran 03 Apr 2026 06:42PM UTC
Jobs 1
Files 17
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

03 Apr 2026 06:40PM UTC coverage: 93.761% (+0.1%) from 93.654%
23957724679

push

github

lexus2k
Implement SREJ (Selective Reject) S-frame support

SREJ allows a receiver to request retransmission of a single specific
frame, unlike REJ which retransmits all frames from N(R) onward.
This is more efficient when only one frame is lost in a window.

Implementation:
- Added HDLC_S_FRAME_TYPE_SREJ (0x0C) constant
- Added TINY_FD_FRAME_SUBTYPE_SREJ to public enum
- RX handler: on SREJ receipt, confirms frames up to N(R) and
  sets srej_req_mask bit for the requested frame number
- TX path: checks srej_req_mask before normal next_ns dispatch,
  retransmits only the specific frame without advancing next_ns
- Uses uint8_t bitmask (perfect for modulo-8 sequence numbers)
- Mask cleared on connect, disconnect, and RSET
- Updated logger to display SREJ subtype

Tests:
- ABM_SREJRetransmitsSingleFrame: basic SREJ retransmit
- ABM_SREJRetransmitsOnlyRequestedFrame: verifies only one frame sent
- ABM_SREJForSecondFrame: SREJ with N(R)=1 and implicit ack
- ABM_REJRetransmitsAllFromNR: contrast test showing REJ sends all
- All 72 tests pass

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

20 of 20 new or added lines in 2 files covered. (100.0%)

1112 of 1186 relevant lines covered (93.76%)

9580.98 hits per line

Jobs
ID Job ID Ran Files Coverage
1 23957724679.1 03 Apr 2026 06:42PM UTC 17
93.76
GitHub Action Run
Source Files on build 23957724679
  • Tree
  • List 17
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 1b297aa9 on github
  • Prev Build on master (#23957451956)
  • Next Build on master (#23963885145)
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