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

mknos / PerlPowerTools / 6734083356
76%
master: 62%

Build:
Build:
LAST BUILD BRANCH: head-nplus
DEFAULT BRANCH: master
Ran 02 Nov 2023 02:44PM UTC
Jobs 1
Files 4
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

02 Nov 2023 02:36PM UTC coverage: 75.734%. Remained the same
6734083356

push

github

web-flow
diff: validation for -U and -C

* The -U option accepts the number -1 but perl dies

perl diff -U -1  A B 
--- A	Sat Oct 28 11:49:12 2023
+++ B	Sat Oct 28 11:49:24 2023
@@ -3104,-1 +3104,-1 @@
Modification of non-creatable array value attempted, subscript -1 at diff line 383.

* For -U 0, output matches GNU diff on my Linux system
* OpenBSD diff command also accepts -U 0
* "-U hello" is interpreted as -U 0 but this should be an error
* Looking at the option parser, -C and -U have the same problem
* Standards document doesn't mention -U, but has wording about -C value being a positive integer[1]
* Follow OpenBSD diff and allow -U 0, but raise error for negative values (same treatment for -C)

1. https://pubs.opengroup.org/onlinepubs/009604499/utilities/diff.html

387 of 511 relevant lines covered (75.73%)

4407.74 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6734083356.1 02 Nov 2023 02:44PM UTC 0
75.73
GitHub Action Run
Source Files on build 6734083356
Detailed source file information is not available for this build.
  • Back to Repo
  • 8c437abe on github
  • Prev Build on master (#6716688856)
  • Next Build on diff-contextlen (#6734083340)
  • 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