Condition Coverage

blib/lib/Tree/Parser.pm
Criterion Covered Total %
condition 24 32 75.0


and 3 conditions

line !l l&&!r l&&r condition
36 12 1 2 blessed $input and $input->isa('Tree::Simple')
81 16 0 1 blessed $input and $input->isa('Array::Iterator')
334 1 2 6 defined $filter and ref $filter eq 'CODE'
341 1 2 2 defined $filter and ref $filter eq 'CODE'
407 1 1 129 defined $depth and $depth =~ /^\d+(\.\d*)?$/o
420 119 9 0 blessed $node and $node->isa($tree_type) || $node->isa('Tree::Simple')

or 2 conditions

line l !l condition
173 6 1 $num_spaces ||= 4

or 3 conditions

line l !l&&r !l&&!r condition
18 0 18 0 ref $_class || $_class
405 80 0 54 $depth or $node
49 0 5 $depth or $node or $i->hasNext
420 9 0 0 $node->isa($tree_type) || $node->isa('Tree::Simple')