Branch Coverage

blib/lib/DBIx/QuickDB/Driver/MySQL.pm
Criterion Covered Total %
branch 6 90 6.6


line true false branch
44 97 23 if $PROVIDER_CACHE{$class}
50 0 30 if (my $mysqld = can_run($bin))
51 0 0 if $this->verify_provider($mysqld)
55 23 0 unless $found{'server_bin'}
58 0 0 if (my $mysql = can_run("mysql"))
59 0 0 if $this->verify_provider($mysql)
63 0 0 unless $found{'client_bin'}
65 0 0 if (my $install = can_run("mysql_install_db"))
68 0 0 unless ($output =~ /is deprecated/)
69 0 0 if $this->verify_provider($install)
83 0 0 if $ok
87 0 0 if $ok
91 0 0 if $ok
108 0 7 if $ok1 or $ok2 or $ok3
116 0 0 if ($class eq __PACKAGE__)
117 0 0 unless my $real_class = $class->choose
121 0 0 @_ == 1 ? :
135 0 0 unless my $type = builtin::reftype($arg)
136 0 0 unless $type eq "HASH"
139 0 0 if (builtin::blessed($arg) and $arg->can("server_bin"))
140 0 0 if $binary = $arg->server_bin
144 0 0 if $binary = $arg->{$l}
147 0 0 if $binary
150 0 0 unless ($binary)
151 0 0 if ($class_or_self eq __PACKAGE__) { }
152 0 0 if (my $sel = $class_or_self->choose)
161 0 0 unless $binary
172 0 0 if builtin::blessed($in) and $in->{'dbd_driver'}
178 80 0 unless eval { do { require $file; 1 } }
180 0 0 if builtin::blessed($in)
267 0 0 defined $ENV{'QDB_MYSQL_SSL_FIPS'} ? :
292 0 0 unless $self->{'config'}
296 0 0 if (defined $cfg->{$key}) { }
302 0 0 if defined $subcfg->{$skey}
333 0 0 unless open my $cfh, ">", $cfg_file
338 0 0 unless my $sconf = $conf->{$section}
340 0 0 if $override->{'add'}
345 0 0 unless defined $val
347 0 0 if $override->{'skip'} and $key =~ /$override->{'skip'}/ || $val =~ /$override->{'skip'}/
349 0 0 if (length $val) { }
370 0 0 unless mkdir $data_dir
371 0 0 unless mkdir $temp_dir
374 0 0 unless open my $init, ">", $init_file
416 0 0 unless defined $db_name
420 0 0 if ($self->dbd_driver eq 'DBD::MariaDB') { }