lib/Pod/Classdoc/Project.pm

filter: Statementstmt 10.9% 29 / 265 Branchbran 0.0% 0 / 140 Conditioncond 0.0% 0 / 90 MC/DCmcdc 0.0% 0 / 46 Subroutinesub 53.3% 8 / 15 Podpod 0.0% 0 / 1 totaltotal 6.6% 37 / 557 CC 119 SCAR 77.4
CC
119
Cov
6%
renderProject
3192.0
getProjectTOC
2550.0
_recurseDirs
56.0
CRAP 2307.5
↑ Summary lib/Pod/Classdoc.pm »
1 =pod
2  
3 =begin classdoc
4  
5 Generates and merges <cpan>Pod::ProjectDocs</cpan>, <cpan>Pod::Classdoc</cpan>,
6 and <cpan>PPI::HTML::CodeFolder</cpan>output, then generates a Javascripted
7 tree widget (via <cpan>HTML::ListToTree</cpan>) to navigate the merged
8 manuals, classdocs, and folded/highlighted source code.
9  
10 @author Dean Arnold
11 @exports renderProject() the only public method
12 @see <cpan>Pod::ProjectDocs</cpan>
13 @see <cpan>Pod::Classdoc</cpan>
14 @see <cpan>PPI::HTML::CodeFolder</cpan>
15 @see <cpan>HTML::ListToTree</cpan>
16  
17 =end classdoc
18  
19 =cut
20  
21 package Pod::Classdoc::Project;
22  
23 2 ▶use Pod::ProjectDocs;
Subroutine BEGIN: called CC=1 SCAR=0.0
24 2 ▶use Pod::Classdoc;
Subroutine BEGIN: called CC=1 SCAR=0.0
25 2 ▶use JSON;
Subroutine BEGIN: called CC=1 SCAR=0.0
26 2 ▶use Exporter;
Subroutine BEGIN: called CC=1 SCAR=0.0
27  
28 2 ▶use base('Exporter');
Subroutine BEGIN: called CC=1 SCAR=0.0
29  
30 2 @EXPORT = ('renderProject');
31  
32 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
33 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
34  
35 2 our $VERSION = '1.01';
36  
37 2 our %defaults = (
38 'Heredocs', 1,
39 'POD', 1,
40 'Comments', 1,
41 'Expandable', 1,
42 'Imports', 1,
43 'MinFoldLines', 4,
44 );
45  
46 =pod
47  
48 =begin classdoc
49  
50 Generates merged project documentation from <cpan>Pod::ProjectDocs</cpan>,
51 <cpan>Pod::Classdoc</cpan>, and <cpan>PPI::HTML::CodeFOlder</cpan> output,
52 with a table of contents widget generated from <cpan>HTML::ListToTree</cpan>.
53  
54 @optional Additions HTML document to be appended to the TOC widget
55 @optional Comments boolean; if true (the default), fold comments in PPI::HTML::CodeFolder output
56 @optional Charset specifies character set for Pod::ProjectDocs
57 @optional CloseImage name of closed node icon in TOC; default 'closedbook.gif'
58 @optional CSSPath path to CSS files; default is <code>&lt;Output&gt;/css</code>
59 @optional Description specifies description header for Pod::ProjectDocs
60 @optional Download specifies a download file to be appended to the TOC widget
61 @optional Expandable boolean; if true (the default), folds in PPI::HTML::CodeFolder output are expandable
62 @optional Force boolean; if true, forces generation of all Pod::ProjectDocs documents
63 @optional Heredoc boolean; if true (the default), fold heredocs in PPI::HTML::CodeFolder output
64 @optional Imports boolean; if true (the default), fold imports in PPI::HTML::CodeFolder output
65 @optional IconPath path to icon images for TOC; default is <code>&lt;Output&gt;/img</code>
66 @optional JSPath path to Javascript files; default is <code>&lt;Output&gt;/js</code>
67 @optional Language specifies language info for Pod::ProjectDocs
68 @optional Libs library directories to be processed; defaults to './lib' and './bin'
69 @optional MinFoldLines minimum number of lines for codefolding; default 4
70 @optional NoIcons boolean; if true (default false), TOC will not use icons
71 @optional NoSource boolean; if true (default false), omit PPI::HTML::CodeFolder source processing
72 @optional OpenImage name of open node icon in TOC; default 'openbook.gif'
73 @optional Order arrayref of package/script names; TOC nodes will be ordered in same order
74 as this list. Any unlisted packages/scripts will be alphabetically ordered
75 after these nodes are included.
76 @optional Output root path of output files; default './classdocs'
77 @optional POD boolean; if true (the default), fold POD in PPI::HTML::CodeFolder output
78 @optional RootImage name of root node icon in TOC; default 'globe.gif'
79 @optional Title title string for HTML document, and root node of TOC
80 @optional Verbose boolean; if true, emits lots of diagnostic info
81  
82 @static
83  
84 =end classdoc
85  
86 =cut
87  
88 0 ▶sub renderProject {
Subroutine renderProject: not called CC=56 SCAR=80.7
Pod undocumented
89 0 my %args = @_;
90  
91 0 ▶ my $out = $args{Output} || './classdocs';
Condition0%0/2
$args{'Output'} || './classdocs'
l!l
00
MC/DC0%0/1
$args{'Output'} || './classdocs'
$args{'Output'}
Truth table0%0/2
A
A= $args{'Output'}
Aresult
11
00
92 0 ▶ my $csspath = $args{CSSPath} || "$out/css";
Condition0%0/2
$args{'CSSPath'} || "$out/css"
l!l
00
MC/DC0%0/1
$args{'CSSPath'} || "$out/css"
$args{'CSSPath'}
Truth table0%0/2
A
A= $args{'CSSPath'}
Aresult
11
00
93 0 ▶ my $jspath = $args{JSPath} || "$out/js";
Condition0%0/2
$args{'JSPath'} || "$out/js"
l!l
00
MC/DC0%0/1
$args{'JSPath'} || "$out/js"
$args{'JSPath'}
Truth table0%0/2
A
A= $args{'JSPath'}
Aresult
11
00
94 0 ▶ my $imgpath = $args{Iconpath} || "$out/img";
Condition0%0/2
$args{'Iconpath'} || "$out/img"
l!l
00
MC/DC0%0/1
$args{'Iconpath'} || "$out/img"
$args{'Iconpath'}
Truth table0%0/2
A
A= $args{'Iconpath'}
Aresult
11
00
95 0 ▶ my $openimg = $args{OpenImage} || 'openbook.gif';
Condition0%0/2
$args{'OpenImage'} || 'openbook.gif'
l!l
00
MC/DC0%0/1
$args{'OpenImage'} || 'openbook.gif'
$args{'OpenImage'}
Truth table0%0/2
A
A= $args{'OpenImage'}
Aresult
11
00
96 0 ▶ my $closeimg = $args{CloseImage} || 'closedbook.gif';
Condition0%0/2
$args{'CloseImage'} || 'closedbook.gif'
l!l
00
MC/DC0%0/1
$args{'CloseImage'} || 'closedbook.gif'
$args{'CloseImage'}
Truth table0%0/2
A
A= $args{'CloseImage'}
Aresult
11
00
97 0 ▶ my $rootimg = $args{RootImage} || 'globe.gif';
Condition0%0/2
$args{'RootImage'} || 'globe.gif'
l!l
00
MC/DC0%0/1
$args{'RootImage'} || 'globe.gif'
$args{'RootImage'}
Truth table0%0/2
A
A= $args{'RootImage'}
Aresult
11
00
98 0 ▶ $args{Title} ||= 'My Project';
Condition0%0/2
$args{"Title"} ||= "My Project"
l!l
00
MC/DC0%0/1
$args{"Title"} ||= "My Project"
$args{"Title"}
Truth table0%0/2
A
A= $args{"Title"}
Aresult
11
00
99  
100 0 ▶ while (my ($k, $v) = each %defaults) {
Branch: 1 branch
BranchTrueFalseTotal
if (() = each %Pod::Classdoc::Project::defaults) 0 0 0
101 0 ▶ $args{$k} = $v unless exists $args{$k};
Branch: 1 branch
BranchTrueFalseTotal
unless exists $args{$k} 0 0 0
102 }
103  
104 0 ▶ unless ($args{NoSource}) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($args{"NoSource"}) 0 0 0
105 0 eval {
106 0 require PPI::HTML::CodeFolder;
107 };
108 0 ▶ $args{NoSource} = 1,
Branch: 1 branch
BranchTrueFalseTotal
if $@ 0 0 0
109 warn "Cannot generate codefolded sources:\n$@\n"
110 if $@;
111 }
112  
113 0 my $notree;
114 0 eval {
115 0 require HTML::ListToTree;
116 };
117 0 ▶ $notree = 1,
Branch: 1 branch
BranchTrueFalseTotal
if $@ 0 0 0
118 warn "Cannot generate tree table of contents:\n$@\n"
119 if $@;
120 #
121 # first generate project docs; note that this
122 # copies source files into the outroot/src path
123 #
124 print "\nGenerating ProjectDocs..."
125 0 ▶ if $args{Verbose};
Branch: 1 branch
BranchTrueFalseTotal
if $args{"Verbose"} 0 0 0
126  
127 $args{Libs} = [ './lib', './bin' ]
128 0 ▶ unless $args{Libs} && ref $args{Libs} && ($#{$args{Libs}} >= 0);
Branch: 1 branch
BranchTrueFalseTotal
unless $args{"Libs"} and ref $args{"Libs"} and $#{$args{"Libs"};} >= 0 0 0 0
Condition0%0/6
$args{"Libs"} and ref $args{"Libs"} and $#{$args{"Libs"};} >= 0
!ll&&!rl&&r
000
$args{"Libs"} and ref $args{"Libs"}
!ll&&!rl&&r
000
MC/DC0%0/3
$args{"Libs"} and ref $args{"Libs"} and $#{$args{"Libs"};} >= 0
$args{"Libs"} ref $args{"Libs"} $#{$args{"Libs"};} >= 0
Truth table0%0/4
A and B and C
A= $args{"Libs"}B= ref $args{"Libs"}C= $#{$args{"Libs"};} >= 0
ABCresult
0XX0
10X0
1100
1111
129  
130 Pod::ProjectDocs->new(
131 outroot => $out,
132 libroot => $args{Libs},
133 title => $args{Title},
134 desc => $args{Description},
135 charset => $args{CharSet},
136 index => 1,
137 verbose => $args{Verbose},
138 forcegen => $args{Force},
139 lang => $args{Language},
140 0 ▶ )->gen() or die $@;
Branch: 1 branch
BranchTrueFalseTotal
"Pod::ProjectDocs"->new("outroot", $out, "libroot", $args{"Libs"}, "title", $args{"Title"}, "desc", $args{"Description"}, "charset", $args{"CharSet"}, "index", 1, "verbose", $args{"Verbose"}, "forcegen", $args{"Force"}, "lang", $args{"Language"})->gen or die $@ 0 0 0
141 #
142 # then generate classdocs
143 #
144 print "done\nCollecting source files..."
145 0 ▶ if $args{Verbose};
Branch: 1 branch
BranchTrueFalseTotal
if $args{"Verbose"} 0 0 0
146  
147 0 my $path = "$out/src";
148 0 my @dirs = ();
149 0 ▶ die $@
Branch: 1 branch
BranchTrueFalseTotal
unless _recurseDirs($path, \@dirs) 0 0 0
150 unless _recurseDirs($path, \@dirs);
151  
152 print "done\nScanning ", join(', ', @dirs), "\n"
153 0 ▶ if $args{Verbose};
Branch: 1 branch
BranchTrueFalseTotal
if $args{"Verbose"} 0 0 0
154  
155 0 my @files = ();
156 0 foreach my $p (@dirs) {
157 0 ▶ warn "$p directory not found" and
Branch: 1 branch
BranchTrueFalseTotal
unless opendir PATH, $p 0 0 0
Condition0%0/5
opendir(PATH, $p) || warn("$p directory not found") && (next)
l!l&&r!l&&!r
000
warn "$p directory not found" and next
!ll
00
MC/DC0%0/2
opendir(PATH, $p) || warn("$p directory not found") && (next)
opendir(PATH, $p) warn "$p directory not found"
Truth table0%0/3
A || B
A= opendir(PATH, $p)B= warn "$p directory not found"
ABresult
1X1
011
000
158 next
159 unless opendir(PATH, $p);
160 #
161 # recurse the directory to find all .pm files;
162 #
163 0 my @tfiles = readdir PATH;
164 0 closedir PATH;
165  
166 0 push @files, map "$p/$_", grep /\.pm$/, @tfiles;
167 }
168  
169 0 ▶ my $classdocs = Pod::Classdoc::ForProjectTOC->new($out, $args{Title}, $args{Verbose}) or die $@;
Branch: 1 branch
BranchTrueFalseTotal
my $classdocs = "Pod::Classdoc::ForProjectTOC"->new($out, $args{"Title"}, $args{"Verbose"}) or die $@ 0 0 0
170  
171 0 my %sources = ();
172 0 my $HTML;
173 0 ▶ unless ($args{NoSource}) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($args{"NoSource"}) 0 0 0
174 0 my %tagcolors = (
175 cast => '#339999',
176 comment => '#008080',
177 core => '#FF0000',
178 double => '#999999',
179 heredoc => '#FF0000',
180 heredoc_content => '#FF0000',
181 heredoc_terminator => '#FF0000',
182 interpolate => '#999999',
183 keyword => '#0000FF',
184 line_number => '#666666',
185 literal => '#999999',
186 magic => '#0099FF',
187 match => '#9900FF',
188 number => '#990000',
189 operator => '#DD7700',
190 pod => '#008080',
191 pragma => '#990000',
192 regex => '#9900FF',
193 single => '#999999',
194 substitute => '#9900FF',
195 transliterate => '#9900FF',
196 word => '#999999',
197 );
198  
199 $HTML = PPI::HTML::CodeFolder->new(
200 line_numbers => 1,
201 page => 1,
202 colors => \%tagcolors,
203 verbose => $args{Verbose},
204 fold => {
205 Abbreviate => 1,
206 Heredocs => $args{Heredocs},
207 POD => $args{POD},
208 Comments => $args{Comments},
209 Expandable => $args{Expandable},
210 Imports => $args{Imports},
211 MinFoldLines => $args{MinFoldLines},
212 0 ▶ Javascript => "$jspath/ppicf.js",
Branch: 1 branch
BranchTrueFalseTotal
$HTML = "PPI::HTML::CodeFolder"->new("line_numbers", 1, "page", 1, "colors", \%tagcolors, "verbose", $args{"Verbose"}, "fold", {"Abbreviate", 1, "Heredocs", $args{"Heredocs"}, "POD", $args{"POD"}, "Comments", $args{"Comments"}, "Expandable", $args{"Expandable"}, "Imports", $args{"Imports"}, "MinFoldLines", $args{"MinFoldLines"}, "Javascript", "$jspath/ppicf.js", "Stylesheet", "$csspath/ppicf.css"}) or die "\nFailed to create a PPI::HTML::CodeFolder" 0 0 0
213 Stylesheet => "$csspath/ppicf.css",
214 },
215 )
216 or die "\nFailed to create a PPI::HTML::CodeFolder";
217 }
218  
219 0 foreach my $file (@files) {
220 #
221 # add a file to the classdocs
222 #
223 print "$file: generating classdocs...\r"
224 0 ▶ if $args{Verbose};
Branch: 1 branch
BranchTrueFalseTotal
if $args{"Verbose"} 0 0 0
225 0 my $Document = $classdocs->open($file);
226  
227 0 ▶ unless ($args{NoSource}) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($args{"NoSource"}) 0 0 0
228 #
229 # codefold/highlight the file
230 #
231 print "$file: generating codefolded source...\r"
232 0 ▶ if $args{Verbose};
Branch: 1 branch
BranchTrueFalseTotal
if $args{"Verbose"} 0 0 0
233  
234 0 my $outfile = substr($file, length($path) + 1);
235 0 ▶ my $t = $HTML->html( $Document, "$out/$outfile.html" )
Branch: 1 branch
BranchTrueFalseTotal
my $t = $HTML->html($Document, "$out/$outfile.html") or die "\nFailed to generate HTML" 0 0 0
236 or die "\nFailed to generate HTML";
237 #
238 # create output in output file
239 #
240 0 ▶ open(OUTF, ">$out/$outfile.html") or die "Can't create $out/$outfile.html: $!";
Branch: 1 branch
BranchTrueFalseTotal
open OUTF, ">$out/$outfile.html" or die "Can't create $out/$outfile.html: $!" 0 0 0
241 0 print OUTF $t;
242 0 close OUTF;
243 #
244 # don't need the original sources now
245 #
246 0 unlink $file;
247 }
248 }
249  
250 0 foreach ($out, $csspath, $jspath, $imgpath) {
251 0 ▶ mkdir $_
Branch: 1 branch
BranchTrueFalseTotal
unless -d $_ 0 0 0
252 unless -d $_;
253 }
254  
255 print "\nRendering classdocs...\n"
256 0 ▶ if $args{Verbose};
Branch: 1 branch
BranchTrueFalseTotal
if $args{"Verbose"} 0 0 0
257  
258 0 $classdocs->writeClassdocs(1);
259 #
260 # generate the TOC
261 #
262 0 $/ = undef;
263 print "Generating table of contents...\n"
264 0 ▶ if $args{Verbose};
Branch: 1 branch
BranchTrueFalseTotal
if $args{"Verbose"} 0 0 0
265 #
266 # extract index from root document
267 #
268 0 ▶ open INF, "$out/index.html" or die $!;
Branch: 1 branch
BranchTrueFalseTotal
open INF, "$out/index.html" or die $! 0 0 0
269 0 my $html = <INF>;
270 0 close INF;
271 #
272 # get rid of search box and adjust path separators as needed
273 #
274 0 $html=~s!<div\s+class="box">\s*<h2\s+class="t2">Search</h2>.*?</div>!!s;
275 0 $html=~s!\.\\!./!gs;
276 0 $html=~s!\\\\!/!gs;
277 #
278 # replace current index page after edits
279 #
280 0 ▶ open OUTF, ">$out/project.html"
Branch: 1 branch
BranchTrueFalseTotal
open OUTF, ">$out/project.html" or die "Cannot create $out/project.html: $!" 0 0 0
281 or die "Cannot create $out/project.html: $!";
282 0 print OUTF $html;
283 0 close OUTF;
284  
285 0 my ($list) = ($html=~/var\s+managers\s*=\s*([^\n]+)\n/);
286  
287 0 ▶ $list = substr($list, 0, -1) if (substr($list, -1) eq ';');
Branch: 1 branch
BranchTrueFalseTotal
if substr($list, -1) eq ";" 0 0 0
288  
289 0 $list = jsonToObj($list);
290  
291 0 my $mans = $list->[0];
292 die "Unrecognizable project index\n"
293 unless ($mans->{desc} eq 'Package Manuals') ||
294 0 ▶ ($mans->{desc} eq 'Perl Manuals');
Branch: 1 branch
BranchTrueFalseTotal
unless $mans->{"desc"} eq "Package Manuals" or $mans->{"desc"} eq "Perl Manuals" 0 0 0
Condition0%0/3
$mans->{"desc"} eq "Package Manuals" or $mans->{"desc"} eq "Perl Manuals"
l!l&&r!l&&!r
000
MC/DC0%0/2
$mans->{"desc"} eq "Package Manuals" or $mans->{"desc"} eq "Perl Manuals"
$mans->{"desc"} eq "Package Manuals" $mans->{"desc"} eq "Perl Manuals"
Truth table0%0/3
A or B
A= $mans->{"desc"} eq "Package Manuals"B= $mans->{"desc"} eq "Perl Manuals"
ABresult
1X1
011
000
295 #
296 # locate any manfiles and map to package names
297 #
298 0 my %manuals = ();
299 $_->{name}=~s/-/::/g,
300 $_->{path}=~tr/\\/\//,
301 $manuals{$_->{name}} = {
302 Manual => $_->{path},
303 TOC => _extractTOC(join('/', $out, $_->{path}), $csspath)
304 }
305 0 foreach (@{$mans->{records}});
306  
307 my $toc = $classdocs->getProjectTOC(
308 Manuals => \%manuals,
309 SourceMap => $HTML ? $HTML->getCrossReference() : undef,
310 GroupExternals => 1,
311 Additions => $args{Additions},
312 Order => $args{Order}
313 0 ▶ );
Branch: 1 branch
BranchTrueFalseTotal
$HTML ? : 0 0 0
314 0 ($toc) = ($toc=~/<!--\s+INDEX BEGIN\s+-->(.*?)<!--\s+INDEX END\s+-->/s);
315
316 # open OUTF, ">testoc.html";
317 # print OUTF $toc;
318 # close OUTF;
319 #
320 # replace index page with frameset
321 #
322 0 ▶ open(INDEX, ">$out/index.html") or die $!;
Branch: 1 branch
BranchTrueFalseTotal
open INDEX, ">$out/index.html" or die $! 0 0 0
323 0 print INDEX
324 "<html>
325 <head>
326 <title>$args{Title}</title>
327 </head>
328 <frameset cols='15%,*'>
329 <frame name='navbar' src='toc.html' frameborder=1>
330 <frame name='mainframe' src='project.html'>
331 </frameset>
332 </html>
333 ";
334 0 close INDEX;
335 #
336 # render the TOC and write it out;
337 # add any download link, and current generate timestamp
338 #
339 0 my $download = $args{Download};
340 0 ▶ if ($download) {
Branch: 1 branch
BranchTrueFalseTotal
if ($download) { } 0 0 0
341 0 my @parts = split /[\\\/]/, $download;
342 0 $download = "<a href='$download'>$parts[-1]</a><p>";
343 }
344 else {
345 0 $download = '';
346 }
347  
348 0 $download .= "<span style='font-size: 12px; font-style: italic;'>Generated by<br>Pod::Classdoc::Project v.$VERSION<br>at " . _trimtime() . '</span>';
349 0 ▶ unless ($notree) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($notree) 0 0 0
350 my $tree = HTML::ListToTree->new(
351 Text => $args{Title},
352 0 ▶ Link => 'project.html',
Branch: 1 branch
BranchTrueFalseTotal
my $tree = "HTML::ListToTree"->new("Text", $args{"Title"}, "Link", "project.html", "Source", $toc) or die $@ 0 0 0
353 Source => $toc
354 )
355 or die $@;
356 my $widget = $tree->render(
357 CloseIcon => $closeimg,
358 OpenIcon => $openimg,
359 RootIcon => $rootimg,
360 IconPath => _pathAdjust($out, $imgpath),
361 CSSPath => _pathAdjust($out, $csspath) . '/dtree.css',
362 JSPath => _pathAdjust($out, $jspath) . '/dtree.js',
363 0 UseIcons => (!$args{NoIcons}),
364 Additions => $download,
365 BasePath => $out
366 );
367  
368 0 ▶ open(TREE, ">$out/toc.html") or die $!;
Branch: 1 branch
BranchTrueFalseTotal
open TREE, ">$out/toc.html" or die $! 0 0 0
369 0 print TREE $widget;
370 0 close TREE;
371 #
372 # make sure to write out the extras
373 #
374 0 ▶ die $@
Branch: 1 branch
BranchTrueFalseTotal
unless $tree->writeJavascript("$jspath/dtree.js") and $tree->writeCSS("$csspath/dtree.css") and $tree->writeIcons($imgpath) and !$HTML || $HTML->writeJavascript("$jspath/ppicf.js") && $HTML->writeCSS("$csspath/ppicf.css") 0 0 0
Condition0%0/15
$tree->writeJavascript("$jspath/dtree.js") and $tree->writeCSS("$csspath/dtree.css") and $tree->writeIcons($imgpath) and !$HTML || $HTML->writeJavascript("$jspath/ppicf.js") && $HTML->writeCSS("$csspath/ppicf.css")
!ll&&!rl&&r
000
$tree->writeJavascript("$jspath/dtree.js") and $tree->writeCSS("$csspath/dtree.css") and $tree->writeIcons($imgpath)
!ll&&!rl&&r
000
$tree->writeJavascript("$jspath/dtree.js") and $tree->writeCSS("$csspath/dtree.css")
!ll&&!rl&&r
000
not $HTML or $HTML->writeJavascript("$jspath/ppicf.js") and $HTML->writeCSS("$csspath/ppicf.css")
l!l&&r!l&&!r
000
$HTML->writeJavascript("$jspath/ppicf.js") and $HTML->writeCSS("$csspath/ppicf.css")
!ll&&!rl&&r
000
MC/DC0%0/6
$tree->writeJavascript("$jspath/dtree.js") and $tree->writeCSS("$csspath/dtree.css") and $tree->writeIcons($imgpath) and !$HTML || $HTML->writeJavascript("$jspath/ppicf.js") && $HTML->writeCSS("$csspath/ppicf.css")
$tree->writeJavascript("$jspath/dtree.js") $tree->writeCSS("$csspath/dtree.css") $tree->writeIcons($imgpath) not $HTML $HTML->writeJavascript("$jspath/ppicf.js") $HTML->writeCSS("$csspath/ppicf.css")
Truth table0%0/7
A and B and C and not(D) or E and F
A= $tree->writeJavascript("$jspath/dtree.js")B= $tree->writeCSS("$csspath/dtree.css")C= $tree->writeIcons($imgpath)D= not $HTMLE= $HTML->writeJavascript("$jspath/ppicf.js")F= $HTML->writeCSS("$csspath/ppicf.css")
ABCDEFresult
0XXXXX0
10XXXX0
110XXX0
11100X0
1110100
1111XX1
1110111
375 unless $tree->writeJavascript("$jspath/dtree.js") &&
376 $tree->writeCSS("$csspath/dtree.css") &&
377 $tree->writeIcons($imgpath) &&
378 ((!$HTML) ||
379 ($HTML->writeJavascript("$jspath/ppicf.js") &&
380 $HTML->writeCSS("$csspath/ppicf.css")));
381 }
382 0 return 1;
383 }
384  
385 0 ▶sub _trimtime {
Subroutine _trimtime: not called CC=1 SCAR=6.9
386 0 my @parts = split /\s+/, (scalar localtime());
387 0 shift @parts;
388 0 ($parts[0], $parts[1], $parts[2]) = ($parts[2], $parts[0], $parts[1] . ',');
389 0 return join(' ', @parts);
390 }
391  
392 0 ▶sub _recurseDirs {
Subroutine _recurseDirs: not called CC=7 SCAR=40.3
393 0 my ($path, $dirs) = @_;
394
395 0 ▶ $@ = "$path directory not found",
Branch: 1 branch
BranchTrueFalseTotal
unless opendir PATH, $path 0 0 0
396 return undef
397 unless opendir(PATH, $path);
398 #
399 # recurse the directory to find all subdirs
400 #
401 0 my @files = readdir PATH;
402 0 closedir PATH;
403 0 push @$dirs, $path;
404 0 foreach (@files) {
405 return undef
406 0 ▶ if ($_ ne '.') && ($_ ne '..') && (-d "$path/$_") && (!_recurseDirs("$path/$_", $dirs));
Branch: 1 branch
BranchTrueFalseTotal
if $_ ne "." and $_ ne ".." and -d "$path/$_" and not _recurseDirs("$path/$_", $dirs) 0 0 0
Condition0%0/9
$_ ne "." and $_ ne ".." and -d "$path/$_" and not _recurseDirs("$path/$_", $dirs)
!ll&&!rl&&r
000
$_ ne "." and $_ ne ".." and -d "$path/$_"
!ll&&!rl&&r
000
$_ ne "." and $_ ne ".."
!ll&&!rl&&r
000
MC/DC0%0/4
$_ ne "." and $_ ne ".." and -d "$path/$_" and not _recurseDirs("$path/$_", $dirs)
$_ ne "." $_ ne ".." -d "$path/$_" not _recurseDirs("$path/$_", $dirs)
Truth table0%0/5
A and B and C and not(D)
A= $_ ne "."B= $_ ne ".."C= -d "$path/$_"D= not _recurseDirs("$path/$_", $dirs)
ABCDresult
0XXX0
10XX0
110X0
11100
11111
407 }
408 0 return 1;
409 }
410  
411 #
412 # extract index from a manual file, and otherwise
413 # beautify the file
414 #
415 0 ▶sub _extractTOC {
Subroutine _extractTOC: not called CC=5 SCAR=34.0
416 0 my ($file, $css) = @_;
417  
418 0 my $oldsep = $/;
419 0 $/ = undef;
420 0 ▶ open INF, $file or die $!;
Branch: 1 branch
BranchTrueFalseTotal
open INF, $file or die $! 0 0 0
421 0 my $html = <INF>;
422 0 close INF;
423 0 $/ = $oldsep;
424  
425 0 $html=~s/<title>([^<]+)<\/title>//s;
426  
427 return undef
428 0 ▶ unless ($html=~s/<!--\s+INDEX START\s+-->\s+(.+)<!--\s+INDEX END\s+-->//s);
Branch: 1 branch
BranchTrueFalseTotal
unless $html =~ s/<!--\s+INDEX START\s+-->\s+(.+)<!--\s+INDEX END\s+-->//s 0 0 0
429 0 my $index = $1;
430 #
431 # clean up stuff we've changed or don't want
432 #
433 0 ▶ $html=~s!(href=["'])([^"']+)!{ my $t = $2; $t=~tr/\\/\//; $1 . $t; }!egs
Branch: 1 branch
BranchTrueFalseTotal
if $^O eq "MSWin32" 0 0 0
434 if ($^O eq 'MSWin32');
435 0 $html=~s/<a\s+href="\#TOP".+?<\/a>//gs;
436 0 $html=~s/<a\s+href="[^"]+">Source<\/a>//s;
437
438 0 $html=~s!<div class="path">.+?</div>!!s;
439  
440 0 $index=~s!<h3 id="TOP">Index</h3>\s*<ul>\s*<li><a href="#NAME">NAME</a></li>!<ul>\n!s;
441 0 $index=~s!<hr\s*/>!!s;
442  
443 # " to keep textpad happy
444 0 ▶ open FRAME, ">$file" or die $!;
Branch: 1 branch
BranchTrueFalseTotal
open FRAME, ">$file" or die $! 0 0 0
445 0 print FRAME $html;
446 0 close FRAME;
447 0 return $index;
448 }
449  
450 0 ▶sub _pathAdjust {
Subroutine _pathAdjust: not called CC=4 SCAR=30.0
451 0 my ($path, $jspath) = @_;
452 # return $jspath
453 # unless (substr($jspath, 0, 2) eq './') && (substr($path, 0, 2) eq './');
454 #
455 # relative path, adjust as needed from current base
456 #
457 0 my @parts = split /\//, $path;
458 0 my @jsparts = split /\//, $jspath;
459 # my $jsfile = pop @jsparts; # get rid of filename
460 # pop @parts; # remove filename
461 0 shift @parts;
462 0 shift @jsparts; # and the relative lead
463 0 my $prefix = '';
464 0 ▶ shift @parts,
Branch: 1 branch
BranchTrueFalseTotal
@parts and @jsparts and $parts[0] eq $jsparts[0] and do { shift @parts, shift @jsparts } 0 0 0
Condition0%0/6
@parts and @jsparts and $parts[0] eq $jsparts[0]
!ll&&!rl&&r
000
@parts and @jsparts
!ll&&!rl&&r
000
MC/DC0%0/3
@parts and @jsparts and $parts[0] eq $jsparts[0]
@parts @jsparts $parts[0] eq $jsparts[0]
Truth table0%0/4
A and B and C
A= @partsB= @jspartsC= $parts[0] eq $jsparts[0]
ABCresult
0XX0
10X0
1100
1111
465 shift @jsparts
466 while @parts && @jsparts && ($parts[0] eq $jsparts[0]);
467 # push @jsparts, $jsfile;
468 0 return ('../' x scalar @parts) . join('/', @jsparts)
469 }
470  
471  
472 2 1;
473  
474 =pod
475  
476 =begin classdoc
477  
478 Subclass of <cpan>Pod::Classdoc</cpan> providing methods to
479 write a project TOC.
480  
481 =end classdoc
482  
483 =cut
484  
485 package Pod::Classdoc::ForProjectTOC;
486  
487 2 ▶use base ('Pod::Classdoc');
Subroutine BEGIN: called CC=1 SCAR=0.0
488  
489 =pod
490  
491 =begin classdoc
492  
493 Write out a project table of contents document for the current collection of
494 classdocs as a nested HTML list. The output filename is 'toc.html'.
495 The caller may optionally specify the order of classes in the menu.
496  
497 @optional Additions string of additional HTML list elements to append to TOC
498 @optional Manuals hashref mapping package names to manual files
499 @optional SourceMap hashref mapping packages and methods to their source filename
500 @optional Order arrayref of packages in the order in which they should appear in TOC; if a partial list,
501 any remaining packages will be appended to the TOC in alphabetical order
502 @optional GroupExternals if true, group external methods separately
503  
504 @return this object on success, undef on failure, with error message in $@
505  
506 =end classdoc
507  
508 =cut
509  
510 0 ▶sub writeProjectTOC {
Subroutine writeProjectTOC: not called CC=2 SCAR=17.9
511 0 my $self = shift;
512 0 my $path = $self->{_path};
513 0 ▶ $@ = "Can't open $path/toc.html: $!",
Branch: 1 branch
BranchTrueFalseTotal
unless open OUTF, ">$path/toc.html" 0 0 0
514 return undef
515 unless CORE::open(OUTF, ">$path/toc.html");
516  
517 0 print OUTF $self->getProjectTOC(@_);
518 0 close OUTF;
519 0 return $self;
520 }
521  
522 =pod
523  
524 =begin classdoc
525  
526 Generate a project table of contents document for the current collection of
527 classdocs as a nested HTML list. Caller may optionally specify
528 the order of classes in the menu.
529  
530 @optional Additions string of additional HTML list elements to append to TOC
531 @optional Manuals hashref mapping package names to manual files
532 @optional SourceMap hashref mapping packages and methods to their source filename
533 @optional Order arrayref of package names in the order in which they should appear in TOC; if a partial list,
534 any remaining packages will be appended to the TOC in alphabetical order
535 @optional GroupExternals if true, group external methods separately
536  
537 @return the TOC document
538  
539 =end classdoc
540  
541 =cut
542  
543 0 ▶sub getProjectTOC {
Subroutine getProjectTOC: not called CC=50 SCAR=78.4
544 0 my $self = shift;
545 0 my %args = @_;
546 0 ▶ my @order = $args{Order} ? @{$args{Order}} : ();
Branch: 1 branch
BranchTrueFalseTotal
$args{'Order'} ? : 0 0 0
547 0 ▶ my $sources = $args{SourceMap} || {};
Condition0%0/2
$args{'SourceMap'} || {}
l!l
00
MC/DC0%0/1
$args{'SourceMap'} || {}
$args{'SourceMap'}
Truth table0%0/2
A
A= $args{'SourceMap'}
Aresult
11
00
548 0 ▶ my $manuals = $args{Manuals} || {};
Condition0%0/2
$args{'Manuals'} || {}
l!l
00
MC/DC0%0/1
$args{'Manuals'} || {}
$args{'Manuals'}
Truth table0%0/2
A
A= $args{'Manuals'}
Aresult
11
00
549 0 my $path = $self->{_path};
550 0 my $title = $self->{_title};
551 0 my $base;
552 0 my $doc =
553 "<html>
554 <body>
555 <small>
556 <!-- INDEX BEGIN -->
557 <ul>
558 ";
559 0 my %ordered = ();
560 0 $ordered{$_} = 1 foreach (@order);
561 #
562 # merge any undoc'd packages
563 #
564 0 ▶ while (my ($pkg, $pkginfo) = each %$sources) {
Branch: 1 branch
BranchTrueFalseTotal
if (() = each %$sources) 0 0 0
565 $self->{_classes}{$pkg} = { }
566 0 ▶ unless exists $self->{_classes}{$pkg};
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"_classes"}{$pkg} 0 0 0
567  
568 0 my $info = $self->{_classes}{$pkg};
569 0 ▶ $info->{URL} = exists $info->{File} ? join('#', $self->makeClassPath($pkg), $pkg) : $pkginfo->{URL};
Branch: 1 branch
BranchTrueFalseTotal
exists $info->{'File'} ? : 0 0 0
570 0 ▶ $info->{Methods} ||= {};
Condition0%0/2
$info->{"Methods"} ||= {}
l!l
00
MC/DC0%0/1
$info->{"Methods"} ||= {}
$info->{"Methods"}
Truth table0%0/2
A
A= $info->{"Methods"}
Aresult
11
00
571 0 ▶ $info->{constructors} ||= {};
Condition0%0/2
$info->{"constructors"} ||= {}
l!l
00
MC/DC0%0/1
$info->{"constructors"} ||= {}
$info->{"constructors"}
Truth table0%0/2
A
A= $info->{"constructors"}
Aresult
11
00
572 0 my $methods = $info->{Methods};
573 0 my $constr = $info->{constructors};
574 0 ▶ while (my ($sub, $suburl) = each %{$pkginfo->{Methods}}) {
Branch: 1 branch
BranchTrueFalseTotal
if (() = each %{$$pkginfo{"Methods"};}) 0 0 0
575 $constr->{$sub}{URL} = join('#_f_', $self->makeClassPath($pkg), $sub),
576 $constr->{$sub}{Source} = $suburl,
577 next
578 0 ▶ if exists $constr->{$sub};
Branch: 1 branch
BranchTrueFalseTotal
if exists $constr->{$sub} 0 0 0
579  
580 print STDERR "*** $pkg\::$sub has no classdocs.\n"
581 0 ▶ unless (substr($sub, 0, 1) eq '_') || exists $methods->{$sub};
Branch: 1 branch
BranchTrueFalseTotal
unless substr($sub, 0, 1) eq "_" or exists $methods->{$sub} 0 0 0
Condition0%0/3
substr($sub, 0, 1) eq "_" or exists $methods->{$sub}
l!l&&r!l&&!r
000
MC/DC0%0/2
substr($sub, 0, 1) eq "_" or exists $methods->{$sub}
substr($sub, 0, 1) eq "_" exists $methods->{$sub}
Truth table0%0/3
A or B
A= substr($sub, 0, 1) eq "_"B= exists $methods->{$sub}
ABresult
1X1
011
000
582  
583 $methods->{$sub}{URL} = $suburl,
584 next
585 0 ▶ unless exists $methods->{$sub};
Branch: 1 branch
BranchTrueFalseTotal
unless exists $methods->{$sub} 0 0 0
586  
587 0 $methods->{$sub}{URL} = join('#_f_', $self->makeClassPath($pkg), $sub);
588 0 $methods->{$sub}{Source} = $suburl;
589 }
590 }
591 #
592 # merge in any manuals
593 #
594 0 my ($pkg, $manual, $key, $info);
595 $self->{_classes}{$pkg} ||= { },
596 $info = $self->{_classes}{$pkg},
597 $key = exists $info->{URL} ? 'Manual' : 'URL',
598 $info->{$key} = $manual->{Manual}
599 0 ▶ while (($pkg, $manual) = each %$manuals);
Branch: 2 branches
BranchTrueFalseTotal
() = each %$manuals and do { $self->{"_classes"}{$pkg} ||= {}, $info = $self->{"_classes"}{$pkg}, $key = exists $info->{"URL"} ? "Manual" : "URL", $info->{$key} = $manual->{"Manual"} } 0 0 0
exists $info->{'URL'} ? : 0 0 0
Condition0%0/2
$self->{"_classes"}{$pkg} ||= {}
l!l
00
MC/DC0%0/1
$self->{"_classes"}{$pkg} ||= {}
$self->{"_classes"}{$pkg}
Truth table0%0/2
A
A= $self->{"_classes"}{$pkg}
Aresult
11
00
600  
601 0 foreach (sort keys %{$self->{_classes}}) {
602 0 ▶ push @order, $_ unless exists $ordered{$_};
Branch: 1 branch
BranchTrueFalseTotal
unless exists $ordered{$_} 0 0 0
603 }
604  
605 0 foreach $pkg (@order) {
606 #
607 # due to input @order, we might get classes that don't exist
608 #
609 0 ▶ next unless exists $self->{_classes}{$pkg};
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"_classes"}{$pkg} 0 0 0
610  
611 0 my $info = $self->{_classes}{$pkg};
612 0 $base = $pkg;
613 0 $base =~s/::/\//g;
614 0 $doc .= "<li><a href='$info->{URL}'>$pkg</a>\n<ul>\n";
615 #
616 # only point to classdocs if we have some
617 #
618 $doc .= "<li><a href='$base.html#summary'>Summary</a></li>
619 <li><a href='$base.html'>Description</a></li>\n"
620 0 ▶ if $info->{File};
Branch: 1 branch
BranchTrueFalseTotal
if $info->{"File"} 0 0 0
621 #
622 # ditto for manuals
623 # if no source or docs, dump manual TOC and skip the rest
624 #
625 $doc .= $info->{Manual} ?
626 "<li><a href='$info->{Manual}'>Manual</a>\n$manuals->{$pkg}{TOC}<!-- END MANUAL -->\n</li>\n" :
627 join( '', $manuals->{$pkg}{TOC}, "\n</ul></li>\n")
628 0 ▶ if exists $manuals->{$pkg};
Branch: 2 branches
BranchTrueFalseTotal
if exists $manuals->{$pkg} 0 0 0
$info->{'Manual'} ? : 0 0 0
629  
630 0 my %t;
631 0 my ($k, $v);
632 0 ▶ if (exists $info->{exports} && @{$info->{exports}}) {
Branch: 1 branch
BranchTrueFalseTotal
if (exists $info->{"exports"} and @{$info->{"exports"};}) 0 0 0
Condition0%0/3
exists $info->{"exports"} and @{$info->{"exports"};}
!ll&&!rl&&r
000
MC/DC0%0/2
exists $info->{"exports"} and @{$info->{"exports"};}
exists $info->{"exports"} @{$info->{"exports"};}
Truth table0%0/3
A and B
A= exists $info->{"exports"}B= @{$info->{"exports"};}
ABresult
0X0
100
111
633 0 $doc .= "<li><a href='$base.html#exports'>Exports</a>
634 <ul>
635 ";
636 0 %t = @{$info->{exports}};
637 $doc .= "<li><a href='$base.html#_e_$_'>$_</a></li>\n"
638 0 foreach (sort keys %t);
639 0 $doc .= "</ul><!-- END EXPORTS -->\n</li>\n";
640 }
641 0 ▶ if (exists $info->{imports} && @{$info->{imports}}) {
Branch: 1 branch
BranchTrueFalseTotal
if (exists $info->{"imports"} and @{$info->{"imports"};}) 0 0 0
Condition0%0/3
exists $info->{"imports"} and @{$info->{"imports"};}
!ll&&!rl&&r
000
MC/DC0%0/2
exists $info->{"imports"} and @{$info->{"imports"};}
exists $info->{"imports"} @{$info->{"imports"};}
Truth table0%0/3
A and B
A= exists $info->{"imports"}B= @{$info->{"imports"};}
ABresult
0X0
100
111
642 0 $doc .= "<li><a href='$base.html#imports'>Imports</a>
643 <ul>
644 ";
645 0 %t = @{$info->{imports}};
646 $doc .= "<li><a href='$base.html#_i_$_'>$_</a></li>\n"
647 0 foreach (sort keys %t);
648 0 $doc .= "</ul><!-- END IMPORTS -->\n</li>\n";
649 }
650 0 ▶ if (exists $info->{member} && @{$info->{member}}) {
Branch: 1 branch
BranchTrueFalseTotal
if (exists $info->{"member"} and @{$info->{"member"};}) 0 0 0
Condition0%0/3
exists $info->{"member"} and @{$info->{"member"};}
!ll&&!rl&&r
000
MC/DC0%0/2
exists $info->{"member"} and @{$info->{"member"};}
exists $info->{"member"} @{$info->{"member"};}
Truth table0%0/3
A and B
A= exists $info->{"member"}B= @{$info->{"member"};}
ABresult
0X0
100
111
651 0 $doc .= "<li><a href='$base.html#members'>Public Members</a>
652 <ul>
653 ";
654 0 %t = @{$info->{member}};
655 $doc .= "<li><a href='$base.html#_m_$_'>$_</a></li>\n"
656 0 foreach (sort keys %t);
657 0 $doc .= "</ul><!-- END MEMBERS -->\n</li>\n";
658 }
659 0 ▶ if (exists $info->{constructors} && %{$info->{constructors}}) {
Branch: 1 branch
BranchTrueFalseTotal
if (exists $info->{"constructors"} and %{$info->{"constructors"};}) 0 0 0
Condition0%0/3
exists $info->{"constructors"} and %{$info->{"constructors"};}
!ll&&!rl&&r
000
MC/DC0%0/2
exists $info->{"constructors"} and %{$info->{"constructors"};}
exists $info->{"constructors"} %{$info->{"constructors"};}
Truth table0%0/3
A and B
A= exists $info->{"constructors"}B= %{$info->{"constructors"};}
ABresult
0X0
100
111
660 0 $doc .= "<li><a href='$base.html#constructor_detail'>Constructors</a>
661 <ul>
662 ";
663 0 my $constr = $info->{constructors};
664 0 foreach (sort keys %$constr) {
665 0 $doc .= "<li><a href='$constr->{$_}{URL}'>$_</a>";
666 $doc .= "<i>(ext.)</i></li>\n",
667 next
668 0 ▶ if $constr->{$_}{External};
Branch: 1 branch
BranchTrueFalseTotal
if $constr->{$_}{"External"} 0 0 0
669  
670 $doc .= "</li>\n",
671 next
672 0 ▶ unless $constr->{$_}{Source};
Branch: 1 branch
BranchTrueFalseTotal
unless $constr->{$_}{"Source"} 0 0 0
673  
674 0 $doc .= " <ul>
675 <li><a href='$constr->{$_}{Source}'>Source</a></li>
676 </ul></li>\n";
677 }
678 0 $doc .= "</ul><!-- END CONSTRUCTORS -->\n</li>\n";
679 }
680 0 ▶ if (exists $info->{Methods} && %{$info->{Methods}}) {
Branch: 1 branch
BranchTrueFalseTotal
if (exists $info->{"Methods"} and %{$info->{"Methods"};}) 0 0 0
Condition0%0/3
exists $info->{"Methods"} and %{$info->{"Methods"};}
!ll&&!rl&&r
000
MC/DC0%0/2
exists $info->{"Methods"} and %{$info->{"Methods"};}
exists $info->{"Methods"} %{$info->{"Methods"};}
Truth table0%0/3
A and B
A= exists $info->{"Methods"}B= %{$info->{"Methods"};}
ABresult
0X0
100
111
681 0 my %externals = ();
682 0 ▶ if ($args{GroupExternals}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($args{"GroupExternals"}) 0 0 0
683 0 ▶ while (my ($sub, $subinfo) = each %{$info->{Methods}}) {
Branch: 1 branch
BranchTrueFalseTotal
if (() = each %{$$info{"Methods"};}) 0 0 0
684 $externals{$sub} = $subinfo
685 0 ▶ if $subinfo->{External};
Branch: 1 branch
BranchTrueFalseTotal
if $subinfo->{"External"} 0 0 0
686 }
687 }
688 0 $doc .= "<li><a href='$base.html#method_detail'>Methods</a>
689 <ul>
690 ";
691 0 my $methods = $info->{Methods};
692 0 foreach (sort keys %$methods) {
693 $doc .= exists $methods->{$_}{Source} ?
694 "<li><a href='$methods->{$_}{URL}'>$_</a>\n<ul>\n<li><a href='$methods->{$_}{Source}'>Source</a></li>\n</ul>\n</li>\n" :
695 "<li><a href='$methods->{$_}{URL}'>$_</a></li>\n"
696 0 ▶ unless exists $externals{$_};
Branch: 2 branches
BranchTrueFalseTotal
unless exists $externals{$_} 0 0 0
exists $methods->{$_}{'Source'} ? : 0 0 0
697 }
698 0 ▶ if (%externals) {
Branch: 1 branch
BranchTrueFalseTotal
if (%externals) 0 0 0
699 0 $doc .= "<li>External Methods
700 <ul>
701 ";
702 $doc .= "<li><a href='$methods->{$_}{URL}'>$_</a></li>\n"
703 0 foreach (sort keys %externals);
704 0 $doc .= "</ul>\n</li>\n";
705 }
706 0 $doc .= "</ul><!-- END METHODS -->\n</li>\n";
707 }
708 0 $doc .= "</ul>\n</li><!-- END PACKAGE -->\n";
709 }
710 0 ▶ $args{Additions} ||= '';
Condition0%0/2
$args{"Additions"} ||= ""
l!l
00
MC/DC0%0/1
$args{"Additions"} ||= ""
$args{"Additions"}
Truth table0%0/2
A
A= $args{"Additions"}
Aresult
11
00
711 0 $doc .= "\n$args{Additions}
712 </ul>
713 <!-- INDEX END -->
714 </small>
715 </body>
716 </html>
717 ";
718  
719 0 return $doc;
720 }
721  
722 2 1;
723  
↑ Summary lib/Pod/Classdoc.pm »