Branch Coverage

blib/lib/DBIx/Introspector.pm
Criterion Covered Total %
branch 18 28 64.2


line true false branch
97 0 0 if (my $d = $self->_drivers_by_name->{$name}) { }
107 1 0 if (my $d = $self->_drivers_by_name->{$name}) { }
123 1 9 ref $dbh eq 'CODE' ? :
10 6 if ($dbh and my $driver = $self->_driver_for(ref $dbh eq 'CODE' ? &$dbh() : $dbh, $dsn))
130 6 4 if defined $ret
136 3 1 if defined $ret
139 7 0 if $dsn
144 5 2 if defined $dsn_ret
146 0 2 if (ref $dbh eq 'CODE' and ref $$opt{'dbh_fallback_connect'} eq 'CODE')
163 0 17 if ($dbh and my $d = $$dbh{'private_dbii_driver'})
164 0 0 if (my $found = $self->_drivers_by_name->{$d}) { }
177 0 49 if (not defined $done) { }
32 17 elsif ($done ne 1) { }
180 0 32 unless $driver = $self->_drivers_by_name->{$done}