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

mknos / PerlPowerTools / 7650329002
76%
master: 62%

Build:
Build:
LAST BUILD BRANCH: head-nplus
DEFAULT BRANCH: master
Ran 25 Jan 2024 05:34AM 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

25 Jan 2024 05:32AM UTC coverage: 75.781%. Remained the same
7650329002

push

github

web-flow
ed: search forward staring from next line

* Problem1: If a search failed, ed was incorrectly raising Invalid Address error
* We want to agree with GNU ed, and raise a No Match error in this case
* The abstraction is kind of broken because sub-commands are usually called after edParse() returns
* In the case of edSearchForward() and edSearchBackward(), it is called by edParse()->edCalculateLine()
* Designate CalculateLine() return value -1 as match error, and teach edParse() to handle this
* Test1: search for non-existent pattern in script "awk": "?sdfsklfjhsdffd" and "/sd234234234"
* Future work: move search code out of CalculateLine()?
* Problem2: edSearchForwards() is supposed to start searching from currentLine+1, not currentLine (found when testing against GNU ed)
* Test2: Jump to line 1 of script "awk" then search forwards for pattern "perl"

perl ed -p '>>> ' awk
4595
>>> 1
#!/usr/bin/perl
>>> /perl
Author: Tom Christiansen, tchrist@perl.com
>>> n
7	Author: Tom Christiansen, tchrist@perl.com
>>> q

388 of 512 relevant lines covered (75.78%)

13197.41 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7650329002.1 25 Jan 2024 05:34AM UTC 0
75.78
GitHub Action Run
2 7650329002.2 25 Jan 2024 05:34AM UTC 0
75.78
GitHub Action Run
3 7650329002.3 25 Jan 2024 05:34AM UTC 0
75.78
GitHub Action Run
Source Files on build 7650329002
Detailed source file information is not available for this build.
  • Back to Repo
  • 23193cf0 on github
  • Prev Build on master (#7650286372)
  • Next Build on ed-searchforward (#7650329004)
  • 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