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

ruby-grape / grape / 24693672007 / 12
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: perf/build-headers-each-header
DEFAULT BRANCH: master
Ran 20 Apr 2026 10:31PM UTC
Files 154
Run time 6s
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

20 Apr 2026 10:29PM UTC coverage: 49.439% (+0.09%) from 49.352%
24693672007.12

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

195 of 1155 branches covered (16.88%)

Branch coverage included in aggregate %.

2053 of 3392 relevant lines covered (60.52%)

8.07 hits per line

Source Files on job run-4.0-gemfiles/grape_entity.gemfile - 24693672007.12
  • Tree
  • List 154
  • Changed 7
  • Source Changed 7
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 24693672007
  • 9dc105e5 on github
  • Prev Job for on chore/readability-pass (#24693636281.8)
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