Branch Coverage

blib/lib/WWW/Wikipedia/Entry.pm
Criterion Covered Total %
branch 32 38 84.2


line true false branch
42 0 3 if length $raw == 0
62 0 3 if ($ops{'clean_html'})
86 1 1 if $self->{'text'}
98 1 0 if $self->{'text_basic'}
191 1 1 unless defined $lang
192 0 1 unless exists $self->{'languages'}{$lang}
222 0 3 if ($title =~ /\?title=/)
241 266 35666 if ($raw =~ /\G\[\[ *(.*?) *\]\]/) { }
4 35662 elsif ($raw =~ /\G=== *(.*?) *===/) { }
26 35636 elsif ($raw =~ /\G== *(.*?) *==/) { }
96 35540 elsif ($raw =~ /\G'' *(.*?) *''/) { }
4 35536 elsif ($raw =~ /\G\{\{ *(.*?) *\}\}/) { }
244 46 220 if ($directive =~ /\:/) { }
63 157 elsif ($directive =~ /\|/) { }
246 3 43 if (lc $type eq 'category')
251 41 5 if (length $type == 2 and lc $type eq $type)
258 61 2 unless $lookup =~ /^#/
277 2 24 unless $self->{'seenHeading'}
316 0 6 if $text =~ /^\n+$/