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

sgerrand / ex_teya / 36347066457
100%

Build:
DEFAULT BRANCH: main
Ran 27 Sep 2026 08:11PM 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

27 Sep 2026 08:10PM UTC coverage: 100.0%. Remained the same
36347066457

push

github

web-flow
refactor(client): build every request path from a template in one place (#55)

* refactor(client): build every request path from a template in one place

Each module encoded the ids it put into a path by calling
Client.segment/1 inside a string, and nothing stopped new code from
interpolating a value without it. Every path is now either a plain
string or {template, values}, such as {"/v1/tokens/:id", id: token_id},
and Client.path/1 (and Client.url/1 for the POSLink streams) encodes each
value as one segment. segment/1 is now private to Client.

path/1 raises ArgumentError for a value with no placeholder, a
placeholder with no value, or text that is not a plain path, which is
how an interpolated value shows up. A test scans lib/ and fails if any
module interpolates or appends a value into a path string, so a path
built by hand cannot slip in unnoticed.

* test(client): check the parsed code, not each line, for built paths

The guard against paths built by hand read lib/ a line at a time, so a
path joined across lines, such as "/v1/tokens/" <> on one line and
token_id on the next, slipped past it. It now parses each file and looks
at the expressions themselves: any interpolated string that starts with
"/", and any <> that joins a literal starting with "/" to a value,
wherever the line breaks fall. A new test checks that it catches both
across lines.

* fix(client): close the ways around the path guard

The guard looked only for strings that start with "/" and for <>, so
"\#{HTTP.base_url()}/poslink/...\#{id}", Path.join/1 and
Enum.join(parts, "/") all built a path it did not see. It now flags a
path part followed by a value anywhere in an interpolated string, and any
Path.join or Enum.join with "/" outside Client. It finds lib/ from the
test's own directory and fails if it found no files, rather than pass
having checked nothing. A pattern such as "/poslink/" <> _rest builds
no path, so it is left alone, and api/1 matches on it again.

path/1 raises a c... (continued)

34 of 34 new or added lines in 7 files covered. (100.0%)

470 of 470 relevant lines covered (100.0%)

54.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 36347066457.1 27 Sep 2026 08:11PM UTC 24
100.0
GitHub Action Run
Source Files on build 36347066457
  • Tree
  • List 24
  • Changed 10
  • Source Changed 10
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #36347066457
  • 4ea90b4d on github
  • Prev Build on main (#36345917173)
  • Next Build on main (#36423980421)
  • 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