Branch Coverage

blib/lib/DBIx/QuickDB/Driver/MySQL.pm
Criterion Covered Total %
branch 9 90 10.0


line true false branch
37 0 6 if ($INSTALLDB = can_run("mysql_install_db"))
39 0 0 if $output =~ /mysql_install_db is deprecated/
51 0 0 unless my $type = &reftype($arg)
52 0 0 unless $type eq "HASH"
55 0 0 if $binary = $arg->{'mysqld'}
144 0 0 $provider eq 'percona' ? :
161 0 6 ref $this ? :
165 6 0 unless $DBDMYSQL or $DBDMARIA
168 6 0 if ($spec->{'bootstrap'}) { }
0 0 elsif ($spec->{'autostart'}) { }
169 6 0 unless $check{'mysqld'} and -x $check{'mysqld'}
172 0 0 unless $check{'mysqld'} and -x $check{'mysqld'}
175 6 0 if ($spec->{'load_sql'})
176 6 0 unless $check{'mysql'} and -x $check{'mysql'}
179 0 6 if ($check{'mysqld'} or $MYSQLD)
181 0 0 if ($version and $version =~ /(\d+)\.(\d+)\.(\d+)/)
183 0 0 if $a < 5 or $a == 5 and $b < 6
188 0 6 unless @bad
198 0 0 unless ($self->{'mysqld_provider'})
199 0 0 if ($self->version_string =~ /(mariadb|percona)/i) { }
202 0 0 if ($self->{'mysqld_provider'} eq "percona")
206 0 0 if ($help =~ /--initialize/) { }
0 0 elsif ($help =~ /--bootstrap/) { }
212 0 0 $INSTALLDB ? :
220 0 0 if ($help =~ /(mariadb|percona)/i) { }
0 0 elsif ($help =~ /--bootstrap/) { }
0 0 elsif ($help =~ /--initialize/) { }
233 0 0 unless $self->{'mysqld_provider'}
252 0 0 unless $self->{'config'}
256 0 0 if (defined $cfg->{$key}) { }
262 0 0 if defined $subcfg->{$skey}
296 0 0 unless open my $cfh, ">", $cfg_file
299 0 0 unless my $sconf = $conf->{$section}
301 0 0 if $params{'add'}
306 0 0 unless defined $val
308 0 0 if $params{'skip'} and $key =~ /$params{'skip'}/ || $val =~ /$params{'skip'}/
310 0 0 if (length $val) { }
331 0 0 unless mkdir $data_dir
332 0 0 unless mkdir $temp_dir
336 0 0 unless open my $init, ">", $init_file
342 0 0 if ($provider eq 'percona') { }
344 0 0 if ($self->{'use_bootstrap'}) { }
345 0 0 if ($self->{'use_installdb'})
406 0 0 unless defined $db_name
410 0 0 if ($self->{'dbd_driver'} eq 'DBD::MariaDB') { }