Branch Coverage

blib/lib/Org/Element.pm
Criterion Covered Total %
branch 36 52 69.2


line true false branch
25 6 0 $self->document && $self->document->_srclabel ? :
32 209 49 unless $self->children
39 2 18 if (defined $self->_str) { }
40 0 2 $self->_str_include_children ? :
50 0 44 unless $self->parent and $c = $self->parent->children
53 44 31 if &refaddr($c->[$i]) == $addr
62 9 12 unless defined $sen and $sen > 0
71 0 7 unless defined $sen
73 2 5 unless $sen < @$c - 1
83 376 675 if ($self->children)
97 0 7 unless $self->children
102 12 46 if (ref $criteria eq 'CODE') { }
46 0 elsif ($criteria =~ /^\w+$/l) { }
103 2 10 if &$criteria($el)
105 15 31 if $el->isa("Org::Element::$criteria")
107 0 0 if $el->isa($criteria)
117 3 14 unless &$code($self, $parent)
129 2 0 if ($p->isa("Org::Element::Headline"))
144 3 1 if ($p->isa("Org::Element::Headline"))
157 0 0 if ($criteria)
158 0 0 if (ref $criteria eq 'CODE') { }
171 5 0 if ($prev and $prev->isa("Org::Element::Text"))
173 3 2 if ($text =~ /(?:\A|\R)\s*(.+?)\s*:\s*\z/l)
178 1 1 if ($parent and $parent->isa("Org::Element::ListItem"))
180 1 0 if ($list->type eq "D")
194 0 1 unless $parent