Condition Coverage

blib/lib/DBI/SQL/Nano.pm
Criterion Covered Total %
condition 63 121 52.0


and 3 conditions

line !l l&&!r l&&r condition
88 0 0 82 defined $2 and $2 ne ''
97 52 0 76 defined $1 and $1 ne ''
104 0 0 158 defined $1 and $1 ne ''
123 176 0 32 defined $2 and $2 ne ''
125 0 0 208 defined $4 and $4 ne ''
134 0 32 32 defined $3 and $3 ne ''
141 0 0 44 defined $2 and $2 ne ''
144 0 0 44 defined $3 and $3 ne ''
147 48 0 684 $self->{'command'} and $self->{'table_name'}
206 0 0 44 $self->{'column_names'} and $self->{'values'}
256 0 0 84 defined $val1 and defined $op
0 0 84 defined $val1 and defined $op and defined $val2
315 48 32 40 $self->{'ignore_missing_table'} and $@ || @err
32 0 40 $self->{'ignore_missing_table'} and $@ || @err and grep {$_ =~ /$enoentrx/;} @err, $@
417 0 0 64 defined $a && defined $b
0 0 64 DBI::looks_like_number($a) and DBI::looks_like_number($b)
476 64 0 0 not $result and $i < @sortCols
504 48 0 8 $self->{'fetched_from_key'} and $can_rwu
585 94 32 872 $stmt_col_name and not $find_in_stmt
593 94 0 32 $stmt_col_name and $find_in_stmt
648 0 0 120 $op eq '=' and not $neg
0 0 120 $op eq '=' and not $neg and $table->can('fetch_one_row')
681 104 0 0 DBI::looks_like_number($val1) and DBI::looks_like_number($val2)
754 752 190 462 $self->{'column_names'} and $self->{'column_names'}[0] ne '*'
773 0 0 412 defined $self->{'col_names'} and 'ARRAY' eq ref $self->{'col_names'}
776 0 0 412 defined $self->{'col_nums'} and 'HASH' eq ref $self->{'col_nums'}

or 2 conditions

line l !l condition
157 12 0 $clause[1] ||= ''
272 64 420 scalar @$params || 0
299 390 62 $self->{'NUM_OF_ROWS'} || '0E0'
614 120 232 $self->{'where_clause'} || (return 1)
658 64 40 $self->is_matched($val1, $op, $val2) || 0

or 3 conditions

line l !l&&r !l&&!r condition
34 24 28 0 $ENV{'DBI_SQL_NANO'} or not eval { do { require SQL::Statement; $SQL::Statement::VERSION ge '1.400' } }
158 0 12 0 $clause[1] =~ /^ASC$/i or $clause[1] =~ /^DESC$/i
298 0 412 40 $self->{'NAME'} ||= $self->{'column_names'}
315 40 0 32 $@ || @err
321 8 0 0 $@ || $err[0]
8 0 72 $@ or @err
427 0 0 0 lc $a cmp lc $b || $a cmp $b
497 32 0 0 $can_usr || $can_uor
668 0 0 0 not defined $val1 or $val1 eq ''
725 204 46 162 not $self->{'column_names'} or $self->{'column_names'}[0] eq '*'
778 0 412 0 ref $proto || $proto