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

mknos / PerlPowerTools / 6959014321
76%
master: 62%

Build:
Build:
LAST BUILD BRANCH: head-nplus
DEFAULT BRANCH: master
Ran 22 Nov 2023 02:58PM 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

22 Nov 2023 02:55PM UTC coverage: 75.734%. Remained the same
6959014321

push

github

web-flow
ed: newline append versus 'r' command

* ed requires that all lines in its buffer are terminated with "\n"
* ed attempts to append a "\n" if it is missing on the last line of input
* The existing append logic in edEdit() was observed to only work for 'E' and 'e' commands, but not 'r'
* With E/e the entire buffer is destroyed and replaced with the content from the new file
* The append logic would then check the final line in buffer *after* the buffer was replaced (this worked ok)
* The 'r' command inserts the file content to any position within the existing buffer (e.g. 0r to insert to beginning of buffer)
* Checking for missing newline at end of buffer doesn't work if the data is inserted at a different location in buffer
* More general fix: check final line of tmp_lines list before it is applied to the buffer
* To test, construct a file 'in' with a missing newline at end, then read it into the beginning of buffer (initiated from file 'in2')

%hd in
00000000  68 65 6c 6c 6f 0a 67 6f  6f 64 62 79 65           |hello.goodbye|
0000000d
%perl ed in2
4595
P
*1,5n
1	#!/usr/bin/perl
2	
3	=begin metadata
4	
5	Name: awk
*0r in
Newline appended
13
*1,5n
1	hello
2	goodbye
3	#!/usr/bin/perl
4	
5	=begin metadata
*Q

387 of 511 relevant lines covered (75.73%)

13223.23 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6959014321.1 22 Nov 2023 02:58PM UTC 0
75.73
GitHub Action Run
2 6959014321.2 22 Nov 2023 02:58PM UTC 0
75.73
GitHub Action Run
3 6959014321.3 22 Nov 2023 02:58PM UTC 0
75.73
GitHub Action Run
Source Files on build 6959014321
Detailed source file information is not available for this build.
  • Back to Repo
  • 46e26a12 on github
  • Prev Build on master (#6952570541)
  • Next Build on ed-newline (#6959014297)
  • 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