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

sgerrand / ex_teya / 25317360533
96%

Build:
DEFAULT BRANCH: main
Ran 04 May 2026 11:51AM UTC
Jobs 1
Files 22
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

04 May 2026 11:50AM UTC coverage: 96.053% (+2.2%) from 93.82%
25317360533

push

github

sgerrand
refactor(sse): replace custom parser with req_server_sent_events

Drops the hand-rolled SSE frame parser and chunk-buffer receive loop in
Teya.SSE in favour of the req_server_sent_events plugin, which handles
the same SSE-spec edge cases (multi-line data, CRLF/LF, comments, id,
retry, partial-frame buffering).

Teya.SSE.stream/7 now attaches the plugin to a Req.Request with into: fun,
JSON-decodes the data field, filters non-map payloads, and forwards the
existing {ok_tag, id, event_type, data} and {error_tag, id, reason}
messages — so the public subscribe/2 protocol on Teya.POSLink.Payment
and Teya.POSLink.Receipt is unchanged. Stream stall detection now uses
Req's :receive_timeout, mapped from :sse_stream_timeout_ms.

Removes test/teya/sse_test.exs; parser-edge-case coverage lives in the
plugin. The integration-level subscribe tests continue to guard the
public message protocol.

9 of 10 new or added lines in 1 file covered. (90.0%)

146 of 152 relevant lines covered (96.05%)

14.55 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
91.67
7.46% lib/teya/sse.ex
Jobs
ID Job ID Ran Files Coverage
1 25317360533.1 04 May 2026 11:51AM UTC 22
96.05
GitHub Action Run
Source Files on build 25317360533
  • Tree
  • List 22
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25317360533
  • 498c7d4c on github
  • Prev Build on main (#25282079981)
  • Next Build on main (#25416939928)
  • Delete
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