Condition Coverage

blib/lib/Cosmic/DB.pm
Criterion Covered Total %
condition 1 52 1.9


and 2 conditions

line l !l condition
321 0 0 $sth->execute(@$value) and {$$self{'success'} = 1}
327 0 0 $$self{'dbh'}->do($sql) and {$$self{'success'} = 1}
398 0 0 $sth->execute(@$values) and {$$self{'success'} = 1}
408 0 0 $sth->execute(@values) and {$$self{'success'} = 1}
416 0 0 $$self{'dbh'}->do($sql) and {$$self{'success'} = 1}

and 3 conditions

line !l l&&!r l&&r condition
205 0 0 0 ref $columns eq 'ARRAY' and not defined $values
0 0 0 ref $columns eq 'ARRAY' and not defined $values and ref $$columns[0] eq 'HASH'
215 0 0 0 ref $values eq 'ARRAY' and not ref $$values[0]
0 0 0 ref $values eq 'ARRAY' and not ref $$values[0] and ref $$values[1] eq 'ARRAY'
250 0 0 0 ref $values and ref $$values[0]
255 0 0 0 @$values == 1 and @{$$values[0];} > $columns_values
257 0 0 0 $sth->execute($value) and do { $$self{'success'} = 1 }
263 0 0 0 $sth->execute(@$values) and do { $$self{'success'} = 1 }
274 0 0 0 $sth->execute(@values) and do { $$self{'success'} = 1 }
282 0 0 0 $$self{'dbh'}->do($sql) and do { $$self{'success'} = 1 }
376 0 0 0 ref $columns eq 'ARRAY' and ref $$columns[0] eq 'HASH'

or 3 conditions

line l !l&&r !l&&!r condition
101 0 1 0 ref $class || $class
130 0 0 0 'DBI'->connect($$self{'param'}{'dsn'}, $$self{'param'}{'user'}, $$self{'param'}{'pass'}, {%{$$self{'attrs'};}}) || croak("Cannot connect to database: $DBI::errstr\n")
238 0 0 0 $columns_values ||= @$columns