Branch Coverage

blib/lib/Tree/Easy.pm
Criterion Covered Total %
branch 30 88 34.0


line true false branch
21 6 0 if (defined $data)
33 1 0 ref $data eq 'HASH' ? :
0 1 ref $data eq 'ARRAY' ? :
3 1 !ref($data) ? :
60 1 17 if (defined $data)
69 0 3 if @_ < 2
73 0 3 unless $child->isa('Tree::Easy')
76 0 3 if defined $where and not $where =~ /^-?\d$/
79 3 0 if (not defined $where or $where > $#$self)
80 0 3 if defined $where and $where > $#$self
86 0 0 if ($where < 0)
123 0 1 eval { do { $arg->isa('Tree::Easy') } } ? :
137 0 0 eval { do { $arg->isa('Tree::Easy') } } ? :
147 0 0 if @_ < 2
151 0 0 unless $where =~ /\A \d+ \z/msx
154 0 0 if $where < 0 and $where * -1 > $#$self or $where > $#$self
172 0 1 if @_ < 2
176 1 0 unless defined $how
178 0 1 unless $how eq '-1' or $how eq '0' or $how eq '1'
187 1 1 if (@$node == 0)
192 1 0 if (@$node == 1)
202 0 0 if ($odd_kids)
236 0 0 $how == 1 ? :
0 0 $how == -1 ? :
1 0 $how == 0 ? :
245 0 4 if @_ < 2
249 4 0 unless defined $how
252 0 4 if $how ne 'dfs' and $how ne 'bfs'
261 3 1 ref $match eq 'CODE' ? :
268 3 5 if &$matcher_ref($node)
278 0 0 if &$matcher_ref($node)
280 0 0 if &$matcher_ref($child)
288 0 0 $how eq 'bfs' ? :
4 0 $how eq 'dfs' ? :
299 1 1 @$self == 0 ? :
307 0 0 unless defined $data
311 0 0 !$reftype ? :
312 0 0 unless ($_DUMPER_IS_LOADED)
326 0 0 unless defined $file_handle
327 0 0 unless defined $col_limit
329 0 0 unless $col_limit =~ /\A \d+ \z/msx
341 0 0 if (@$depth_counts)
346 0 0 $nodes_on_depth > 0 ? :
351 0 0 $more_siblings ? :