Branch Coverage

blib/lib/WWW/Wikipedia/Entry.pm
Criterion Covered Total %
branch 33 38 86.8


line true false branch
42 0 14 if length $raw == 0
62 0 14 if ($ops{'clean_html'})
86 5 2 if $self->{'text'}
98 1 0 if $self->{'text_basic'}
191 2 2 unless defined $lang
192 0 2 unless exists $self->{'languages'}{$lang}
222 11 3 if ($title =~ /\?title=/)
241 1680 214784 if ($raw =~ /\G\[\[ *(.*?) *\]\]/) { }
76 214708 elsif ($raw =~ /\G=== *(.*?) *===/) { }
88 214620 elsif ($raw =~ /\G== *(.*?) *==/) { }
484 214136 elsif ($raw =~ /\G'' *(.*?) *''/) { }
277 213859 elsif ($raw =~ /\G\{\{ *(.*?) *\}\}/) { }
244 156 1524 if ($directive =~ /\:/) { }
483 1041 elsif ($directive =~ /\|/) { }
246 39 117 if (lc $type eq 'category')
251 45 111 if (length $type == 2 and lc $type eq $type)
258 480 3 unless $lookup =~ /^#/
277 10 78 unless $self->{'seenHeading'}
316 0 28 if $text =~ /^\n+$/