Branch Coverage

lib/MojoX/Mysql/DB.pm
Criterion Covered Total %
branch 5 38 13.1


line true false branch
22 4 0 if (exists $$self{'config'}{$id}{'master'}) { }
29 4 0 if (defined $config and ref $config eq 'HASH' and %{$config;})
30 0 4 if (ref $$self{'dbh'}{'master'}{$id} eq 'DBI::db')
32 0 0 if $dbh->ping
45 0 0 if ($DBI::errstr) { }
65 0 0 if (exists $$self{'config'}{$id}{'slave'}) { }
72 0 0 if (defined $config and ref $config eq 'ARRAY' and @{$config;})
73 0 0 if (ref $$self{'dbh'}{'slave'}{$id} eq 'DBI::db')
75 0 0 if $dbh->ping
90 0 0 if ($DBI::errstr) { }
107 0 0 if (ref $types eq 'HASH')
110 0 0 if ref $dbh eq 'DBI::db'
111 0 0 if defined $ENV{'MOJO_MYSQL_DEBUG'}
120 4 0 if (ref $types eq 'HASH')
123 0 0 if ref $dbh eq 'DBI::db'
124 0 0 if defined $ENV{'MOJO_MYSQL_DEBUG'}
133 3 0 if (ref $types eq 'HASH')
136 0 0 if ref $dbh eq 'DBI::db'
137 0 0 if defined $ENV{'MOJO_MYSQL_DEBUG'}