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

ruby-grape / grape / 33958045014
97%
master: 99%

Build:
Build:
LAST BUILD BRANCH: perf/ensure-content-type-in-place
DEFAULT BRANCH: master
Ran 05 Sep 2026 09:27AM UTC
Jobs 32
Files 168
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

05 Sep 2026 09:27AM UTC coverage: 97.109% (+0.04%) from 97.072%
33958045014

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

1238 of 1328 branches covered (93.22%)

Branch coverage included in aggregate %.

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

3935 of 3999 relevant lines covered (98.4%)

27216.16 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/multi_xml.gemfile - 33958045014.1 05 Sep 2026 09:28AM UTC 166
47.06
GitHub Action Run
2 run-3.3-Gemfile - 33958045014.2 05 Sep 2026 09:28AM UTC 167
95.86
GitHub Action Run
3 run-3.4-gemfiles/rack_3_1.gemfile - 33958045014.3 05 Sep 2026 09:28AM UTC 167
95.87
GitHub Action Run
4 run-3.4-gemfiles/rack_3_0.gemfile - 33958045014.4 05 Sep 2026 09:28AM UTC 167
95.87
GitHub Action Run
5 run-4.0-gemfiles/grape_swagger.gemfile - 33958045014.5 05 Sep 2026 09:28AM UTC 166
55.26
GitHub Action Run
6 run-4.0-gemfiles/rack_3_2.gemfile - 33958045014.6 05 Sep 2026 09:28AM UTC 167
95.87
GitHub Action Run
7 run-4.0-gemfiles/grape_entity.gemfile - 33958045014.7 05 Sep 2026 09:27AM UTC 166
50.37
GitHub Action Run
8 run-4.0-gemfiles/multi_json.gemfile - 33958045014.8 05 Sep 2026 09:28AM UTC 166
47.57
GitHub Action Run
9 run-4.0-Gemfile - 33958045014.9 05 Sep 2026 09:28AM UTC 167
95.87
GitHub Action Run
10 run-3.4-gemfiles/rails_7_2.gemfile - 33958045014.10 05 Sep 2026 09:28AM UTC 168
95.87
GitHub Action Run
11 run-3.3-gemfiles/rack_3_2.gemfile - 33958045014.11 05 Sep 2026 09:28AM UTC 167
95.86
GitHub Action Run
12 run-3.4-gemfiles/rails_8_0.gemfile - 33958045014.12 05 Sep 2026 09:28AM UTC 168
95.87
GitHub Action Run
13 run-4.0-gemfiles/hashie.gemfile - 33958045014.13 05 Sep 2026 09:28AM UTC 166
61.83
GitHub Action Run
14 run-4.0-gemfiles/rails_8_1.gemfile - 33958045014.14 05 Sep 2026 09:28AM UTC 168
95.87
GitHub Action Run
15 run-4.0-gemfiles/multi_xml_0_8.gemfile - 33958045014.15 05 Sep 2026 09:28AM UTC 166
47.1
GitHub Action Run
16 run-3.4-gemfiles/rack_2_2.gemfile - 33958045014.16 05 Sep 2026 09:28AM UTC 167
95.83
GitHub Action Run
17 run-3.3-gemfiles/rack_2_2.gemfile - 33958045014.17 05 Sep 2026 09:28AM UTC 167
95.83
GitHub Action Run
18 run-4.0-gemfiles/dry_validation.gemfile - 33958045014.18 05 Sep 2026 09:28AM UTC 166
57.83
GitHub Action Run
19 run-3.3-gemfiles/rack_3_1.gemfile - 33958045014.19 05 Sep 2026 09:28AM UTC 167
95.86
GitHub Action Run
20 run-3.4-gemfiles/rails_8_1.gemfile - 33958045014.20 05 Sep 2026 09:28AM UTC 168
95.87
GitHub Action Run
21 run-4.0-gemfiles/rack_3_0.gemfile - 33958045014.21 05 Sep 2026 09:28AM UTC 167
95.87
GitHub Action Run
22 run-3.4-Gemfile - 33958045014.22 05 Sep 2026 09:28AM UTC 167
95.87
GitHub Action Run
23 run-3.4-gemfiles/rack_3_2.gemfile - 33958045014.23 05 Sep 2026 09:28AM UTC 167
95.87
GitHub Action Run
24 run-3.3-gemfiles/rack_3_0.gemfile - 33958045014.24 05 Sep 2026 09:28AM UTC 167
95.86
GitHub Action Run
25 run-4.0-gemfiles/multi_json_1_20.gemfile - 33958045014.25 05 Sep 2026 09:28AM UTC 166
47.61
GitHub Action Run
26 run-4.0-gemfiles/rack_2_2.gemfile - 33958045014.26 05 Sep 2026 09:28AM UTC 167
95.83
GitHub Action Run
27 run-3.3-gemfiles/rails_7_2.gemfile - 33958045014.27 05 Sep 2026 09:28AM UTC 168
95.87
GitHub Action Run
28 run-3.3-gemfiles/rails_8_1.gemfile - 33958045014.28 05 Sep 2026 09:28AM UTC 168
95.87
GitHub Action Run
29 run-4.0-gemfiles/rails_7_2.gemfile - 33958045014.29 05 Sep 2026 09:28AM UTC 168
95.87
GitHub Action Run
30 run-3.3-gemfiles/rails_8_0.gemfile - 33958045014.30 05 Sep 2026 09:28AM UTC 168
95.87
GitHub Action Run
31 run-4.0-gemfiles/rails_8_0.gemfile - 33958045014.31 05 Sep 2026 09:28AM UTC 168
95.87
GitHub Action Run
32 run-4.0-gemfiles/rack_3_1.gemfile - 33958045014.32 05 Sep 2026 09:28AM UTC 167
95.87
GitHub Action Run
Source Files on build 33958045014
  • Tree
  • List 168
  • 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 #33958045014
  • Pull Request #2901
  • PR Base - master (#33936310835)
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