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

mknos / PerlPowerTools / 13511506820
72%
master: 62%

Build:
Build:
LAST BUILD BRANCH: head-nplus
DEFAULT BRANCH: master
Ran 25 Feb 2025 01:24AM UTC
Jobs 10
Files 3
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

25 Feb 2025 01:22AM UTC coverage: 73.085% (+0.7%) from 72.349%
13511506820

push

github

web-flow
patch: parse 2-address append in ed-diff

* When processing an "a" (append text) command in an ed-style diff, line number ranges are not parsed correctly
* If a range (e.g. "1,2") is given as a prefix to "a", the 2nd address ("2") is used as the target address
* Regular diff tools don't output "a" commands with 2 addresses
* ed-style diffs can be pasted from a previous ed editor session or typed manually, so having extra validation here is helpful
* To test this, I bypassed the code for running an external ed program
* I modified a diff generated by "diff -e", changing the "322a" command to "1,322a"... the file is patched successfully

%cat bad.diffe 
1,322a
	my $Maxlen = 1;		# longest string for current directory
.
317,318d
113d
%perl patch -e ls bad.diffe 
Hmm...  Looks like an ed diff to me...
Patching file ls using Plan A...
Hunk #1 succeeded at 113
Hunk #2 succeeded at 317
Hunk #3 succeeded at 322
done
%cmp ls ls2

353 of 483 relevant lines covered (73.08%)

46898.09 hits per line

Jobs
ID Job ID Ran Files Coverage
1 13511506820.1 25 Feb 2025 01:24AM UTC 3
72.35
GitHub Action Run
2 13511506820.2 25 Feb 2025 01:24AM UTC 3
72.35
GitHub Action Run
3 13511506820.3 25 Feb 2025 01:24AM UTC 3
72.35
GitHub Action Run
4 13511506820.4 25 Feb 2025 01:24AM UTC 3
72.35
GitHub Action Run
5 13511506820.5 25 Feb 2025 01:24AM UTC 3
72.35
GitHub Action Run
6 13511506820.6 25 Feb 2025 01:24AM UTC 3
72.35
GitHub Action Run
7 13511506820.7 25 Feb 2025 01:24AM UTC 3
72.35
GitHub Action Run
8 13511506820.8 25 Feb 2025 01:24AM UTC 3
72.35
GitHub Action Run
9 13511506820.9 25 Feb 2025 01:24AM UTC 3
72.35
GitHub Action Run
10 13511506820.10 25 Feb 2025 01:24AM UTC 3
72.35
GitHub Action Run
Source Files on build 13511506820
  • Tree
  • List 3
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 905802a3 on github
  • Prev Build on master (#13510774038)
  • Next Build on patch-ed-acmd (#13511506811)
  • Delete
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