Branch Coverage

blib/lib/DBIx/Tree.pm
Criterion Covered Total %
branch 36 64 56.2


line true false branch
47 0 4 if $#$columns > 2
49 0 4 if $#$columns > 3
66 0 0 if $^W
78 32 63 if (not $sth = $$self{'sth'}) { }
42 21 elsif (not ref $$self{'sth'}) { }
82 6 26 if ($$self{'match_data'})
87 4 28 if ($$self{'limit'})
97 94 1 if (defined $parentid or defined $id)
103 6 88 if ($sql =~ /\s+WHERE\s+(.*)/i) { }
114 6 88 if ($where)
119 87 7 if (defined $parentid)
124 7 87 if (defined $id)
133 87 8 defined $parentid ? :
7 88 defined $id ? :
136 0 95 unless ($rc)
142 0 95 if $$sth{'Active'}
144 93 2 if (not defined $level or $level >= $$self{'threshold'})
147 39 56 if $$self{'limit_left'} < 0
155 0 0 if $^W
176 0 7 if (not $$self{'recursive'} || $$self{'threshold'} gt 1 && $$self{'limit'}) { }
206 7 80 unless (defined $item)
218 84 1 if (defined $item and $$self{'method'} and $level >= $$self{'threshold'})
243 0 85 if (defined $item and $$self{'post_method'} and $level >= $$self{'threshold'})
267 0 0 if (defined $$aitem{$$self{'parent_id_column'}})
270 0 0 if (defined $$aitem{$$self{'id_column'}})
301 0 0 if ($index == $level)
324 0 0 if ($levelFound) { }
336 0 0 if (defined $aryitem)
358 0 0 if $$self{'method'} and $level >= $$self{'threshold'}
376 0 0 if (defined $aitem)
383 0 0 if ($item and $current)
394 0 0 if ($$self{'post_method'} and $level >= $$self{'threshold'})