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

ruby-grape / grape / 24629658112 / 4
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: regression/json-error-formatter-double-wrap
DEFAULT BRANCH: master
Ran 19 Apr 2026 01:01PM UTC
Files 152
Run time 5s
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:58PM UTC coverage: 95.575% (-0.005%) from 95.58%
24629658112.4

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

1044 of 1156 branches covered (90.31%)

Branch coverage included in aggregate %.

3297 of 3386 relevant lines covered (97.37%)

1036.2 hits per line

Source Files on job run-3.4-gemfiles/rack_3_1.gemfile - 24629658112.4
  • Tree
  • List 152
  • Changed 7
  • Source Changed 7
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 24629658112
  • 95e47c11 on github
  • Prev Job for on chore/readability-pass (#24617960772.19)
  • Next Job for on chore/readability-pass (#24693672007.28)
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