Branch Coverage

blib/lib/Mediawiki/Spider.pm
Criterion Covered Total %
branch 0 86 0.0


line true false branch
61 0 0 if defined $extension
67 0 0 if defined $uri
73 0 0 if %sortedwikiindex
74 0 0 if (defined %{$$self{'_sortedwikiindex'};})
82 0 0 if %wikiindex
83 0 0 if (defined %{$$self{'_wikiindex'};})
91 0 0 if @wikiwords
92 0 0 if (defined @{$$self{'_wikiwords'};})
103 0 0 if ($key2 ne '' and $key ne '')
128 0 0 unless open FILEHANDLE, ">$page"
139 0 0 if ($key =~ /Exclude/) { }
0 0 elsif ($key =~ /^Category$/) { }
150 0 0 if ($key2 =~ /rint_All/) { }
0 0 elsif ($key2 =~ /_Context/) { }
162 0 0 if ($extratitle and $#extras > -1)
178 0 0 if defined $uri
182 0 0 if ($$content{'_rc'} eq '200') { }
193 0 0 if ($line =~ /^([0-9A-z\-\_\:\%\&\.\,\;\+\#]+)/)
194 0 0 if ($1 eq $currentwikiword) { }
204 0 0 if ($#specialpages < 0)
219 0 0 if ($1)
226 0 0 if ($#wikiwords < 0) { }
265 0 0 if ($is_wikiword{$word} or $is_wikiword{$temptest}) { }
0 0 elsif ($word =~ m[http\://(.*)]) { }
0 0 elsif ($word =~ m[(.*)\.(\w\w|\w\w\w)/(.*)]) { }
0 0 elsif ($word =~ /Mediawiki\:/) { }
0 0 elsif ($word =~ /Special\:/) { }
284 0 0 if ($self->extension != '') { }
292 0 0 if (!$#rawcategories < 1)
296 0 0 if (!$1 eq '')
300 0 0 if ($topush =~ /Category/ and !$word =~ /Category/)
311 0 0 if ($text =~ /Category:Exclude/) { }
318 0 0 unless open FILEHANDLE, ">$folder/" . $self->urldecode($word) . '.' . $self->extension
344 0 0 unless ($is_wikiword{$_})
349 0 0 if ($#finalcategories > 0)
370 0 0 if ($word =~ m[http\://(.*)]) { }
376 0 0 if ($text =~ /\\(Redirected from/)
387 0 0 if ($#rawcategories < 1) { }
394 0 0 if (!$1 eq '')
398 0 0 if ($topush =~ /Category/)
406 0 0 if ($text =~ /Category:Exclude/) { }
415 0 0 unless open FILEHANDLE, ">$folder/$word." . $self->extension
439 0 0 if ($makecategories)