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

ruby-grape / grape / 42593050832
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: ractor-mode
DEFAULT BRANCH: master
Ran 09 Nov 2026 09:23AM UTC
Jobs 23
Files 178
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

09 Nov 2026 09:23AM UTC coverage: 100.0%. Remained the same
42593050832

push

github

ericproulx
Count a given scope in an Array at its parent's nesting depth

A `given` inside an Array scope is a lateral scope typed Array, so that
the iterator walks its parent's elements and records their indices.
find_array_depth counted that as one more level of nesting, although a
lateral scope has no element to map and its params are its parent's.
The iterator then expected the elements a request sent one level deeper
than they are, with two effects:

- AttributesIterator#sent_elements? never held for the given scope, so
  in an optional Array an element sent empty was taken for one left
  out and passed over. `requires :b` under `given a: ->(v) { v != 'skip' }`
  let `[{ a: 'x', b: 1 }, {}]` through, although `[{ a: 'x', b: 1 },
  { a: nil }]`, and the same declaration without `given`, answer 400.
- An element the request wrapped in an extra Array was unwrapped for
  the given scope's validators alone, so they reported errors from
  inside it on top of `array[0] is invalid`.

A lateral scope now has its parent's array_depth, so a given scope reads
its Array's elements where the Array scope does. The group validators
read the same flag once #3066 lands, so they validate an element sent
empty too.

Refs #3066.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

1589 of 1589 branches covered (100.0%)

Branch coverage included in aggregate %.

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

4673 of 4673 relevant lines covered (100.0%)

19356.86 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/rails_8_0.gemfile - 42593050832.1 09 Nov 2026 09:23AM UTC 178
98.87
GitHub Action Run
2 run-4.0-gemfiles/grape_swagger.gemfile - 42593050832.2 09 Nov 2026 09:24AM UTC 176
52.82
GitHub Action Run
3 run-3.4-gemfiles/rack_3_1.gemfile - 42593050832.3 09 Nov 2026 09:24AM UTC 177
98.86
GitHub Action Run
4 run-4.0-gemfiles/multi_xml_0_8.gemfile - 42593050832.4 09 Nov 2026 09:24AM UTC 176
45.75
GitHub Action Run
5 run-4.0-gemfiles/rack_3_1.gemfile - 42593050832.5 09 Nov 2026 09:24AM UTC 177
98.86
GitHub Action Run
6 run-4.0-gemfiles/multi_json.gemfile - 42593050832.6 09 Nov 2026 09:23AM UTC 176
45.98
GitHub Action Run
7 run-3.3-gemfiles/rails_8_0.gemfile - 42593050832.7 09 Nov 2026 09:23AM UTC 178
98.88
GitHub Action Run
8 run-4.0-gemfiles/hashie.gemfile - 42593050832.8 09 Nov 2026 09:24AM UTC 176
59.29
GitHub Action Run
9 run-4.0-gemfiles/multi_json_1_20.gemfile - 42593050832.9 09 Nov 2026 09:24AM UTC 176
46.01
GitHub Action Run
10 run-3.4-Gemfile - 42593050832.10 09 Nov 2026 09:24AM UTC 177
98.86
GitHub Action Run
11 run-3.4-gemfiles/rack_3_2.gemfile - 42593050832.11 09 Nov 2026 09:24AM UTC 177
98.86
GitHub Action Run
12 run-3.3-gemfiles/rack_3_1.gemfile - 42593050832.12 09 Nov 2026 09:24AM UTC 177
98.88
GitHub Action Run
13 run-4.0-gemfiles/multi_xml.gemfile - 42593050832.13 09 Nov 2026 09:24AM UTC 176
45.72
GitHub Action Run
14 run-4.0-gemfiles/dry_validation.gemfile - 42593050832.14 09 Nov 2026 09:24AM UTC 176
56.78
GitHub Action Run
15 run-3.3-Gemfile - 42593050832.15 09 Nov 2026 09:24AM UTC 177
98.88
GitHub Action Run
16 run-4.0-gemfiles/rack_3_2.gemfile - 42593050832.16 09 Nov 2026 09:24AM UTC 177
98.86
GitHub Action Run
17 run-4.0-Gemfile - 42593050832.17 09 Nov 2026 09:24AM UTC 177
98.86
GitHub Action Run
18 run-3.4-gemfiles/rails_8_0.gemfile - 42593050832.18 09 Nov 2026 09:24AM UTC 178
98.87
GitHub Action Run
19 run-4.0-gemfiles/rails_8_1.gemfile - 42593050832.19 09 Nov 2026 09:24AM UTC 178
98.87
GitHub Action Run
20 run-3.4-gemfiles/rails_8_1.gemfile - 42593050832.20 09 Nov 2026 09:23AM UTC 178
98.87
GitHub Action Run
21 run-3.3-gemfiles/rack_3_2.gemfile - 42593050832.21 09 Nov 2026 09:24AM UTC 177
98.88
GitHub Action Run
22 run-4.0-gemfiles/grape_entity.gemfile - 42593050832.22 09 Nov 2026 09:23AM UTC 176
48.82
GitHub Action Run
23 run-3.3-gemfiles/rails_8_1.gemfile - 42593050832.23 09 Nov 2026 09:24AM UTC 178
98.88
GitHub Action Run
Source Files on build 42593050832
  • Tree
  • List 178
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #42593050832
  • bbfc16bb on github
  • Prev Build on master (#42591433311)
  • Next Build on fix/given-in-array-sent-elements (#42593074887)
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