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

dblock / ruby-enum / #29
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: dblock/coveralls-github-token
DEFAULT BRANCH: master
Ran 15 Aug 2026 01:52AM UTC
Jobs 1
Files 8
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

15 Aug 2026 01:51AM UTC coverage: 100.0%. Remained the same
#29

Pull #60

dblock
Memoize merged enum hashes and add inheritance benchmark

Fix a performance regression introduced when keys, key?, value?, key,
value, to_h, parse and each were made to walk the superclass chain:
every call was recomputing the merged hash from scratch instead of
caching it, making these methods significantly slower on subclasses.

- Memoize _enum_hash/_enums_by_value, invalidating on define.
- Disable Metrics/ModuleLength rubocop cop (module grew past the
  default 100-line limit due to the memoization).
- Add benchmarks/inheritance.rb and rake benchmark:inheritance task.
- Fix README documenting the case benchmark task as
  'rake benchmarks:case' instead of the actual 'rake benchmark:case'.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Pull Request #60: Memoize merged enum hashes to fix superclass-lookup performance regression

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

161 of 161 relevant lines covered (100.0%)

6.86 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #29.1 15 Aug 2026 01:52AM UTC 8
100.0
Source Files on build #29
  • Tree
  • List 8
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #60
  • PR Base - master (#)
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