Branch Coverage

blib/lib/Pod/Abstract/Node.pm
Criterion Covered Total %
branch 34 74 45.9


line true false branch
131 0 0 if (my $body_attr = $self->param('body_attr'))
134 0 0 if $body
137 0 0 if ($body) { }
175 0 0 if ($type eq ':text') { }
0 0 elsif ($type eq ':E') { }
182 0 0 if ($escapes{$code})
212 32 6 unless defined $p_break
216 4 34 if ($type eq ':paragraph') { }
14 20 elsif ($type eq ':text' or $type eq '#cut' or $type eq ':verbatim') { }
2 18 elsif ($type =~ /^\:(.+)$/) { }
10 8 elsif ($type eq '[ROOT]' or $type =~ /^@/) { }
229 4 4 if ($body_attr)
232 4 4 if (defined $body and $body ne '') { }
244 4 34 if ($should_para_break) { }
2 32 elsif ($r_delim) { }
250 2 36 if ($self->param('close_element'))
309 0 79 if (@_)
327 0 38 if (@_)
346 1 94 if (@_)
371 0 0 if (ref $pv and eval { do { $pv->can('duplicate') } }) { }
0 0 elsif (not ref $pv) { }
407 0 0 unless $target_tree
408 0 0 if ($target_tree->insert_before($target, $self)) { }
430 0 0 unless $target_tree
431 0 0 if ($target_tree->insert_after($target, $self)) { }
510 27 0 if ($target_tree->push($target)) { }
555 0 0 if ($target_tree->unshift($target)) { }
603 1 0 if ($self->parent) { }
622 28 30 if (@_)
624 0 28 if (defined $$self{'parent'} and $self->parent->tree->detach($self))
631 27 1 if defined $$self{'parent'}
683 0 0 unless $parent
700 0 0 unless $parent
729 3 1 if ($n->type eq $node_type) { }
730 0 3 if (defined $current_start) { }
732 0 0 unless $p_break
739 0 0 unless $n->detach