Pod-Xhtml-1.60/ 0000755 0165221 0000772 00000000000 11424067100 014520 5 ustar jamiel engineers 0000000 0000000 Pod-Xhtml-1.60/t/ 0000755 0165221 0000772 00000000000 11424067100 014763 5 ustar jamiel engineers 0000000 0000000 Pod-Xhtml-1.60/t/pod_coverage.t 0000644 0165221 0000772 00000000767 11424067054 017627 0 ustar jamiel engineers 0000000 0000000 #!/usr/local/bin/perl -w
#$Id: pod_coverage.t,v 1.3 2006/08/29 12:48:11 andreww Exp $
use Test::More;
eval "use Test::Pod::Coverage 1.00";
plan skip_all => "Test::Pod::Coverage 1.00 required for testing POD Coverage" if $@;
# Methods documented in Pod::Parser
my @pod_parser = map "^$_\$",
qw(command initialize end_pod textblock verbatim parse_tree);
# Private methods
my @private = map "^$_\$", qw(resetMe seq[A-Z]);
all_pod_coverage_ok({also_private => [ qr/^[A-Z_]+$/, @private, @pod_parser ]});
Pod-Xhtml-1.60/t/02links.t 0000644 0165221 0000772 00000006236 11424067054 016451 0 ustar jamiel engineers 0000000 0000000 #!/usr/local/bin/perl -w
#$Id: 02links.t,v 1.9 2006/08/29 12:48:11 andreww Exp $
use strict;
use lib qw(./lib ../lib);
use Test;
use Pod::Xhtml;
use Getopt::Std;
use File::Basename;
getopts('tTs', \my %opt);
if ($opt{t} || $opt{T}) {
require Log::Trace;
import Log::Trace print => {Deep => $opt{T}};
}
chdir ( dirname ( $0 ) );
require Test_LinkParser;
plan tests => 16;
my $pod_links = new Test_LinkParser();
my $parser = new Pod::Xhtml( LinkParser => $pod_links );
# Links to manpages
ok($parser->seqL('Pod::Xhtml') eq 'Pod::Xhtml');
ok($parser->seqL('XHTML Podlator|Pod::Xhtml') eq 'XHTML Podlator (Pod::Xhtml)');
ok($parser->seqL('crontab(5)') eq 'crontab(5)');
# Links to section in other manpages
ok($parser->seqL('Pod::Xhtml/"SEE ALSO"') eq 'SEE ALSO in Pod::Xhtml');
ok($parser->seqL('alt text|Pod::Xhtml/"SEE ALSO"') eq 'alt text (SEE ALSO in Pod::Xhtml)');
ok($parser->seqL('Pod::Xhtml/SYNOPSIS') eq 'SYNOPSIS in Pod::Xhtml');
ok($parser->seqL('alt text|Pod::Xhtml/SYNOPSIS') eq 'alt text (SYNOPSIS in Pod::Xhtml)');
# Links to sections in this manpage
# Since 1.41, these are fully resolved at the end of the POD parse
ok($parser->seqL('/"User Guide"') eq 'User Guide');
ok($parser->seqL('alt text|/"User Guide"') eq 'alt text');
ok($parser->seqL('/Notes') eq 'Notes');
ok($parser->seqL('alt text|/Notes') eq 'alt text');
ok($parser->seqL('"Installation Guide"') eq 'Installation Guide');
ok($parser->seqL('alt text|"Installation Guide"') eq 'alt text');
# Links to web pages
ok($parser->seqL('http://bbc.co.uk/') eq 'http://bbc.co.uk/');
ok($parser->seqL('http://bbc.co.uk/#top') eq 'http://bbc.co.uk/#top');
my $pod_output = 'links.out';
open(OUT, '+>'.$pod_output) or die("Can't open $pod_output: $!");
$parser->parse_from_filehandle(\*DATA, \*OUT);
seek OUT, 0, 0;
my $output = do {local $/;
http://www.bbc.co.uk/opensource/test?ARG=VAL&ARG2=VAL2
Test 2
Test 3
Test 4
"AUTHOR & ACKNOWLEDGEMENTS" in Pod::Xhtml
LINKS } # Log::Trace stubs sub TRACE {} sub DUMP {} __DATA__ =head1 DOUBLE ENCODING TEST Test 1 Lname X Net::Ping X crontab(5) X
sec in name X For Loops in perlsyn X Apple Juice in Net::Ping X BUGS in crontab(5) X
text X Perl Error Messages X Is the host up? X User Crontab X