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

sgerrand / ex_teya / 36250840579
100%

Build:
DEFAULT BRANCH: main
Ran 26 Sep 2026 03:07PM UTC
Jobs 1
Files 24
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

26 Sep 2026 03:07PM UTC coverage: 100.0%. Remained the same
36250840579

push

github

web-flow
fix: encode every id put into a request path (#46)

* fix: encode every id put into a request path

Only the functions added in #45 encoded their path ids. Every other
function put the caller's id into the path as given, so a "/", "?" or
".." in one could reach a different endpoint, and nil left "//" in the
path. All of them now go through Client.segment/1, which encodes the id
and raises ArgumentError for nil, "", "." and "..".

Payment.get/2, Payment.subscribe/2 and Receipt.subscribe_status/2 build
their stream URL before starting their task, so a bad id raises in the
caller's process rather than inside the task.

* test: give the path encoding stream tests the usual 500ms to receive

The two subscription tests relied on assert_receive's default 100ms,
which a busy CI worker can miss. Use 500ms, as the other subscription
tests do.

* fix: raise ArgumentError for any id that cannot be a path segment

Client.segment/1 took any value through to_string/1, so a map or tuple
raised Protocol.UndefinedError instead. It now takes text or an integer
and raises ArgumentError for anything else.

Payment.get/2, Payment.subscribe/2 and Receipt.subscribe_status/2 say
they raise for such an id. The README says only ids in the path are
checked, not query values such as Token.delete/3's store_id, and
CLAUDE.md lists the transaction and payment link versions the code uses.
The stream tests report the requested path to the test process, so a
wrong path fails as a path mismatch rather than a missing message.

22 of 22 new or added lines in 10 files covered. (100.0%)

334 of 334 relevant lines covered (100.0%)

25.97 hits per line

Jobs
ID Job ID Ran Files Coverage
1 36250840579.1 26 Sep 2026 03:07PM UTC 24
100.0
GitHub Action Run
Source Files on build 36250840579
  • Tree
  • List 24
  • Changed 10
  • Source Changed 10
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #36250840579
  • ad12c33a on github
  • Prev Build on main (#36240723094)
  • Next Build on main (#36260329413)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc