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

mknos / PerlPowerTools / 12195552274
72%
master: 62%

Build:
Build:
LAST BUILD BRANCH: head-nplus
DEFAULT BRANCH: master
Ran 06 Dec 2024 08:37AM UTC
Jobs 1
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

06 Dec 2024 08:33AM UTC coverage: 72.464% (-0.7%) from 73.196%
12195552274

push

github

web-flow
fmt: stop breaking up words

* I was annoyed with the old fmt algorithm because a word gets incorrectly chopped in the middle
* Take a hint about parsing from NetBSD fmt.c source which splits input into word/whitespace_suffix pairs
* Take a hint about paragraphing from GNU version output
* We know the paragraph is finished when the indentation level of current word differs from the previous, or if we see two newlines in a row

%ifconfig | head -n 16 | perl fmt -w 52
eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500 
        ether dc:a6:32:e1:12:27  txqueuelen 1000  
        (Ethernet) RX packets 0  bytes 0 (0.0 B) 
        RX errors 0  dropped 0  overruns 0  frame 0 
        TX packets 0  bytes 0 (0.0 B) 
        TX errors 0  dropped 0 overruns 0  carrier 0  
        collisions 0 

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536 
        inet 127.0.0.1  netmask 255.0.0.0 
        inet6 ::1  prefixlen 128  scopeid 0x10<host> 
        loop  txqueuelen 1000  (Local Loopback) 
        RX packets 42  bytes 4449 (4.3 KiB) 
        RX errors 0  dropped 0  overruns 0  frame 0 
        TX packets 42  bytes 4449 (4.3 KiB) 
        TX errors 0  dropped 0 overruns 0  carrier 0  
        collisions 0 


%ifconfig | head -n 16 | perl fmt -w 42
eth0: flags=4099<UP,BROADCAST,MULTICAST>  
mtu 1500 
        ether dc:a6:32:e1:12:27  txqueuelen 
        1000  (Ethernet) RX packets 0  
        bytes 0 (0.0 B) RX errors 0  
        dropped 0  overruns 0  frame 0 TX 
        packets 0  bytes 0 (0.0 B) TX 
        errors 0  dropped 0 overruns 0  
        carrier 0  collisions 0 

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 
65536 
        inet 127.0.0.1  netmask 255.0.0.0 
        inet6 ::1  prefixlen 128  scopeid 
        0x10<host> loop  txqueuelen 1000  
        (Local Loopback) RX packets 42  
        bytes 4449 (4.3 KiB) RX errors 0  
        dropped 0  overruns 0  frame 0 TX 
        packets 42  bytes 4449 (4.3 KiB) TX 
        err... (continued)

350 of 483 relevant lines covered (72.46%)

4697.83 hits per line

Jobs
ID Job ID Ran Files Coverage
1 12195552274.1 06 Dec 2024 08:37AM UTC 0
72.46
GitHub Action Run
Source Files on build 12195552274
Detailed source file information is not available for this build.
  • Back to Repo
  • ed9a90b5 on github
  • Prev Build on master (#12191588442)
  • 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