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

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

Build:
Build:
LAST BUILD BRANCH: improve-branch-coverage
DEFAULT BRANCH: master
Ran 02 Sep 2026 09:43PM 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

02 Sep 2026 09:40PM UTC coverage: 96.938%. Remained the same
33686459006

push

github

ericproulx
Read the request method once in default_status

`default_status` supplies the status for every response that did not set one,
and asked the request twice for the same thing:

    return 201 if request.post?
    return 204 if request.delete? && @body.blank?

`Rack::Request::Helpers#post?` and `#delete?` are each `request_method == ...`,
so a GET — the common case, and the one that reaches the third line — walked
`request`, `request_method` and the env twice over.

    post? + delete?  158.4 ns  ->  request_method  90.7 ns   1.75x

End to end this is at the edge of what an interleaved `Benchmark.ips` run
resolves (+1.4% on a minimal versioned GET, median of 5), so the per-call
figure above is the honest measurement.

Five examples in `inside_route_spec` asserted `receive(:request).twice`, which
pinned how many times `default_status` reads the request rather than what it
answers. They keep the stub and drop the count.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

1237 of 1332 branches covered (92.87%)

Branch coverage included in aggregate %.

3 of 3 new or added lines in 1 file covered. (100.0%)

3924 of 3992 relevant lines covered (98.3%)

27439.1 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/hashie.gemfile - 33686459006.1 02 Sep 2026 09:44PM UTC 168
61.81
GitHub Action Run
2 run-4.0-gemfiles/dry_validation.gemfile - 33686459006.2 02 Sep 2026 09:43PM UTC 168
57.84
GitHub Action Run
3 run-3.4-gemfiles/rack_2_2.gemfile - 33686459006.3 02 Sep 2026 09:43PM UTC 168
95.66
GitHub Action Run
4 run-3.4-Gemfile - 33686459006.4 02 Sep 2026 09:47PM UTC 168
95.69
GitHub Action Run
5 run-4.0-gemfiles/multi_xml_0_8.gemfile - 33686459006.5 02 Sep 2026 09:43PM UTC 168
46.97
GitHub Action Run
6 run-4.0-gemfiles/rails_7_2.gemfile - 33686459006.6 02 Sep 2026 09:47PM UTC 169
95.7
GitHub Action Run
7 run-3.3-gemfiles/rails_8_0.gemfile - 33686459006.7 02 Sep 2026 09:46PM UTC 169
95.7
GitHub Action Run
8 run-3.4-gemfiles/rails_8_0.gemfile - 33686459006.8 02 Sep 2026 09:43PM UTC 169
95.7
GitHub Action Run
9 run-4.0-Gemfile - 33686459006.9 02 Sep 2026 09:45PM UTC 168
95.69
GitHub Action Run
10 run-3.3-Gemfile - 33686459006.10 02 Sep 2026 09:43PM UTC 168
95.69
GitHub Action Run
11 run-4.0-gemfiles/multi_json_1_20.gemfile - 33686459006.11 02 Sep 2026 09:46PM UTC 168
47.46
GitHub Action Run
12 run-3.4-gemfiles/rack_3_1.gemfile - 33686459006.12 02 Sep 2026 09:43PM UTC 168
95.69
GitHub Action Run
13 run-3.4-gemfiles/rails_8_1.gemfile - 33686459006.13 02 Sep 2026 09:47PM UTC 169
95.7
GitHub Action Run
14 run-3.3-gemfiles/rack_2_2.gemfile - 33686459006.14 02 Sep 2026 09:45PM UTC 168
95.66
GitHub Action Run
15 run-4.0-gemfiles/rack_2_2.gemfile - 33686459006.15 02 Sep 2026 09:44PM UTC 168
95.66
GitHub Action Run
16 run-3.4-gemfiles/rack_3_2.gemfile - 33686459006.16 02 Sep 2026 09:47PM UTC 168
95.69
GitHub Action Run
17 run-3.3-gemfiles/rails_7_2.gemfile - 33686459006.17 02 Sep 2026 09:44PM UTC 169
95.7
GitHub Action Run
18 run-4.0-gemfiles/rails_8_0.gemfile - 33686459006.18 02 Sep 2026 09:46PM UTC 169
95.7
GitHub Action Run
19 run-3.3-gemfiles/rack_3_2.gemfile - 33686459006.19 02 Sep 2026 09:43PM UTC 168
95.69
GitHub Action Run
20 run-4.0-gemfiles/rack_3_0.gemfile - 33686459006.20 02 Sep 2026 09:43PM UTC 168
95.69
GitHub Action Run
21 run-3.4-gemfiles/rack_3_0.gemfile - 33686459006.21 02 Sep 2026 09:43PM UTC 168
95.69
GitHub Action Run
22 run-3.3-gemfiles/rack_3_1.gemfile - 33686459006.22 02 Sep 2026 09:43PM UTC 168
95.69
GitHub Action Run
23 run-4.0-gemfiles/rails_8_1.gemfile - 33686459006.23 02 Sep 2026 09:44PM UTC 169
95.7
GitHub Action Run
24 run-3.4-gemfiles/rails_7_2.gemfile - 33686459006.24 02 Sep 2026 09:43PM UTC 169
95.7
GitHub Action Run
25 run-3.3-gemfiles/rack_3_0.gemfile - 33686459006.25 02 Sep 2026 09:46PM UTC 168
95.69
GitHub Action Run
26 run-4.0-gemfiles/rack_3_1.gemfile - 33686459006.26 02 Sep 2026 09:47PM UTC 168
95.69
GitHub Action Run
27 run-4.0-gemfiles/multi_xml.gemfile - 33686459006.27 02 Sep 2026 09:44PM UTC 168
46.93
GitHub Action Run
28 run-4.0-gemfiles/grape_swagger.gemfile - 33686459006.28 02 Sep 2026 09:43PM UTC 168
55.23
GitHub Action Run
29 run-4.0-gemfiles/grape_entity.gemfile - 33686459006.29 02 Sep 2026 09:43PM UTC 168
50.34
GitHub Action Run
30 run-4.0-gemfiles/rack_3_2.gemfile - 33686459006.30 02 Sep 2026 09:46PM UTC 168
95.69
GitHub Action Run
31 run-4.0-gemfiles/multi_json.gemfile - 33686459006.31 02 Sep 2026 09:44PM UTC 168
47.42
GitHub Action Run
32 run-3.3-gemfiles/rails_8_1.gemfile - 33686459006.32 02 Sep 2026 09:44PM UTC 169
95.7
GitHub Action Run
Source Files on build 33686459006
  • Tree
  • List 169
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #33686459006
  • 6cf68ccc on github
  • Prev Build on master (#33611766024)
  • Next Build on perf/default-status-single-read (#33686641563)
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