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

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

Build:
Build:
LAST BUILD BRANCH: perf/build-headers-each-header
DEFAULT BRANCH: master
Ran 19 Apr 2026 12:59PM UTC
Jobs 37
Files 153
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

19 Apr 2026 12:58PM UTC coverage: 96.903% (-0.004%) from 96.907%
24629658112

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

1070 of 1158 branches covered (92.4%)

Branch coverage included in aggregate %.

52 of 53 new or added lines in 7 files covered. (98.11%)

3342 of 3395 relevant lines covered (98.44%)

33112.24 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
97.37
-0.05% lib/grape/middleware/formatter.rb
Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/multi_xml.gemfile - 24629658112.1 19 Apr 2026 01:01PM UTC 152
35.95
GitHub Action Run
2 run-3.4-gemfiles/rack_3_2.gemfile - 24629658112.2 19 Apr 2026 01:01PM UTC 152
95.57
GitHub Action Run
3 run-3.4-gemfiles/rails_8_0.gemfile - 24629658112.3 19 Apr 2026 01:00PM UTC 153
95.58
GitHub Action Run
4 run-3.4-gemfiles/rack_3_1.gemfile - 24629658112.4 19 Apr 2026 01:00PM UTC 152
95.57
GitHub Action Run
5 run-3.3-Gemfile - 24629658112.5 19 Apr 2026 01:00PM UTC 152
95.55
GitHub Action Run
6 run-4.0-gemfiles/rails_8_1.gemfile - 24629658112.6 19 Apr 2026 01:00PM UTC 153
95.58
GitHub Action Run
7 run-4.0-gemfiles/dry_validation.gemfile - 24629658112.7 19 Apr 2026 01:00PM UTC 152
57.64
GitHub Action Run
8 run-3.4-gemfiles/rack_2_2.gemfile - 24629658112.8 19 Apr 2026 01:00PM UTC 152
95.53
GitHub Action Run
9 run-3.3-gemfiles/rack_3_0.gemfile - 24629658112.9 19 Apr 2026 12:59PM UTC 152
95.55
GitHub Action Run
10 run-4.0-Gemfile - 24629658112.10 19 Apr 2026 01:00PM UTC 152
95.57
GitHub Action Run
11 run-3.3-gemfiles/rails_8_0.gemfile - 24629658112.11 19 Apr 2026 01:00PM UTC 153
95.56
GitHub Action Run
12 run-3.2-gemfiles/rails_8_1.gemfile - 24629658112.12 19 Apr 2026 01:00PM UTC 153
95.6
GitHub Action Run
13 run-3.2-gemfiles/rack_3_2.gemfile - 24629658112.13 19 Apr 2026 12:59PM UTC 152
95.6
GitHub Action Run
14 run-3.3-gemfiles/rack_3_1.gemfile - 24629658112.14 19 Apr 2026 12:59PM UTC 152
95.55
GitHub Action Run
15 run-3.4-gemfiles/rails_8_1.gemfile - 24629658112.15 19 Apr 2026 01:01PM UTC 153
95.58
GitHub Action Run
16 run-3.3-gemfiles/rails_8_1.gemfile - 24629658112.16 19 Apr 2026 01:00PM UTC 153
95.56
GitHub Action Run
17 run-3.2-gemfiles/rack_2_2.gemfile - 24629658112.17 19 Apr 2026 01:00PM UTC 152
95.55
GitHub Action Run
18 run-4.0-gemfiles/grape_entity.gemfile - 24629658112.18 19 Apr 2026 01:01PM UTC 152
49.32
GitHub Action Run
19 run-4.0-gemfiles/rails_7_2.gemfile - 24629658112.19 19 Apr 2026 01:00PM UTC 153
95.58
GitHub Action Run
20 run-3.2-gemfiles/rack_3_1.gemfile - 24629658112.20 19 Apr 2026 12:59PM UTC 152
95.6
GitHub Action Run
21 run-4.0-gemfiles/rack_3_1.gemfile - 24629658112.21 19 Apr 2026 01:01PM UTC 152
95.57
GitHub Action Run
22 run-3.2-gemfiles/rails_7_2.gemfile - 24629658112.22 19 Apr 2026 01:00PM UTC 153
95.6
GitHub Action Run
23 run-4.0-gemfiles/rack_3_0.gemfile - 24629658112.23 19 Apr 2026 01:00PM UTC 152
95.57
GitHub Action Run
24 run-3.3-gemfiles/rack_2_2.gemfile - 24629658112.24 19 Apr 2026 01:00PM UTC 152
95.51
GitHub Action Run
25 run-4.0-gemfiles/hashie.gemfile - 24629658112.25 19 Apr 2026 01:00PM UTC 152
62.33
GitHub Action Run
26 run-4.0-gemfiles/multi_json.gemfile - 24629658112.26 19 Apr 2026 01:01PM UTC 152
35.95
GitHub Action Run
27 run-4.0-gemfiles/rack_3_2.gemfile - 24629658112.27 19 Apr 2026 01:01PM UTC 152
95.57
GitHub Action Run
28 run-3.3-gemfiles/rack_3_2.gemfile - 24629658112.28 19 Apr 2026 12:59PM UTC 152
95.55
GitHub Action Run
29 run-3.2-gemfiles/rails_8_0.gemfile - 24629658112.29 19 Apr 2026 01:00PM UTC 153
95.6
GitHub Action Run
30 run-3.2-gemfiles/rack_3_0.gemfile - 24629658112.30 19 Apr 2026 01:00PM UTC 152
95.6
GitHub Action Run
31 run-3.4-gemfiles/rack_3_0.gemfile - 24629658112.31 19 Apr 2026 01:01PM UTC 152
95.57
GitHub Action Run
32 run-3.2-Gemfile - 24629658112.32 19 Apr 2026 01:01PM UTC 152
95.6
GitHub Action Run
33 run-4.0-gemfiles/rack_2_2.gemfile - 24629658112.33 19 Apr 2026 01:00PM UTC 152
95.53
GitHub Action Run
34 run-3.4-gemfiles/rails_7_2.gemfile - 24629658112.34 19 Apr 2026 01:01PM UTC 153
95.58
GitHub Action Run
35 run-3.4-Gemfile - 24629658112.35 19 Apr 2026 12:59PM UTC 152
95.57
GitHub Action Run
36 run-3.3-gemfiles/rails_7_2.gemfile - 24629658112.36 19 Apr 2026 01:01PM UTC 153
95.56
GitHub Action Run
37 run-4.0-gemfiles/rails_8_0.gemfile - 24629658112.37 19 Apr 2026 01:01PM UTC 153
95.58
GitHub Action Run
Source Files on build 24629658112
  • 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 Repo
  • Github Actions Build #24629658112
  • Pull Request #2684
  • PR Base - master (#24617960772)
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