Condition Coverage

blib/lib/Mojar/Mysql/Connector.pm
Criterion Covered Total %
condition 13 101 12.8


and 3 conditions

line !l l&&!r l&&r condition
17 2 0 1 exists $param{-'dbh'} and $param{-'dbh'}
18 2 0 1 exists $param{-'connector'} and my $cname = delete $param{-'connector'}
29 0 0 1 exists $param{-'dbh'} and my $hname = delete $param{-'dbh'}
37 0 0 0 defined $$self{$hname} and $$self{$hname}->ping
44 1 2 0 %param and %{$pkg->Defaults;}
55 3 0 0 exists $param{'TraceLevel'} and defined $param{'TraceLevel'}
111 0 0 0 @args and $args[0] =~ /^DBI:/i
132 0 0 0 not -r $cnf and defined $param->cnfdir
133 0 0 0 -f $cnf and -r $cnf
143 6 0 0 defined $param->$_ and $custom{$_} = $param->$_
163 0 0 0 $args[2] and $_ = length $args[2]
0 0 0 $args[2] and $_ = length $args[2] and $_ > 1
220 0 0 0 @_ == 1 and $_[0] ne 'have_innodb'
226 0 0 0 exists $$variables{'ignore_builtin_innodb'} and ($$variables{'ignore_builtin_innodb'} // '') eq 'ON'
230 0 0 0 @_ == 1 and $_[0] eq 'have_innodb'
350 0 0 0 defined $schema and length $schema
351 0 0 0 defined $table and length $table
363 0 0 0 defined $schema and length $schema
384 0 0 0 /^\-+$/ and length $buffer

or 2 conditions

line l !l condition
17 0 1 $param{-'connector'} //= 1
47 0 0 $param{$_} // 'undef'
50 0 0 $pkg->Defaults->{$_} // 'undef'
148 0 2 ($param->schema // $$param{'db'}) // ''
206 0 0 (shift())->{'mysql_thread_id'} // 0
226 0 0 $$variables{'ignore_builtin_innodb'} // ''
238 0 0 $value //= 1
246 0 0 $value //= 1
262 0 0 $@ // ''
274 0 0 $args[2] //= 'TABLE,VIEW'
282 0 0 $@ // ''
375 0 0 $engine //= 'InnoDB'
430 0 0 $days //= 0
431 0 0 $format //= '%Y-%m-%d'
443 0 0 $scope //= 'SESSION'
472 0 0 $@ // ''

or 3 conditions

line l !l&&r !l&&!r condition
27 0 1 0 $$self{$cname} //= 'Mojar::Mysql::Connector'->new
110 0 0 0 ref $proto || $proto
148 0 0 2 $param->schema // $$param{'db'}
220 0 0 0 @_ >= 2 or @_ == 1 and $_[0] ne 'have_innodb'