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

mknos / PerlPowerTools / 7068401090
76%
master: 62%

Build:
Build:
LAST BUILD BRANCH: head-nplus
DEFAULT BRANCH: master
Ran 02 Dec 2023 05:57AM UTC
Jobs 1
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

02 Dec 2023 05:49AM UTC coverage: 75.734%. Remained the same
7068401090

push

github

web-flow
ls: too many totals

* File arguments are split into two lists: Dirs and Files
* Two separate loops call List(), first for Files list then for Dirs
* "perl ls -lR a a/a" was printing a "total" line twice, once (correctly) for dir "a" then (incorrectly) for regular file "a/a"
* Directory name line "a/a:" was also being printed for argument "a/a" but it is not a directory (see below output)
* Fix this by passing a new param to List() to tell it whether the entry being listed is a directory

%perl ls -lR a a/a # old output
a/a:
total 176
-rwxr-xr-x   1 pi       pi           88214 Nov 21 10:20 a/a

a:
total 224
-rwxr-xr-x   1 pi       pi           88214 Nov 21 10:20 a
drwxr-xr-x   2 pi       pi            4096 Dec  1 19:32 b
-rw-r--r--   1 pi       pi           20480 Nov 20 04:02 new.tar

a/b:
total 8
-rw-r--r--   1 pi       pi               3 Dec  1 19:32 new

387 of 511 relevant lines covered (75.73%)

4407.74 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7068401090.1 02 Dec 2023 05:57AM UTC 0
75.73
GitHub Action Run
Source Files on build 7068401090
Detailed source file information is not available for this build.
  • Back to Repo
  • dd4c91b1 on github
  • Prev Build on master (#7068391963)
  • Next Build on ls-totals (#7068401091)
  • 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