develooper Front page | perl.perl5.porters | Postings from July 2012

[perl #113926] Pod::Html::anchorify() and htmlify() are not tested

James E Keenan
July 1, 2012 12:51
[perl #113926] Pod::Html::anchorify() and htmlify() are not tested
Message ID:
# New Ticket Created by  James E Keenan 
# Please include the string:  [perl #113926]
# in the subject line of all future correspondence about this issue. 
# <URL: >

This is a bug report for perl from,
generated with the help of perlbug 1.39 running under perl 5.16.0.

During the DuckDuckGo hackathon (, I had 
occasion to discuss with Rik Signes. 
He mentioned that one likely approach to the long-term maintenance of 
Pod::Html would be to dual-life it, i.e., to transfer its maintenance to 
CPAN. Anticipating that, I copied the source code and tests for 
Pod::Html from blead into a github repository, a copy of which can be 
found here:

This fork enabled me to study Pod::Html's source code and tests.  As I 
customarily do, I performed coverage analysis using Devel::Cover.  When 
I did so, I noticed that Pod::Html::anchorify() was not exercised during 
the test suite.  Since Pod::Html::htmlify() is used only within 
anchorify it, too, was implicitly untested.

The attached patch is written, I believe, so that it can be added to the 
Pod::Html test suite in the Perl 5 core distribution.  Please review.

Thank you very much.
Jim Keenan
Site configuration information for perl 5.16.0:

Configured by jimk at Sun May 20 20:01:26 EDT 2012.

Summary of my perl5 (revision 5 version 16 subversion 0) configuration:

     osname=darwin, osvers=8.11.0, archname=darwin-2level
     uname='darwin macintosh-8.local 8.11.0 darwin kernel version 
8.11.0: wed oct 10 18:26:00 pdt 2007; root:xnu-792.24.17~1release_ppc 
power macintosh powerpc '
     hint=recommended, useposix=true, d_sigaction=define
     useithreads=undef, usemultiplicity=undef
     useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
     use64bitint=undef, use64bitall=undef, uselongdouble=undef
     usemymalloc=n, bincompat5005=undef
     cc='cc', ccflags ='-fno-common -DPERL_DARWIN -fno-strict-aliasing 
-pipe -I/usr/local/include -I/opt/local/include',
     cppflags='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe 
-I/usr/local/include -I/opt/local/include'
     ccversion='', gccversion='4.0.1 (Apple Computer, Inc. build 5250)', 
     intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
     ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
     alignbytes=8, prototype=define
   Linker and Libraries:
     ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' 
-L/usr/local/lib -L/opt/local/lib'
     libpth=/usr/local/lib /opt/local/lib /usr/lib
     libs=-ldbm -ldl -lm -lc
     perllibs=-ldl -lm -lc
     libc=, so=dylib, useshrplib=false, libperl=libperl.a
   Dynamic Linking:
     dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
     cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup 
-L/usr/local/lib -L/opt/local/lib'

Locally applied patches:

@INC for perl 5.16.0:

Environment for perl 5.16.0:
     LANG (unset)
     LANGUAGE (unset)
     LD_LIBRARY_PATH (unset)
     LOGDIR (unset)
     PERL_BADLANG (unset)
     SHELL=/bin/bash Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About