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

tom-lord / regexp-examples / 114 / 1
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: v1.5.1
DEFAULT BRANCH: master
Ran 08 Mar 2015 01:22PM UTC
Files 11
Run time 1s
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

08 Mar 2015 01:14PM UTC coverage: 99.83% (+1.6%) from 98.279%
2.0.0-p598

push

travis-ci

tom-lord
Version bump (v1.1.0)

Implemented Regexp#random_example !!!

This is effectively just a (MUCH) more efficient way of doing:
/complicated .{20} regex/.examples(max_group_results: 9999999999).sample(1)

Instead, you can use much more optimised code for this method via:
/complicated .{20} regex/.random_example

The key differrence being that Regexp#random_example does not store any
more than 1 result in memory, at any time, making its performance scale
linearly rather than exponentially.

586 of 587 relevant lines covered (99.83%)

180.06 hits per line

Source Files on job 114.1 (2.0.0-p598)
  • Tree
  • List 0
  • Changed 7
  • Source Changed 2
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 114
  • Travis Job 114.1
  • d58aa7b4 on github
  • Prev Job for 2.0.0-p598 on random_example (#113.1)
  • Next Job for 2.0.0-p598 on random_example (#116.1)
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