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

ruby-grape / grape / 33924285829
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: route-param-bare-requirements
DEFAULT BRANCH: master
Ran 04 Sep 2026 10:09PM UTC
Jobs 32
Files 169
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 Sep 2026 10:09PM UTC coverage: 97.001% (+0.04%) from 96.964%
33924285829

Pull #2901

github

ericproulx
Require a formatter in error_formatter and drop the unreachable 406 throw

`error_formatter :json` — with no formatter, positionally or as `with:` —
registered `nil`. `ErrorFormatter.formatter_for` returns a registered value
verbatim through its `key?` short-circuit, so that format resolved to no
formatter at all, and `Middleware::Error#format_message` fell through to a
`throw :error, 406`.

That throw could never deliver its 406: nothing catches `:error` around the
call. `#call!` has already left its `catch` by the time `error_response` runs,
and `run_rescue_handler` renders outside its own. So it raised
`UncaughtThrowError`, `render_response` rescued it, and the request answered
with the failsafe `500 Internal Server Error` in `text/plain` instead of the
status and message the API asked for.

Raise `ArgumentError` from the DSL when no formatter is given, so the mistake
surfaces where it is made, and drop the dead branch — `formatter_for` always
resolves to a registered formatter, `default_error_formatter` or
`ErrorFormatter::Txt`.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Pull Request #2901: Require a formatter in error_formatter and drop the unreachable 406 throw

1246 of 1339 branches covered (93.05%)

Branch coverage included in aggregate %.

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

3962 of 4030 relevant lines covered (98.31%)

27051.42 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.4-gemfiles/rack_3_1.gemfile - 33924285829.1 04 Sep 2026 10:10PM UTC 168
95.77
GitHub Action Run
2 run-3.4-gemfiles/rack_3_2.gemfile - 33924285829.2 04 Sep 2026 10:10PM UTC 168
95.77
GitHub Action Run
3 run-4.0-gemfiles/rails_8_1.gemfile - 33924285829.3 04 Sep 2026 10:11PM UTC 169
95.77
GitHub Action Run
4 run-4.0-gemfiles/rack_3_2.gemfile - 33924285829.4 04 Sep 2026 10:10PM UTC 168
95.77
GitHub Action Run
5 run-4.0-gemfiles/rack_3_0.gemfile - 33924285829.5 04 Sep 2026 10:12PM UTC 168
95.77
GitHub Action Run
6 run-4.0-gemfiles/multi_json.gemfile - 33924285829.6 04 Sep 2026 10:10PM UTC 167
47.48
GitHub Action Run
7 run-4.0-gemfiles/grape_swagger.gemfile - 33924285829.7 04 Sep 2026 10:11PM UTC 167
55.16
GitHub Action Run
8 run-3.3-gemfiles/rack_3_1.gemfile - 33924285829.8 04 Sep 2026 10:12PM UTC 168
95.77
GitHub Action Run
9 run-3.3-gemfiles/rails_7_2.gemfile - 33924285829.9 04 Sep 2026 10:10PM UTC 169
95.77
GitHub Action Run
10 run-3.3-gemfiles/rails_8_1.gemfile - 33924285829.10 04 Sep 2026 10:12PM UTC 169
95.77
GitHub Action Run
11 run-3.3-gemfiles/rack_3_2.gemfile - 33924285829.11 04 Sep 2026 10:10PM UTC 168
95.77
GitHub Action Run
12 run-3.3-gemfiles/rack_3_0.gemfile - 33924285829.12 04 Sep 2026 10:11PM UTC 168
95.77
GitHub Action Run
13 run-3.4-gemfiles/rails_7_2.gemfile - 33924285829.13 04 Sep 2026 10:09PM UTC 169
95.77
GitHub Action Run
14 run-4.0-gemfiles/multi_xml_0_8.gemfile - 33924285829.14 04 Sep 2026 10:10PM UTC 167
47.01
GitHub Action Run
15 run-4.0-gemfiles/rack_2_2.gemfile - 33924285829.15 04 Sep 2026 10:10PM UTC 168
95.73
GitHub Action Run
16 run-4.0-gemfiles/dry_validation.gemfile - 33924285829.16 04 Sep 2026 10:10PM UTC 167
57.71
GitHub Action Run
17 run-4.0-Gemfile - 33924285829.17 04 Sep 2026 10:12PM UTC 168
95.77
GitHub Action Run
18 run-3.4-gemfiles/rails_8_0.gemfile - 33924285829.18 04 Sep 2026 10:12PM UTC 169
95.77
GitHub Action Run
19 run-3.4-gemfiles/rack_3_0.gemfile - 33924285829.19 04 Sep 2026 10:10PM UTC 168
95.77
GitHub Action Run
20 run-3.3-Gemfile - 33924285829.20 04 Sep 2026 10:10PM UTC 168
95.77
GitHub Action Run
21 run-3.3-gemfiles/rack_2_2.gemfile - 33924285829.21 04 Sep 2026 10:10PM UTC 168
95.73
GitHub Action Run
22 run-3.4-gemfiles/rails_8_1.gemfile - 33924285829.22 04 Sep 2026 10:10PM UTC 169
95.77
GitHub Action Run
23 run-4.0-gemfiles/multi_xml.gemfile - 33924285829.23 04 Sep 2026 10:11PM UTC 167
46.97
GitHub Action Run
24 run-4.0-gemfiles/grape_entity.gemfile - 33924285829.24 04 Sep 2026 10:10PM UTC 167
50.29
GitHub Action Run
25 run-3.3-gemfiles/rails_8_0.gemfile - 33924285829.25 04 Sep 2026 10:11PM UTC 169
95.77
GitHub Action Run
26 run-4.0-gemfiles/rails_7_2.gemfile - 33924285829.26 04 Sep 2026 10:10PM UTC 169
95.77
GitHub Action Run
27 run-4.0-gemfiles/rack_3_1.gemfile - 33924285829.27 04 Sep 2026 10:10PM UTC 168
95.77
GitHub Action Run
28 run-3.4-Gemfile - 33924285829.28 04 Sep 2026 10:11PM UTC 168
95.77
GitHub Action Run
29 run-4.0-gemfiles/rails_8_0.gemfile - 33924285829.29 04 Sep 2026 10:10PM UTC 169
95.77
GitHub Action Run
30 run-4.0-gemfiles/hashie.gemfile - 33924285829.30 04 Sep 2026 10:10PM UTC 167
61.68
GitHub Action Run
31 run-4.0-gemfiles/multi_json_1_20.gemfile - 33924285829.31 04 Sep 2026 10:11PM UTC 167
47.52
GitHub Action Run
32 run-3.4-gemfiles/rack_2_2.gemfile - 33924285829.32 04 Sep 2026 10:11PM UTC 168
95.73
GitHub Action Run
Source Files on build 33924285829
  • Tree
  • List 169
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #33924285829
  • Pull Request #2901
  • PR Base - master (#33920012157)
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