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

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

Build:
Build:
LAST BUILD BRANCH: fix/recompile-settings-mutation-race
DEFAULT BRANCH: master
Ran 12 May 2026 07:08AM UTC
Files 157
Run time 9s
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: 95.715% (+0.009%) from 95.706%
25718794911.17

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>

1067 of 1175 branches covered (90.81%)

Branch coverage included in aggregate %.

3400 of 3492 relevant lines covered (97.37%)

1005.73 hits per line

Source Files on job run-3.4-gemfiles/rack_2_2.gemfile - 25718794911.17
  • Tree
  • List 157
  • Changed 6
  • Source Changed 6
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 25718794911
  • 9ce9a0a4 on github
  • Prev Job for on refactor/guard-clauses-style (#25718401504.20)
  • Next Job for on refactor/guard-clauses-style (#25718848653.7)
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