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

ruby-grape / grape / 24629624319 / 9
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: fix-options-const-defined-object-fallback
DEFAULT BRANCH: master
Ran 19 Apr 2026 01:01PM UTC
Files 153
Run time 7s
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

19 Apr 2026 12:54PM UTC coverage: 95.602% (-0.006%) from 95.608%
24629624319.9

Pull #2684

github

ericproulx
Readability: case/when, guard clauses, small cleanups

Mechanical readability refactors across validators, DSLs, and formatters:

- inside_route.rb: sendfile dispatched via case/when on value type.
- parameters.rb: map_params switched to case/when; EmptyOptionalValue
  simplified to a frozen Object.new; method order tidied.
- error_formatter/json.rb: wrap_message dispatched via case/when.
- middleware/formatter.rb: guard-clause returns in ensure_content_type
  and read_rack_input; bodies.collect -> bodies.map.
- validations/types.rb: create_coercer_instance rewritten as a
  priority-list of guards with comments above each branch; shared
  array_or_set? predicate extracted; redundant Types. prefix dropped.
- validations/types/primitive_coercer.rb: reject? rewritten as case/when
  with String/Array|Hash dispatch.
- validators/except_values_validator.rb: lift except.is_a?(Proc) to a
  local to avoid recomputing it.

No behavior change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pull Request #2684: Readability: case/when, guard clauses, small cleanups

1046 of 1158 branches covered (90.33%)

Branch coverage included in aggregate %.

3302 of 3390 relevant lines covered (97.4%)

1035.07 hits per line

Source Files on job run-3.2-gemfiles/rails_7_2.gemfile - 24629624319.9
  • Tree
  • List 153
  • Changed 7
  • Source Changed 7
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 24629624319
  • 84d2c2bc on github
  • Prev Job for on chore/readability-pass (#24617960772.3)
  • Next Job for on chore/readability-pass (#24629658112.6)
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