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

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

Build:
Build:
LAST BUILD BRANCH: robust_mounted_app_comparison
DEFAULT BRANCH: master
Ran 16 May 2026 09:40PM UTC
Jobs 37
Files 164
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

16 May 2026 09:39PM UTC coverage: 96.968%. Remained the same
25973645650

Pull #2726

github

ericproulx
Reuse one AttributesIterator per validator; drop Enumerable

AttributesIterator's attrs/scope are static per validator; only params
varies per request. Build the iterator once in Base#initialize (frozen)
via an overridable iterator_class, and thread params through #each
instead of storing request-derived state in @original_params/@params.
The reused instance is shared across threads, so it must hold no
mutable per-request state.

- Remove `include Enumerable` (dead + misleading: #each never returned
  an Enumerator and nothing used map/select/etc.) and the unused
  `attr_reader :scope`.
- MultipleParamsBase#validate! now lazily builds array_errors
  (`nil` -> `||= []`) like Base, avoiding an empty-array allocation
  on the no-error path.

Allocation: one fewer object (~80 B) per validator per request;
speed-neutral. Full validation/endpoint suites green.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pull Request #2726: Reuse one AttributesIterator per validator; drop Enumerable

1084 of 1169 branches covered (92.73%)

Branch coverage included in aggregate %.

19 of 19 new or added lines in 4 files covered. (100.0%)

3521 of 3580 relevant lines covered (98.35%)

31725.24 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/dry_validation.gemfile - 25973645650.1 16 May 2026 09:40PM UTC 163
58.37
GitHub Action Run
2 run-3.3-Gemfile - 25973645650.2 16 May 2026 09:40PM UTC 163
95.67
GitHub Action Run
3 run-3.3-gemfiles/rack_3_2.gemfile - 25973645650.3 16 May 2026 09:40PM UTC 163
95.67
GitHub Action Run
4 run-3.2-gemfiles/rails_8_0.gemfile - 25973645650.4 16 May 2026 09:40PM UTC 164
95.72
GitHub Action Run
5 run-3.2-gemfiles/rack_3_0.gemfile - 25973645650.5 16 May 2026 09:41PM UTC 163
95.72
GitHub Action Run
6 run-3.2-gemfiles/rails_8_1.gemfile - 25973645650.6 16 May 2026 09:40PM UTC 164
95.72
GitHub Action Run
7 run-3.4-gemfiles/rack_2_2.gemfile - 25973645650.7 16 May 2026 09:41PM UTC 163
95.63
GitHub Action Run
8 run-3.2-gemfiles/rack_3_2.gemfile - 25973645650.8 16 May 2026 09:40PM UTC 163
95.72
GitHub Action Run
9 run-3.2-gemfiles/rack_3_1.gemfile - 25973645650.9 16 May 2026 09:40PM UTC 163
95.72
GitHub Action Run
10 run-4.0-gemfiles/multi_json.gemfile - 25973645650.10 16 May 2026 09:41PM UTC 163
36.72
GitHub Action Run
11 run-3.3-gemfiles/rack_3_0.gemfile - 25973645650.11 16 May 2026 09:40PM UTC 163
95.67
GitHub Action Run
12 run-3.4-gemfiles/rack_3_1.gemfile - 25973645650.12 16 May 2026 09:40PM UTC 163
95.67
GitHub Action Run
13 run-3.3-gemfiles/rails_7_2.gemfile - 25973645650.13 16 May 2026 09:40PM UTC 164
95.68
GitHub Action Run
14 run-3.4-gemfiles/rack_3_2.gemfile - 25973645650.14 16 May 2026 09:40PM UTC 163
95.67
GitHub Action Run
15 run-3.3-gemfiles/rack_3_1.gemfile - 25973645650.15 16 May 2026 09:40PM UTC 163
95.67
GitHub Action Run
16 run-3.2-Gemfile - 25973645650.16 16 May 2026 09:40PM UTC 163
95.72
GitHub Action Run
17 run-4.0-gemfiles/multi_xml.gemfile - 25973645650.17 16 May 2026 09:40PM UTC 163
36.72
GitHub Action Run
18 run-4.0-gemfiles/rails_8_1.gemfile - 25973645650.18 16 May 2026 09:40PM UTC 164
95.68
GitHub Action Run
19 run-4.0-gemfiles/rails_7_2.gemfile - 25973645650.19 16 May 2026 09:41PM UTC 164
95.68
GitHub Action Run
20 run-3.3-gemfiles/rails_8_0.gemfile - 25973645650.20 16 May 2026 09:40PM UTC 164
95.68
GitHub Action Run
21 run-3.2-gemfiles/rails_7_2.gemfile - 25973645650.21 16 May 2026 09:40PM UTC 164
95.72
GitHub Action Run
22 run-4.0-gemfiles/hashie.gemfile - 25973645650.22 16 May 2026 09:40PM UTC 163
62.59
GitHub Action Run
23 run-3.4-Gemfile - 25973645650.23 16 May 2026 09:40PM UTC 163
95.67
GitHub Action Run
24 run-4.0-gemfiles/rack_2_2.gemfile - 25973645650.24 16 May 2026 09:41PM UTC 163
95.63
GitHub Action Run
25 run-3.3-gemfiles/rack_2_2.gemfile - 25973645650.25 16 May 2026 09:40PM UTC 163
95.63
GitHub Action Run
26 run-4.0-Gemfile - 25973645650.26 16 May 2026 09:40PM UTC 163
95.67
GitHub Action Run
27 run-4.0-gemfiles/rack_3_2.gemfile - 25973645650.27 16 May 2026 09:41PM UTC 163
95.67
GitHub Action Run
28 run-3.4-gemfiles/rails_8_1.gemfile - 25973645650.28 16 May 2026 09:40PM UTC 164
95.68
GitHub Action Run
29 run-3.4-gemfiles/rails_7_2.gemfile - 25973645650.29 16 May 2026 09:40PM UTC 164
95.68
GitHub Action Run
30 run-3.4-gemfiles/rails_8_0.gemfile - 25973645650.30 16 May 2026 09:41PM UTC 164
95.68
GitHub Action Run
31 run-4.0-gemfiles/rack_3_1.gemfile - 25973645650.31 16 May 2026 09:40PM UTC 163
95.67
GitHub Action Run
32 run-4.0-gemfiles/grape_entity.gemfile - 25973645650.32 16 May 2026 09:41PM UTC 163
50.28
GitHub Action Run
33 run-4.0-gemfiles/rails_8_0.gemfile - 25973645650.33 16 May 2026 09:41PM UTC 164
95.68
GitHub Action Run
34 run-3.2-gemfiles/rack_2_2.gemfile - 25973645650.34 16 May 2026 09:40PM UTC 163
95.68
GitHub Action Run
35 run-3.3-gemfiles/rails_8_1.gemfile - 25973645650.35 16 May 2026 09:40PM UTC 164
95.68
GitHub Action Run
36 run-4.0-gemfiles/rack_3_0.gemfile - 25973645650.36 16 May 2026 09:41PM UTC 163
95.67
GitHub Action Run
37 run-3.4-gemfiles/rack_3_0.gemfile - 25973645650.37 16 May 2026 09:41PM UTC 163
95.67
GitHub Action Run
Source Files on build 25973645650
  • Tree
  • List 164
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25973645650
  • Pull Request #2726
  • PR Base - master (#25973567226)
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