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

mknos / PerlPowerTools / 6833671958
76%
master: 62%

Build:
Build:
LAST BUILD BRANCH: head-nplus
DEFAULT BRANCH: master
Ran 11 Nov 2023 10:28AM UTC
Jobs 3
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

11 Nov 2023 10:25AM UTC coverage: 75.734%. Remained the same
6833671958

push

github

web-flow
mail: raise error for message id 0

* Entering a message range including zero is correctly treated as an error (Ma == mail)

Me: perl mail
Me: 0-0
Ma: Invalid message specification, 0 (Should Not Happen) at mail line 478, <STDIN> line 1.

* Entering a message ID of zero directly does not raise an error

Me: 0
Ma: Message: 1
Ma:
Ma: Status: RO
Ma: 
Ma: Status: RO

* Message ID zero is invalid so we should raise an error here (OpenBSD mail raises an error for this)
* Why does 0 get translated magically to 1?
* Debugging shows messagex() is called with num=0 for input "0-0", and num=1 for input "0"
* parseargs() return $cmd="p 0" and arg1 list with only element of 1 (so parseargs is at fault)
* parse_msg_list() gets param of list=" 0" and strips spaces, then takes early return (current id was 1, explaining why 0 becomes 1)
* The early return is intended for a blank line, to select the current message id
* Changing truth check to length check allows code to progress into the loop; this catches the error for "0" as expected

387 of 511 relevant lines covered (75.73%)

13223.23 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6833671958.1 11 Nov 2023 10:28AM UTC 0
75.73
GitHub Action Run
2 6833671958.2 11 Nov 2023 10:28AM UTC 0
75.73
GitHub Action Run
3 6833671958.3 11 Nov 2023 10:29AM UTC 0
75.73
GitHub Action Run
Source Files on build 6833671958
Detailed source file information is not available for this build.
  • Back to Repo
  • dccaeb92 on github
  • Prev Build on master (#6825301819)
  • Next Build on mail-msg0 (#6833671958)
  • 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