Condition Coverage

blib/lib/DBIx/Tree/NestedSet.pm
Criterion Covered Total %
condition 0 64 0.0


and 2 conditions

line l !l condition
157 0 0 not $params{$id_name} and scalar $dbh->selectrow_array("select count(*) from $table")
213 0 0 not $params{$id_name} and scalar $dbh->selectrow_array("select count(*) from $table")

and 3 conditions

line !l l&&!r l&&r condition
151 0 0 0 defined $params{'id'} and $id_name ne 'id'
207 0 0 0 defined $params{'id'} and $id_name ne 'id'
344 0 0 0 defined $params{'id'} and $id_name ne 'id'
406 0 0 0 defined $params{'id'} and $id_name ne 'id'
425 0 0 0 defined $params{'id'} and $id_name ne 'id'
468 0 0 0 defined $params{'id'} and $id_name ne 'id'
572 0 0 0 defined $params{'id'} and $id_name ne 'id'
612 0 0 0 $first_id and $second_id

or 2 conditions

line l !l condition
15 0 0 $params{'left_column_name'} || 'lft'
0 0 $params{'right_column_name'} || 'rght'
0 0 $params{'no_id_creation'} || ''
0 0 $params{'table_name'} || 'nested_set'
0 0 $params{'id_name'} || 'id'
0 0 $params{'no_alter_table'} || undef
0 0 $params{'db_type'} || 'MySQL'
0 0 $params{'no_locking'} || undef
184 0 0 $rightmost || 1
0 0 $rightmost || 1
249 0 0 $leftmost || 1
0 0 $leftmost || 1
327 0 0 $$params{$column} || ''
436 0 0 $params{$id_name} || 1
682 0 0 $params{'indent_level'} || 2

or 3 conditions

line l !l&&r !l&&!r condition
13 0 0 0 ref $class || $class
679 0 0 0 $params{$id_name} || $self->get_root