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

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

Build:
Build:
LAST BUILD BRANCH: robust_mounted_app_comparison
DEFAULT BRANCH: master
Ran 12 May 2026 07:05AM UTC
Jobs 37
Files 159
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

12 May 2026 07:00AM UTC coverage: 97.051% (+0.01%) from 97.039%
25718848653

Pull #2709

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>
Pull Request #2709: Lift trailing if/else into guard clauses; tighten Lazy::ValueEnumerable

1075 of 1157 branches covered (92.91%)

Branch coverage included in aggregate %.

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

6 existing lines in 3 files now uncovered.

3467 of 3523 relevant lines covered (98.41%)

32143.67 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
90.0
2.5% lib/grape/util/lazy/value_enumerable.rb

Coverage Regressions

Lines Coverage ∆ File
3
95.62
-0.06% lib/grape/middleware/error.rb
2
94.85
-0.04% lib/grape/validations/params_scope.rb
1
90.0
2.5% lib/grape/util/lazy/value_enumerable.rb
Jobs
ID Job ID Ran Files Coverage
1 run-3.3-gemfiles/rack_3_0.gemfile - 25718848653.1 12 May 2026 07:06AM UTC 158
95.74
GitHub Action Run
2 run-4.0-gemfiles/rack_2_2.gemfile - 25718848653.2 12 May 2026 07:07AM UTC 158
95.72
GitHub Action Run
3 run-4.0-gemfiles/rails_8_0.gemfile - 25718848653.3 12 May 2026 07:08AM UTC 159
95.76
GitHub Action Run
4 run-3.2-Gemfile - 25718848653.4 12 May 2026 07:06AM UTC 158
95.78
GitHub Action Run
5 run-4.0-gemfiles/rails_8_1.gemfile - 25718848653.5 12 May 2026 07:06AM UTC 159
95.76
GitHub Action Run
6 run-3.3-gemfiles/rack_3_2.gemfile - 25718848653.6 12 May 2026 07:07AM UTC 158
95.74
GitHub Action Run
7 run-3.3-Gemfile - 25718848653.7 12 May 2026 07:07AM UTC 158
95.74
GitHub Action Run
8 run-4.0-gemfiles/multi_xml.gemfile - 25718848653.8 12 May 2026 07:06AM UTC 158
36.26
GitHub Action Run
9 run-4.0-gemfiles/grape_entity.gemfile - 25718848653.9 12 May 2026 07:05AM UTC 158
50.14
GitHub Action Run
10 run-4.0-gemfiles/dry_validation.gemfile - 25718848653.10 12 May 2026 07:06AM UTC 158
58.26
GitHub Action Run
11 run-3.4-gemfiles/rack_2_2.gemfile - 25718848653.11 12 May 2026 07:06AM UTC 158
95.72
GitHub Action Run
12 run-3.4-gemfiles/rails_8_0.gemfile - 25718848653.12 12 May 2026 07:06AM UTC 159
95.76
GitHub Action Run
13 run-3.4-gemfiles/rails_7_2.gemfile - 25718848653.13 12 May 2026 07:06AM UTC 159
95.76
GitHub Action Run
14 run-3.4-gemfiles/rack_3_1.gemfile - 25718848653.14 12 May 2026 07:06AM UTC 158
95.76
GitHub Action Run
15 run-3.2-gemfiles/rails_8_0.gemfile - 25718848653.15 12 May 2026 07:08AM UTC 159
95.79
GitHub Action Run
16 run-4.0-gemfiles/hashie.gemfile - 25718848653.16 12 May 2026 07:07AM UTC 158
62.75
GitHub Action Run
17 run-3.4-gemfiles/rack_3_0.gemfile - 25718848653.17 12 May 2026 07:05AM UTC 158
95.76
GitHub Action Run
18 run-4.0-gemfiles/rack_3_0.gemfile - 25718848653.18 12 May 2026 07:05AM UTC 158
95.76
GitHub Action Run
19 run-4.0-gemfiles/rack_3_2.gemfile - 25718848653.19 12 May 2026 07:06AM UTC 158
95.76
GitHub Action Run
20 run-4.0-gemfiles/rack_3_1.gemfile - 25718848653.20 12 May 2026 07:08AM UTC 158
95.76
GitHub Action Run
21 run-3.4-Gemfile - 25718848653.21 12 May 2026 07:08AM UTC 158
95.76
GitHub Action Run
22 run-3.2-gemfiles/rails_7_2.gemfile - 25718848653.22 12 May 2026 07:05AM UTC 159
95.79
GitHub Action Run
23 run-3.4-gemfiles/rack_3_2.gemfile - 25718848653.23 12 May 2026 07:06AM UTC 158
95.76
GitHub Action Run
24 run-4.0-gemfiles/multi_json.gemfile - 25718848653.24 12 May 2026 07:05AM UTC 158
36.26
GitHub Action Run
25 run-3.2-gemfiles/rack_2_2.gemfile - 25718848653.25 12 May 2026 07:05AM UTC 158
95.74
GitHub Action Run
26 run-4.0-gemfiles/rails_7_2.gemfile - 25718848653.26 12 May 2026 07:08AM UTC 159
95.76
GitHub Action Run
27 run-3.2-gemfiles/rack_3_2.gemfile - 25718848653.27 12 May 2026 07:06AM UTC 158
95.78
GitHub Action Run
28 run-3.2-gemfiles/rack_3_0.gemfile - 25718848653.28 12 May 2026 07:06AM UTC 158
95.78
GitHub Action Run
29 run-3.3-gemfiles/rack_3_1.gemfile - 25718848653.29 12 May 2026 07:07AM UTC 158
95.74
GitHub Action Run
30 run-3.4-gemfiles/rails_8_1.gemfile - 25718848653.30 12 May 2026 07:08AM UTC 159
95.76
GitHub Action Run
31 run-3.3-gemfiles/rails_8_0.gemfile - 25718848653.31 12 May 2026 07:06AM UTC 159
95.74
GitHub Action Run
32 run-3.3-gemfiles/rails_7_2.gemfile - 25718848653.32 12 May 2026 07:07AM UTC 159
95.74
GitHub Action Run
33 run-3.2-gemfiles/rails_8_1.gemfile - 25718848653.33 12 May 2026 07:05AM UTC 159
95.79
GitHub Action Run
34 run-4.0-Gemfile - 25718848653.34 12 May 2026 07:06AM UTC 158
95.76
GitHub Action Run
35 run-3.3-gemfiles/rack_2_2.gemfile - 25718848653.35 12 May 2026 07:05AM UTC 158
95.7
GitHub Action Run
36 run-3.2-gemfiles/rack_3_1.gemfile - 25718848653.36 12 May 2026 07:08AM UTC 158
95.78
GitHub Action Run
37 run-3.3-gemfiles/rails_8_1.gemfile - 25718848653.37 12 May 2026 07:08AM UTC 159
95.74
GitHub Action Run
Source Files on build 25718848653
  • Tree
  • List 159
  • 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 #25718848653
  • Pull Request #2709
  • PR Base - master (#25718782466)
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