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

pulibrary / orangelight / 0f1e4dec-8a81-44b5-a348-34c75b16e182
95%
main: 95%

Build:
Build:
LAST BUILD BRANCH: request_spec_cleanup
DEFAULT BRANCH: main
Ran 06 Nov 2025 02:49AM UTC
Jobs 1
Files 224
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

06 Nov 2025 02:39AM UTC coverage: 95.41% (-0.007%) from 95.417%
0f1e4dec-8a81-44b5-a348-34c75b16e182

Pull #5340

circleci

sandbergja
Refactor hidden_fields_item helper into its own view component

To me, this is much easier to read as HTML+ERB than the previous
implementation (which used string concatenation and Rails form
helpers).  I think that the tests (which now use Nokogiri, rather
than direct string comparison) will be less brittle to changes
like the order of attributes within a tag.

It is also 4x as fast to avoid the Rails form helpers, for what
it's worth (not that this helper was a bottleneck in any way):

Before:
```
ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +YJIT +PRISM [arm64-darwin24]
Warming up --------------------------------------
Requests::ApplicationHelper#hidden_fields_item
                         2.214k i/100ms
Calculating -------------------------------------
Requests::ApplicationHelper#hidden_fields_item
                         22.325k (± 2.1%) i/s   (44.79 μs/i) -    112.914k in   5.060022s
```

After:
```
ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +YJIT +PRISM [arm64-darwin24]
Warming up --------------------------------------
Requests::ItemHiddenFieldsComponent
                         8.453k i/100ms
Calculating -------------------------------------
Requests::ItemHiddenFieldsComponent
                         84.098k (± 1.3%) i/s   (11.89 μs/i) -    422.650k in   5.026524s
```
Pull Request #5340: Refactor hidden_fields_item helper into its own view component

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

6195 of 6493 relevant lines covered (95.41%)

1467.21 hits per line

Jobs
ID Job ID Ran Files Coverage
1 0f1e4dec-8a81-44b5-a348-34c75b16e182.1 06 Nov 2025 02:49AM UTC 224
95.41
Source Files on build 0f1e4dec-8a81-44b5-a348-34c75b16e182
  • Tree
  • List 224
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • CircleCI Build #0F1E4DEC...
  • Pull Request #5340
  • PR Base - main (#A94C6445...)
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

© 2025 Coveralls, Inc