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

rust-lang / regex / 1315
93%

Build:
DEFAULT BRANCH: master
Ran 18 Nov 2017 03:19PM UTC
Jobs 1
Files 21
Run time 2s
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

pending completion
1315

cron

travis-ci

bors
Auto merge of #395 - Lapin0t:master, r=BurntSushi

Fix `Regex::replacen` when replacing an empty match.

Fixes #393, #394.

There was some logic error when deciding to return `Cow::Borrowed` vs `Cow::Owned` in the fast-path. I took the same solution as the slow-path, ie use `peekable` on the iterator. I'm not sure this is the most efficient way (maybe just add `mut did_replace = false` and set it to true in the loop), but it does the job.

3413 of 3779 relevant lines covered (90.31%)

0.9 hits per line

Jobs
ID Job ID Ran Files Coverage
4 1315.4 18 Nov 2017 03:19PM UTC 0
90.31
Travis Job 1315.4
Source Files on build 1315
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1315
  • 37bfbd9d on github
  • Prev Build on master (#1314)
  • Next Build on master (#1316)
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