Condition Coverage

blib/lib/Mojar/Mysql/Connector.pm
Criterion Covered Total %
condition 13 128 10.1


and 3 conditions

line !l l&&!r l&&r condition
18 2 0 1 exists $param{-'dbh'} and $param{-'dbh'}
19 2 0 1 exists $param{-'connector'} and my $cname = delete $param{-'connector'}
30 0 0 1 exists $param{-'dbh'} and my $hname = delete $param{-'dbh'}
39 0 0 0 defined $self->{$hname} and $self->{$hname}->ping
45 1 2 0 %param and %{$pkg->Defaults;}
57 3 0 0 exists $param{'TraceLevel'} and defined $param{'TraceLevel'}
111 0 0 0 @args and $args[0] =~ /^DBI:/i
135 0 0 0 not -r $cnf and defined $param->cnfdir
136 0 0 0 -f $cnf and -r $cnf
146 6 0 0 defined $param->$_ and $custom{$_} = $param->$_
167 0 0 0 $args[2] and $_ = length $args[2]
0 0 0 $args[2] and $_ = length $args[2] and $_ > 1
221 0 0 0 @_ == 1 and $_[0] ne 'have_innodb'
229 0 0 0 exists $variables->{'ignore_builtin_innodb'} and ($variables->{'ignore_builtin_innodb'} // '') eq 'ON'
231 0 0 0 @_ == 1 and $_[0] eq 'have_innodb'
319 0 0 0 @$rs >= 1 and @{$rs->[0];} != 2
359 0 0 0 $self->mysqld_version =~ /^(\d+)\./ and $1 >= 5
376 0 0 0 defined $schema and length $schema
377 0 0 0 defined $table and length $table
389 0 0 0 defined $schema and length $schema
405 0 0 0 $major == 5 && $minor >= 1
414 0 0 0 $line =~ /^-+$/ and length $buffer

or 2 conditions

line l !l condition
18 0 1 $param{-'connector'} //= 1
48 0 0 $param{$_} // 'undef'
51 0 0 $pkg->Defaults->{$_} // 'undef'
122 0 0 $tag //= 'connection'
153 0 2 ($param->schema // $param->{'db'}) // ''
207 0 0 (shift())->{'mysql_thread_id'} // 0
229 0 0 $variables->{'ignore_builtin_innodb'} // ''
239 0 0 $value //= 1
247 0 0 $value //= 1
263 0 0 $@ // ''
275 0 0 $args[2] //= 'TABLE,VIEW'
283 0 0 $@ // ''
401 0 0 $engine //= 'InnoDB'
406 0 0 ($self->selectrow_array("SHOW /*!50500 ENGINE */ $engine STATUS"))[$i] // die("Failed to get engine ($engine) status\n")
463 0 0 $days //= 0
464 0 0 $format //= '%Y-%m-%d'
476 0 0 $self->global_var('innodb_max_dirty_pages_pct') // die("Failed to get dirty_pages info\n")
478 0 0 $self->selectrow_hashref('SHOW SLAVE STATUS') // {}
480 0 0 $repl->{'Slave_SQL_Running'} // ''
505 0 0 $@ // ''
516 0 0 $scope //= 'SESSION'
545 0 0 $@ // ''

or 3 conditions

line l !l&&r !l&&!r condition
28 0 1 0 $self->{$cname} //= 'Mojar::Mysql::Connector'->new
110 0 0 0 ref $proto || $proto
123 0 0 0 $$self{"dbh.$tag"} //= $self->connect
153 0 0 2 $param->schema // $param->{'db'}
221 0 0 0 @_ >= 2 or @_ == 1 and $_[0] ne 'have_innodb'
485 0 0 0 shift() // $pct