Branch Coverage

blib/lib/Wiktionary/Parser/Section.pm
Criterion Covered Total %
branch 12 26 46.1


line true false branch
14 0 81 unless defined $args{'section_number'}
15 81 0 if $args{'header'}
71 171 79 if ($num =~ /\./)
89 0 0 unless $num =~ /^$section_number\.\d+/
90 0 0 if $num eq $section_number
101 0 0 unless $children and @$children
112 79 0 if ($sections and @$sections)
122 0 20 if ($self->get_document->is_part_of_speech($self->get_header))
128 20 0 if ($sections and @$sections)
131 0 20 unless $self->get_document->is_part_of_speech($section->get_header)
158 0 79 unless $parent
168 17 20 if ($$self{'__part_of_speech__'})
172 0 20 unless $parent