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

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

Build:
Build:
LAST BUILD BRANCH: robust_mounted_app_comparison
DEFAULT BRANCH: master
Ran 15 May 2026 08:52AM UTC
Jobs 37
Files 160
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

15 May 2026 08:51AM UTC coverage: 97.035%. First build
25909112239

Pull #2720

github

ericproulx
Move declaration-coherence checks into ValidationsSpec

`check_incompatible_option_values` and `validate_value_coercion` were
private methods on `ParamsScope`, invoked from `#validates` right after
building the `ValidationsSpec`. Both are pure cross-field invariants
computed entirely from fields the spec already owns (`default`,
`values`, `except_values`, `coerce_type`).

`ValidationsSpec` already enforced one construction-time invariant (the
`:type` + `:types` mutual-exclusion `ArgumentError`), so concentrating
the rest there makes "you cannot construct an incoherent spec" true by
definition: the invariant no longer depends on a caller remembering to
run the checks after `.from(...)`. `ParamsScope#validates` shrinks to
build-spec → document → dispatch.

- Moved both methods into `ValidationsSpec` as private; a new private
  `validate!` runs them from `initialize`, before `freeze`.
- Removed both from `ParamsScope` and the two call sites in `#validates`.
- `check_coerce_with` deliberately stays in `ParamsScope#validate_coerce`:
  it is gated on the remountable-API skip (`return unless
  coerce_options[:type]`, because a base instance has no resolved type
  until the mounted instance replays) and is therefore not a pure
  construction-time invariant.

Spec fixture update: `params_documentation_spec` built a spec with
`default: 42, values: [1, 2, 3]` purely to exercise `document_params`;
that combination can no longer be constructed, so the fixture now uses a
coherent `default: 1`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pull Request #2720: Move declaration-coherence checks into ValidationsSpec

1084 of 1167 branches covered (92.89%)

Branch coverage included in aggregate %.

17 of 17 new or added lines in 1 file covered. (100.0%)

3497 of 3554 relevant lines covered (98.4%)

32156.05 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.4-gemfiles/rails_7_2.gemfile - 25909112239.1 15 May 2026 08:53AM UTC 160
95.74
GitHub Action Run
2 run-4.0-gemfiles/rack_2_2.gemfile - 25909112239.2 15 May 2026 08:53AM UTC 159
95.69
GitHub Action Run
3 run-3.2-gemfiles/rails_8_0.gemfile - 25909112239.3 15 May 2026 08:52AM UTC 160
95.78
GitHub Action Run
4 run-4.0-gemfiles/rack_3_2.gemfile - 25909112239.4 15 May 2026 08:53AM UTC 159
95.73
GitHub Action Run
5 run-3.4-gemfiles/rack_3_0.gemfile - 25909112239.5 15 May 2026 08:53AM UTC 159
95.73
GitHub Action Run
6 run-3.2-gemfiles/rack_3_2.gemfile - 25909112239.6 15 May 2026 08:53AM UTC 159
95.78
GitHub Action Run
7 run-3.3-Gemfile - 25909112239.7 15 May 2026 08:54AM UTC 159
95.73
GitHub Action Run
8 run-3.2-gemfiles/rails_8_1.gemfile - 25909112239.8 15 May 2026 08:53AM UTC 160
95.78
GitHub Action Run
9 run-3.2-gemfiles/rack_3_1.gemfile - 25909112239.9 15 May 2026 08:53AM UTC 159
95.78
GitHub Action Run
10 run-3.4-gemfiles/rack_3_2.gemfile - 25909112239.10 15 May 2026 08:53AM UTC 159
95.73
GitHub Action Run
11 run-3.3-gemfiles/rack_2_2.gemfile - 25909112239.11 15 May 2026 08:53AM UTC 159
95.69
GitHub Action Run
12 run-3.3-gemfiles/rack_3_1.gemfile - 25909112239.12 15 May 2026 08:53AM UTC 159
95.73
GitHub Action Run
13 run-4.0-Gemfile - 25909112239.13 15 May 2026 08:53AM UTC 159
95.73
GitHub Action Run
14 run-3.4-gemfiles/rack_2_2.gemfile - 25909112239.14 15 May 2026 08:52AM UTC 159
95.69
GitHub Action Run
15 run-3.2-Gemfile - 25909112239.15 15 May 2026 08:52AM UTC 159
95.78
GitHub Action Run
16 run-4.0-gemfiles/rack_3_0.gemfile - 25909112239.16 15 May 2026 08:53AM UTC 159
95.73
GitHub Action Run
17 run-4.0-gemfiles/dry_validation.gemfile - 25909112239.17 15 May 2026 08:54AM UTC 159
58.06
GitHub Action Run
18 run-3.4-gemfiles/rails_8_1.gemfile - 25909112239.18 15 May 2026 08:53AM UTC 160
95.74
GitHub Action Run
19 run-3.3-gemfiles/rails_8_1.gemfile - 25909112239.19 15 May 2026 08:53AM UTC 160
95.74
GitHub Action Run
20 run-4.0-gemfiles/rails_8_0.gemfile - 25909112239.20 15 May 2026 08:53AM UTC 160
95.74
GitHub Action Run
21 run-4.0-gemfiles/multi_xml.gemfile - 25909112239.21 15 May 2026 08:53AM UTC 159
36.32
GitHub Action Run
22 run-3.3-gemfiles/rack_3_0.gemfile - 25909112239.22 15 May 2026 08:53AM UTC 159
95.73
GitHub Action Run
23 run-3.4-gemfiles/rails_8_0.gemfile - 25909112239.23 15 May 2026 08:54AM UTC 160
95.74
GitHub Action Run
24 run-4.0-gemfiles/grape_entity.gemfile - 25909112239.24 15 May 2026 08:53AM UTC 159
49.99
GitHub Action Run
25 run-4.0-gemfiles/rack_3_1.gemfile - 25909112239.25 15 May 2026 08:53AM UTC 159
95.73
GitHub Action Run
26 run-3.4-Gemfile - 25909112239.26 15 May 2026 08:53AM UTC 159
95.73
GitHub Action Run
27 run-3.3-gemfiles/rails_8_0.gemfile - 25909112239.27 15 May 2026 08:52AM UTC 160
95.74
GitHub Action Run
28 run-4.0-gemfiles/rails_7_2.gemfile - 25909112239.28 15 May 2026 08:53AM UTC 160
95.74
GitHub Action Run
29 run-4.0-gemfiles/multi_json.gemfile - 25909112239.29 15 May 2026 08:53AM UTC 159
36.32
GitHub Action Run
30 run-3.3-gemfiles/rails_7_2.gemfile - 25909112239.30 15 May 2026 08:53AM UTC 160
95.74
GitHub Action Run
31 run-3.2-gemfiles/rails_7_2.gemfile - 25909112239.31 15 May 2026 08:53AM UTC 160
95.78
GitHub Action Run
32 run-3.2-gemfiles/rack_2_2.gemfile - 25909112239.32 15 May 2026 08:52AM UTC 159
95.73
GitHub Action Run
33 run-3.4-gemfiles/rack_3_1.gemfile - 25909112239.33 15 May 2026 08:54AM UTC 159
95.73
GitHub Action Run
34 run-4.0-gemfiles/hashie.gemfile - 25909112239.34 15 May 2026 08:53AM UTC 159
62.41
GitHub Action Run
35 run-3.2-gemfiles/rack_3_0.gemfile - 25909112239.35 15 May 2026 08:53AM UTC 159
95.78
GitHub Action Run
36 run-3.3-gemfiles/rack_3_2.gemfile - 25909112239.36 15 May 2026 08:53AM UTC 159
95.73
GitHub Action Run
37 run-4.0-gemfiles/rails_8_1.gemfile - 25909112239.37 15 May 2026 08:53AM UTC 160
95.74
GitHub Action Run
Source Files on build 25909112239
  • Tree
  • List 160
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25909112239
  • Pull Request #2720
  • PR Base - master (#25873678149)
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