Branch Coverage

blib/lib/Wiktionary/Parser.pm
Criterion Covered Total %
branch 11 24 45.8


line true false branch
36 1 0 $url =~ m[^https?://] ? :
45 0 0 if ($self->get_cache($title))
54 0 0 unless $content
69 0 0 unless $$self{'cache'}
76 0 0 unless $$self{'cache'}
89 0 1 unless defined $document_content
110 69 577 unless $line
111 40 537 if ($line =~ /^(==+)([^=]+)/) { }
17 520 elsif ($line =~ /^\[\[(Category:[^\]]+)\]\]/) { }
51 469 elsif ($line =~ /^\[\[([a-z]+:$title)\]\]/) { }
117 0 79 unless $_
142 0 0 unless defined $title