Branch Coverage

blib/lib/WWW/Wikipedia/Entry.pm
Criterion Covered Total %
branch 34 38 89.4


line true false branch
42 0 14 if length $raw == 0
62 2 12 if ($ops{'clean_html'})
86 7 2 if $self->{'text'}
98 1 0 if $self->{'text_basic'}
196 2 1 unless defined $lang
197 0 1 unless exists $self->{'languages'}{$lang}
227 11 3 if ($title =~ /\?title=/)
246 1932 244378 if ($raw =~ /\G\[\[ *(.*?) *\]\]/) { }
92 244286 elsif ($raw =~ /\G=== *(.*?) *===/) { }
112 244174 elsif ($raw =~ /\G== *(.*?) *==/) { }
908 243266 elsif ($raw =~ /\G'' *(.*?) *''/) { }
370 242896 elsif ($raw =~ /\G\{\{ *(.*?) *\}\}/) { }
249 174 1758 if ($directive =~ /\:/) { }
544 1214 elsif ($directive =~ /\|/) { }
251 45 129 if (lc $type eq 'category')
256 41 133 if (length $type == 2 and lc $type eq $type)
263 539 5 unless $lookup =~ /^#/
282 11 101 unless $self->{'seenHeading'}
321 0 28 if $text =~ /^\n+$/