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

briandfoy / pod-perldoc / 22618984356
15%

Build:
DEFAULT BRANCH: master
Ran 03 Mar 2026 10:36AM UTC
Jobs 1
Files 13
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

03 Mar 2026 10:32AM UTC coverage: 52.326% (+44.6%) from 7.75%
22618984356

push

github

web-flow
Fix approach to pagers and terminals (#79)

* Sync all OS detection lines

* Move inspection of groff into main module (Perldoc.pm) from ToMan.pm:

The ToMan formatter would search for the groff version it has available
but based on CPAN RT #120229, we need to determine this much earlier to
decide whether to pass on to ToMan or not.

This does not make any behavioral changes (other than temporarily
removing a debug message).

* Two helper functions from Pod::Perldoc::BaseTo were moved into
  Perldoc.pm: _get_path_components() and _find_executable_in_path().
* Perldoc.pm now has a method inspect_execs() which tries to find all
  available executables of a given program. It uses data from a new
  helper function, _exec_data(). Currently only nroff is supported.
* From ToMan we removed the code for detecting nroff and instead
  incorporated them in _exec_data() or a new function
  _find_executable() -- both in Perldoc.pm.
* Perldoc.pm's _inspect_execs() now calls _find_executable(),
  _find_executable_in_path(), and _get_path_components().

ToTerm can now be switched to ToMan and everything still works as it did
before, but we are not doing this yet.

The next commit will start addressing the logic for picking ToMan
or ToTerm.

* Clean up existing logic for determining whether to use ToTerm:

This is just too much to read or figure out at once. Instead of every
possible condition (including unless !(...), which is ridiculous), it's
simply the obvious cocnditions: A set of OS's or a check on term.

If I understand this logic correctly (and I had to write some tests to
verify), it means that we are not using ToTerm for Windows, DOS,
AmigaOS, or for the recognized terms listed ("*dumb*", "*emacs*",
"*none*", and "*unknown*". The fallback is ToText. I guess that makes
sense.

* Initialize pager (and more) before formatter classes:

The formatter class will need to know which pagers have been found so it
could determine whether ToTerm is a good option.

* Onl... (continued)

165 of 172 new or added lines in 4 files covered. (95.93%)

765 of 1462 relevant lines covered (52.33%)

10.15 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
7
52.77
49.86% lib/Pod/Perldoc.pm
Jobs
ID Job ID Ran Files Coverage
1 22618984356.1 03 Mar 2026 10:36AM UTC 13
52.33
GitHub Action Run
Source Files on build 22618984356
  • Tree
  • List 13
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 4726b4bb on github
  • Prev Build on master (#21619790764)
  • Next Build on master (#22619149599)
  • 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