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

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

Build:
Build:
LAST BUILD BRANCH: robust_mounted_app_comparison
DEFAULT BRANCH: master
Ran 12 May 2026 07:02AM UTC
Jobs 37
Files 158
Run time 2min
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

12 May 2026 06:59AM UTC coverage: 97.05% (+0.01%) from 97.038%
25718794911

push

github

ericproulx
Lift trailing if/else into guard clauses; tighten Lazy::ValueEnumerable

- DSL::InsideRoute#content_type: `if val` if/else -> guard clause.
- DSL::InsideRoute default status: collapse the delete-branch if/else
  into a ternary inline with the surrounding `case/elsif`.
- Middleware::Error#run_rescue_handler: lift the three-arm if/elsif/else
  on `response` into two early-return guards.
- Middleware::Versioner::Header#strict_accept_header_negotiation: lift
  `if media_type` into a guard clause returning the yielded value.
- Path#build_suffix: lift the three-arm if/elsif/else into guards;
  inline the `!a || (b || c)` De Morgan as `!a || b || c`.
- Validations::ParamsScope#build_full_path: lift the three-arm
  if/elsif/else into guards.
- Util::Lazy::ValueEnumerable:
  - `[]`: if/else -> guard clause for the missing-key path.
  - `fetch`: replace dup+shift+recursion with a flat `reduce`.
  - `[]=`: pull the Hash/Array/else case dispatch into a `value_class`
    local so the single `@value_hash[key] = value_class.new(value)`
    assignment is shared.

No behaviour change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

1095 of 1177 branches covered (93.03%)

Branch coverage included in aggregate %.

21 of 22 new or added lines in 6 files covered. (95.45%)

3445 of 3501 relevant lines covered (98.4%)

32074.87 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
90.0
2.5% lib/grape/util/lazy/value_enumerable.rb
Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/rack_2_2.gemfile - 25718794911.1 12 May 2026 07:02AM UTC 157
95.71
GitHub Action Run
2 run-3.2-gemfiles/rails_8_0.gemfile - 25718794911.2 12 May 2026 07:02AM UTC 158
95.78
GitHub Action Run
3 run-3.4-Gemfile - 25718794911.3 12 May 2026 07:04AM UTC 157
95.76
GitHub Action Run
4 run-3.2-gemfiles/rack_3_1.gemfile - 25718794911.4 12 May 2026 07:04AM UTC 157
95.78
GitHub Action Run
5 run-3.3-gemfiles/rails_8_1.gemfile - 25718794911.5 12 May 2026 07:03AM UTC 158
95.74
GitHub Action Run
6 run-4.0-gemfiles/multi_xml.gemfile - 25718794911.6 12 May 2026 07:04AM UTC 157
36.04
GitHub Action Run
7 run-4.0-gemfiles/rails_8_0.gemfile - 25718794911.7 12 May 2026 07:04AM UTC 158
95.76
GitHub Action Run
8 run-3.2-Gemfile - 25718794911.8 12 May 2026 07:02AM UTC 157
95.78
GitHub Action Run
9 run-3.2-gemfiles/rack_2_2.gemfile - 25718794911.9 12 May 2026 07:02AM UTC 157
95.74
GitHub Action Run
10 run-3.2-gemfiles/rack_3_0.gemfile - 25718794911.10 12 May 2026 07:02AM UTC 157
95.78
GitHub Action Run
11 run-3.3-gemfiles/rack_3_0.gemfile - 25718794911.11 12 May 2026 07:03AM UTC 157
95.74
GitHub Action Run
12 run-3.3-Gemfile - 25718794911.12 12 May 2026 07:04AM UTC 157
95.74
GitHub Action Run
13 run-4.0-gemfiles/dry_validation.gemfile - 25718794911.13 12 May 2026 07:03AM UTC 157
58.09
GitHub Action Run
14 run-3.2-gemfiles/rack_3_2.gemfile - 25718794911.14 12 May 2026 07:02AM UTC 157
95.78
GitHub Action Run
15 run-3.4-gemfiles/rack_3_1.gemfile - 25718794911.15 12 May 2026 07:04AM UTC 157
95.76
GitHub Action Run
16 run-4.0-gemfiles/hashie.gemfile - 25718794911.16 12 May 2026 07:04AM UTC 157
62.61
GitHub Action Run
17 run-3.4-gemfiles/rack_2_2.gemfile - 25718794911.17 12 May 2026 07:04AM UTC 157
95.71
GitHub Action Run
18 run-3.4-gemfiles/rails_7_2.gemfile - 25718794911.18 12 May 2026 07:04AM UTC 158
95.76
GitHub Action Run
19 run-3.3-gemfiles/rails_7_2.gemfile - 25718794911.19 12 May 2026 07:02AM UTC 158
95.74
GitHub Action Run
20 run-4.0-gemfiles/rack_3_0.gemfile - 25718794911.20 12 May 2026 07:04AM UTC 157
95.76
GitHub Action Run
21 run-3.3-gemfiles/rack_3_2.gemfile - 25718794911.21 12 May 2026 07:03AM UTC 157
95.74
GitHub Action Run
22 run-4.0-gemfiles/rails_8_1.gemfile - 25718794911.22 12 May 2026 07:03AM UTC 158
95.76
GitHub Action Run
23 run-4.0-Gemfile - 25718794911.23 12 May 2026 07:04AM UTC 157
95.76
GitHub Action Run
24 run-4.0-gemfiles/multi_json.gemfile - 25718794911.24 12 May 2026 07:04AM UTC 157
36.04
GitHub Action Run
25 run-4.0-gemfiles/grape_entity.gemfile - 25718794911.25 12 May 2026 07:03AM UTC 157
49.93
GitHub Action Run
26 run-4.0-gemfiles/rack_3_2.gemfile - 25718794911.26 12 May 2026 07:04AM UTC 157
95.76
GitHub Action Run
27 run-3.3-gemfiles/rack_3_1.gemfile - 25718794911.27 12 May 2026 07:03AM UTC 157
95.74
GitHub Action Run
28 run-3.2-gemfiles/rails_7_2.gemfile - 25718794911.28 12 May 2026 07:02AM UTC 158
95.78
GitHub Action Run
29 run-3.4-gemfiles/rails_8_0.gemfile - 25718794911.29 12 May 2026 07:05AM UTC 158
95.76
GitHub Action Run
30 run-4.0-gemfiles/rack_3_1.gemfile - 25718794911.30 12 May 2026 07:03AM UTC 157
95.76
GitHub Action Run
31 run-3.4-gemfiles/rails_8_1.gemfile - 25718794911.31 12 May 2026 07:05AM UTC 158
95.76
GitHub Action Run
32 run-3.4-gemfiles/rack_3_0.gemfile - 25718794911.32 12 May 2026 07:05AM UTC 157
95.76
GitHub Action Run
33 run-3.3-gemfiles/rails_8_0.gemfile - 25718794911.33 12 May 2026 07:03AM UTC 158
95.74
GitHub Action Run
34 run-4.0-gemfiles/rails_7_2.gemfile - 25718794911.34 12 May 2026 07:03AM UTC 158
95.76
GitHub Action Run
35 run-3.2-gemfiles/rails_8_1.gemfile - 25718794911.35 12 May 2026 07:02AM UTC 158
95.78
GitHub Action Run
36 run-3.3-gemfiles/rack_2_2.gemfile - 25718794911.36 12 May 2026 07:03AM UTC 157
95.69
GitHub Action Run
37 run-3.4-gemfiles/rack_3_2.gemfile - 25718794911.37 12 May 2026 07:04AM UTC 157
95.76
GitHub Action Run
Source Files on build 25718794911
  • Tree
  • List 158
  • Changed 6
  • Source Changed 6
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25718794911
  • 9ce9a0a4 on github
  • Prev Build on master (#25718401504)
  • Next Build on refactor/guard-clauses-style (#25718848653)
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