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

ruby-grape / grape / 33320900292
97%
master: 100%

Build:
Build:
LAST BUILD BRANCH: fix/cascade-reader
DEFAULT BRANCH: master
Ran 30 Aug 2026 03:54PM UTC
Jobs 32
Files 168
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

30 Aug 2026 03:52PM UTC coverage: 96.969% (-0.002%) from 96.971%
33320900292

Pull #2870

github

ericproulx
Take `declared_params_scope` as a keyword instead of stamping it into opts

`push_declared_params` wrote the scope into the options Hash and guarded
the write so a later call could not overwrite it:

    opts[:declared_params_scope] = self unless opts.key?(:declared_params_scope)
    return @parent.push_declared_params(attrs, **opts) if lateral?

That pair is doing something the code never says. A lateral scope — the one
a `given` block opens — does not store its own declared params; it hands
them to its parent. The stamp is how the attribute stays attributed to the
scope that declared it rather than the one that stores it, which is what
`declared(evaluate_given: true)` later reads through
`attr_meets_dependency?`. Reconstructing that means noticing the guard three
lines below the write.

A default keyword argument states it outright: the receiver when nobody
supplied one, forwarded unchanged when a lateral scope did. Ruby evaluates
the default in the receiver's context, so the semantics are identical.

`as` becomes explicit at the same time, leaving no `**opts` to inspect: both
options a caller may pass are now in the signature.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Pull Request #2870: Take `declared_params_scope` as a keyword instead of stamping it into opts

1232 of 1324 branches covered (93.05%)

Branch coverage included in aggregate %.

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

3887 of 3955 relevant lines covered (98.28%)

27072.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/multi_json.gemfile - 33320900292.1 30 Aug 2026 03:55PM UTC 167
47.43
GitHub Action Run
2 run-4.0-gemfiles/multi_xml_0_8.gemfile - 33320900292.2 30 Aug 2026 03:56PM UTC 167
46.9
GitHub Action Run
3 run-3.4-gemfiles/rack_2_2.gemfile - 33320900292.3 30 Aug 2026 03:54PM UTC 167
95.68
GitHub Action Run
4 run-3.4-gemfiles/rails_8_0.gemfile - 33320900292.4 30 Aug 2026 03:54PM UTC 168
95.72
GitHub Action Run
5 run-3.4-gemfiles/rack_3_1.gemfile - 33320900292.5 30 Aug 2026 03:55PM UTC 167
95.71
GitHub Action Run
6 run-4.0-gemfiles/multi_xml.gemfile - 33320900292.6 30 Aug 2026 03:54PM UTC 167
46.86
GitHub Action Run
7 run-4.0-gemfiles/grape_entity.gemfile - 33320900292.7 30 Aug 2026 03:54PM UTC 167
50.1
GitHub Action Run
8 run-4.0-gemfiles/rack_3_1.gemfile - 33320900292.8 30 Aug 2026 03:56PM UTC 167
95.71
GitHub Action Run
9 run-3.3-Gemfile - 33320900292.9 30 Aug 2026 03:54PM UTC 167
95.71
GitHub Action Run
10 run-4.0-gemfiles/grape_swagger.gemfile - 33320900292.10 30 Aug 2026 03:54PM UTC 167
55.34
GitHub Action Run
11 run-3.4-gemfiles/rails_7_2.gemfile - 33320900292.11 30 Aug 2026 03:55PM UTC 168
95.72
GitHub Action Run
12 run-4.0-gemfiles/rails_8_1.gemfile - 33320900292.12 30 Aug 2026 03:56PM UTC 168
95.72
GitHub Action Run
13 run-4.0-Gemfile - 33320900292.13 30 Aug 2026 03:53PM UTC 167
95.71
GitHub Action Run
14 run-4.0-gemfiles/rack_3_0.gemfile - 33320900292.14 30 Aug 2026 03:54PM UTC 167
95.71
GitHub Action Run
15 run-4.0-gemfiles/rack_2_2.gemfile - 33320900292.15 30 Aug 2026 03:56PM UTC 167
95.68
GitHub Action Run
16 run-3.4-gemfiles/rails_8_1.gemfile - 33320900292.16 30 Aug 2026 03:54PM UTC 168
95.72
GitHub Action Run
17 run-3.4-gemfiles/rack_3_0.gemfile - 33320900292.17 30 Aug 2026 03:56PM UTC 167
95.71
GitHub Action Run
18 run-4.0-gemfiles/rails_7_2.gemfile - 33320900292.18 30 Aug 2026 03:54PM UTC 168
95.72
GitHub Action Run
19 run-3.3-gemfiles/rack_3_0.gemfile - 33320900292.19 30 Aug 2026 03:54PM UTC 167
95.71
GitHub Action Run
20 run-4.0-gemfiles/rails_8_0.gemfile - 33320900292.20 30 Aug 2026 03:54PM UTC 168
95.72
GitHub Action Run
21 run-3.3-gemfiles/rails_7_2.gemfile - 33320900292.21 30 Aug 2026 03:54PM UTC 168
95.72
GitHub Action Run
22 run-3.3-gemfiles/rails_8_0.gemfile - 33320900292.22 30 Aug 2026 03:55PM UTC 168
95.72
GitHub Action Run
23 run-3.3-gemfiles/rack_2_2.gemfile - 33320900292.23 30 Aug 2026 03:54PM UTC 167
95.68
GitHub Action Run
24 run-3.3-gemfiles/rails_8_1.gemfile - 33320900292.24 30 Aug 2026 03:55PM UTC 168
95.7
GitHub Action Run
25 run-4.0-gemfiles/hashie.gemfile - 33320900292.25 30 Aug 2026 03:55PM UTC 167
61.81
GitHub Action Run
26 run-3.3-gemfiles/rack_3_2.gemfile - 33320900292.26 30 Aug 2026 03:54PM UTC 167
95.71
GitHub Action Run
27 run-3.4-gemfiles/rack_3_2.gemfile - 33320900292.27 30 Aug 2026 03:56PM UTC 167
95.71
GitHub Action Run
28 run-3.4-Gemfile - 33320900292.28 30 Aug 2026 03:55PM UTC 167
95.71
GitHub Action Run
29 run-4.0-gemfiles/rack_3_2.gemfile - 33320900292.29 30 Aug 2026 03:54PM UTC 167
95.71
GitHub Action Run
30 run-3.3-gemfiles/rack_3_1.gemfile - 33320900292.30 30 Aug 2026 03:54PM UTC 167
95.71
GitHub Action Run
31 run-4.0-gemfiles/multi_json_1_20.gemfile - 33320900292.31 30 Aug 2026 03:56PM UTC 167
47.47
GitHub Action Run
32 run-4.0-gemfiles/dry_validation.gemfile - 33320900292.32 30 Aug 2026 03:55PM UTC 167
57.88
GitHub Action Run
Source Files on build 33320900292
  • Tree
  • List 168
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #33320900292
  • Pull Request #2870
  • PR Base - master (#33320781540)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc