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

sgerrand / ex_deputy / 26514952333
100%

Build:
DEFAULT BRANCH: main
Ran 27 May 2026 01:43PM UTC
Jobs 1
Files 13
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 May 2026 01:41PM UTC coverage: 99.065%. Remained the same
26514952333

push

github

sgerrand
test: pattern-match Request fields in Mox expectations

Each Mox `expect(:request, fn req -> ...)` block opened with a pair of
`assert req.method == ...` / `assert req.url == ...` checks. Replace
those head-of-block assertions with a `%Deputy.HTTPClient.Request{...}`
pattern in the function head so:

* A mismatch raises a FunctionClauseError immediately at the call site
  instead of falling through to a generic assertion failure.
* The struct shape is enforced at compile time.
* Method and URL appear once at the head rather than twice (header
  expectation + assertion).

Pattern conversion is skipped for URLs containing string interpolation
(those remain runtime asserts). When the pattern hoist leaves `req`
unused in the body, the binding is dropped to avoid an unused-variable
warning.

Saves ~70 lines net across 9 test files; no behavioural change.

318 of 321 relevant lines covered (99.07%)

14.88 hits per line

Jobs
ID Job ID Ran Files Coverage
1 26514952333.1 27 May 2026 01:43PM UTC 13
99.07
GitHub Action Run
Source Files on build 26514952333
  • Tree
  • List 13
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26514952333
  • 078231e8 on github
  • Prev Build on main (#26509425547)
  • Next Build on main (#26519149127)
  • 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