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

ruby-grape / grape / 25729167044 / 8
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: refactor/nest-path-in-pattern
DEFAULT BRANCH: master
Ran 12 May 2026 10:43AM UTC
Files 158
Run time 13s
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

12 May 2026 10:38AM UTC coverage: 95.747% (-0.004%) from 95.751%
25729167044.8

Pull #2710

github

ericproulx
Tidy up Grape::DeclaredParamsHandler

- Split declared_hash_attr's two-arm Hash branch into two named
  helpers (declare_nested for the recursive case, declare_leaf for
  the terminal one) and lift the Hash check into a guard.
- Extract nested_path_for(parent_path, key) so the
  `path.dup << key.to_s` idiom is replaced with a single non-mutating
  helper, used by both branches and by build_memo_key.
- handle_passed_param: lift the type-nil shortcut into a guard,
  fold the has_children predicate inline into the Hash branch
  (route_params.keys.none? { ... }), and rewrite the if/elsif/elsif
  ladder as three early-return guards. Drop the unused &_block
  parameter (the method already uses an implicit `yield`).

No behaviour change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pull Request #2710: Tidy up Grape::DeclaredParamsHandler

1048 of 1155 branches covered (90.74%)

Branch coverage included in aggregate %.

3432 of 3524 relevant lines covered (97.39%)

1001.73 hits per line

Source Files on job run-4.0-gemfiles/rack_3_1.gemfile - 25729167044.8
  • Tree
  • List 158
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 25729167044
  • 78194674 on github
  • Prev Job for on refactor/declared-params-handler (#25718782466.36)
  • Next Job for on refactor/declared-params-handler (#25850585609.24)
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