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

dennisdoomen / mockly / 29336226057
85%

Build:
DEFAULT BRANCH: main
Ran 14 Jul 2026 01:27PM UTC
Jobs 1
Files 15
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

14 Jul 2026 01:22PM UTC coverage: 84.925% (+0.1%) from 84.827%
29336226057

push

github

web-flow
Add TreatBodyAsTextual() to force textual body decoding (#163)

* Add TreatBodyAsTextual() to force textual body decoding

Body-based matchers (WithBody, WithBodyMatchingRegex, WithBodyMatchingJson,
form-field matching) only match against RequestInfo.Body, which stays null
when the request's Content-Type isn't recognized as textual. There's no way
for callers to opt in when they know the body is actually text but uses an
unrecognized or binary-looking media type.

RequestMockBuilder.TreatBodyAsTextual() lets a mock opt into decoding the
body as text regardless of Content-Type. Mirrors the existing PrefetchBody
pattern: the public toggle is a simple flag, and the mechanics are
localized in HttpMock.BuildRequestInfo, which now forces RequestInfo to
decode the body as text when any registered mock has opted in. No changes
were needed to the individual body-matching methods, since they already
read RequestInfo.Body.

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

* Document TreatBodyAsTextual() in SKILL.md and advanced docs

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

---------

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

352 of 495 branches covered (71.11%)

Branch coverage included in aggregate %.

16 of 16 new or added lines in 4 files covered. (100.0%)

1355 of 1515 relevant lines covered (89.44%)

331.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 29336226057.1 14 Jul 2026 01:27PM UTC 15
84.93
GitHub Action Run
Source Files on build 29336226057
  • Tree
  • List 15
  • Changed 7
  • Source Changed 4
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #29336226057
  • 89ac9d96 on github
  • Prev Build on main (#29333728737)
  • Next Build on main (#29337003110)
  • 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