Branch Coverage

blib/lib/DBIx/DBHResolver.pm
Criterion Covered Total %
branch 34 48 70.8


line true false branch
34 2985 4103 if (is_instance($proto, 'DBIx::DBHResolver')) { }
35 2976 9 unless defined $config
39 4093 10 unless defined $config
47 0 6 unless -f $_ and -r $_
64 0 0 unless my $dbh = $DBI->$DBI_CONNECT_METHOD(@{$proto->connect_info($cluster_or_node, $args);}{'dsn', 'user', 'password', 'attrs'})
73 0 0 unless my $dbh = $DBI->$DBI_CONNECT_CACHED_METHOD(@{$proto->connect_info($cluster_or_node, $args);}{'dsn', 'user', 'password', 'attrs'})
100 1255 1092 if ($proto->is_cluster($cluster_or_node)) { }
1092 0 elsif ($proto->is_node($cluster_or_node)) { }
101 75 1180 if (is_hash_ref($args)) { }
102 0 75 unless $$args{'strategy'}
112 20 1160 if (is_array_ref($cluster_info)) { }
1160 0 elsif (is_hash_ref($cluster_info)) { }
138 857 235 if (is_hash_ref($connect_info)) { }
154 50 286 if (is_hash_ref($args)) { }
167 35 1 wantarray ? :
172 0 1780 if (defined $cluster_info) { }
186 97 503 is_array_ref($cluster_info) ? :
187 600 0 wantarray ? :
197 1257 1096 exists $proto->config->{'clusters'}{$cluster} ? :
202 0 1832 if (defined $node_info) { }
212 1096 2 exists $proto->config->{'connect_info'}{$node} ? :
217 0 1235 unless (is_invocant($class_name))
230 0 1235 if defined $class_name and $class_name eq 'Remainder'
232 0 1235 $class_name =~ /^\+(.+)$/ ? :