Condition Coverage

blib/lib/DBI/SQL/Nano.pm
Criterion Covered Total %
condition 66 121 54.5


and 3 conditions

line !l l&&!r l&&r condition
88 0 0 86 defined $2 and $2 ne ''
97 52 0 76 defined $1 and $1 ne ''
104 0 0 160 defined $1 and $1 ne ''
123 182 0 32 defined $2 and $2 ne ''
125 0 0 214 defined $4 and $4 ne ''
134 0 34 34 defined $3 and $3 ne ''
141 0 0 46 defined $2 and $2 ne ''
144 0 0 46 defined $3 and $3 ne ''
147 48 0 702 $self->{'command'} and $self->{'table_name'}
206 0 0 46 $self->{'column_names'} and $self->{'values'}
256 0 0 90 defined $val1 and defined $op
0 0 90 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 50 0 8 $self->{'fetched_from_key'} and $can_rwu
585 96 32 916 $stmt_col_name and not $find_in_stmt
593 96 0 32 $stmt_col_name and $find_in_stmt
648 0 0 130 $op eq '=' and not $neg
0 10 120 $op eq '=' and not $neg and $table->can('fetch_one_row')
681 112 0 2 DBI::looks_like_number($val1) and DBI::looks_like_number($val2)
754 762 190 470 $self->{'column_names'} and $self->{'column_names'}[0] ne '*'
773 0 0 430 defined $self->{'col_names'} and 'ARRAY' eq ref $self->{'col_names'}
776 0 0 430 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 438 scalar @$params || 0
299 404 66 $self->{'NUM_OF_ROWS'} || '0E0'
614 130 234 $self->{'where_clause'} || (return 1)
658 70 44 $self->is_matched($val1, $op, $val2) || 0

or 3 conditions

line l !l&&r !l&&!r condition
34 24 30 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 430 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 2 $can_usr || $can_uor
668 0 0 0 not defined $val1 or $val1 eq ''
725 214 46 170 not $self->{'column_names'} or $self->{'column_names'}[0] eq '*'
778 0 430 0 ref $proto || $proto