Branch Coverage

blib/lib/DBIx/Tree/MaterializedPath/TreeRepresentation.pm
Criterion Covered Total %
branch 38 40 95.0


line true false branch
103 1 42 unless $node
104 42 0 if ref $node
106 2 40 unless (eval { do { $node->isa('DBIx::Tree::MaterializedPath::Node') if ref $node } })
108 1 39 unless $column_names
109 1 38 unless ref $column_names eq 'ARRAY'
111 1 37 unless $rows
112 1 36 unless ref $rows eq 'ARRAY'
114 34 2 ref $args[0] eq 'HASH' ? :
116 1 35 $$options{'ignore_empty_hash'} ? :
180 28 8 if (@{$rows;})
188 27 29 if ($column_name eq $path_col)
195 1 27 unless $found
219 27 8 $$self{'_num_nodes'} ? :
248 22 185 if ($length < $prev_length) { }
42 143 elsif ($length > $prev_length) { }
273 0 143 if ($path eq $prev_path) { }
372 1 32 unless $coderef
373 1 31 unless ref $coderef eq 'CODE'
375 5 26 unless $$self{'_has_nodes'}
391 41 99 if (@{$children;})