Condition Coverage

blib/lib/DBI/SQL/Nano.pm
Criterion Covered Total %
condition 62 121 51.2


and 3 conditions

line !l l&&!r l&&r condition
86 0 0 80 defined $2 and $2 ne ''
95 52 0 76 defined $1 and $1 ne ''
102 0 0 156 defined $1 and $1 ne ''
121 176 0 28 defined $2 and $2 ne ''
123 0 0 204 defined $4 and $4 ne ''
132 0 32 32 defined $3 and $3 ne ''
140 0 0 44 defined $2 and $2 ne ''
142 0 0 44 defined $3 and $3 ne ''
146 48 0 676 $$self{'command'} and $$self{'table_name'}
205 0 0 44 $$self{'column_names'} and $$self{'values'}
255 0 0 84 defined $val1 and defined $op
0 0 84 defined $val1 and defined $op and defined $val2
314 48 72 0 $$self{'ignore_missing_table'} and $@ || @err
32 0 40 $$self{'ignore_missing_table'} and $@ || @err and grep {$_ =~ /$enoentrx/;} @err, $@
416 0 0 64 defined $a && defined $b
0 0 64 DBI::looks_like_number($a) and DBI::looks_like_number($b)
475 64 0 0 not $result and $i < @sortCols
503 48 0 8 $$self{'fetched_from_key'} and $can_rwu
584 92 32 852 $stmt_col_name and not $find_in_stmt
592 92 0 32 $stmt_col_name and $find_in_stmt
647 0 0 120 $op eq '=' and not $neg
0 0 120 $op eq '=' and not $neg and $table->can('fetch_one_row')
680 104 0 0 DBI::looks_like_number($val1) and DBI::looks_like_number($val2)
753 752 188 456 $$self{'column_names'} and $$self{'column_names'}[0] ne '*'
771 0 0 404 defined $$self{'col_names'} and 'ARRAY' eq ref $$self{'col_names'}
774 0 0 404 defined $$self{'col_nums'} and 'HASH' eq ref $$self{'col_nums'}

or 2 conditions

line l !l condition
156 12 0 $clause[1] ||= ''
271 64 412 scalar @$params || 0
298 384 60 $$self{'NUM_OF_ROWS'} || '0E0'
613 120 228 $$self{'where_clause'} || (return 1)
657 64 40 $self->is_matched($val1, $op, $val2) || 0

or 3 conditions

line l !l&&r !l&&!r condition
34 24 24 0 $ENV{'DBI_SQL_NANO'} or not eval { do { require SQL::Statement; $SQL::Statement::VERSION ge '1.400' } }
157 0 12 0 $clause[1] =~ /^ASC$/i or $clause[1] =~ /^DESC$/i
297 0 404 40 $$self{'NAME'} ||= $$self{'column_names'}
314 40 0 32 $@ || @err
320 8 0 0 $@ || $err[0]
8 0 72 $@ or @err
426 0 0 0 lc $a cmp lc $b || $a cmp $b
496 32 0 0 $can_usr || $can_uor
667 0 0 0 not defined $val1 or $val1 eq ''
724 204 44 156 not $$self{'column_names'} or $$self{'column_names'}[0] eq '*'
777 0 404 0 ref $proto || $proto