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

mknos / PerlPowerTools / 7460805084
76%
master: 62%

Build:
Build:
LAST BUILD BRANCH: head-nplus
DEFAULT BRANCH: master
Ran 09 Jan 2024 12:00PM UTC
Jobs 3
Files 4
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

09 Jan 2024 11:58AM UTC coverage: 75.781%. Remained the same
7460805084

push

github

web-flow
title: better input validation for -b and -f

* Options -b and -f are consistent in how the value is handled
* Byte and field numbers count from 1
* Negative numbers are treated as a range end, with range starting from 1
* Regular ranges have 2 numbers separated by '-'
* Introduce a number validation function
* test1: positive -b value: "echo 'a:b:c:d' | perl cut -b 3" --> byte 3 is "b"
* test2: negative -b value: "echo 'a:b:c:d' | perl cut -b -3" --> bytes 1-3 are "a:b"
* test3: -b range: "echo 'a:b:c:d' | perl cut -b 2-3" --> bytes 2-3 are ":b"
* test4: positive -f value: "echo 'a:b:c:d' | perl cut -d ':' -f 2" --> field 2 is "b"
* test5: negative -f value: "echo 'a:b:c:d' | perl cut -d ':' -f -2" --> fields 1-2 are "a:b"
* test6: -f range: "echo 'a:b:c:d' | perl cut -d ':' -f 2-3" --> fields 2-3 are "b:c"

388 of 512 relevant lines covered (75.78%)

13197.41 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7460805084.1 09 Jan 2024 12:00PM UTC 0
75.78
GitHub Action Run
2 7460805084.2 09 Jan 2024 12:01PM UTC 0
75.78
GitHub Action Run
3 7460805084.3 09 Jan 2024 12:01PM UTC 0
75.78
GitHub Action Run
Source Files on build 7460805084
Detailed source file information is not available for this build.
  • Back to Repo
  • 700bad3f on github
  • Prev Build on master (#7460744919)
  • Next Build on cut-checknum (#7460805099)
  • 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