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 7 ref $dbh eq 'CODE' ? :
8 6 if ($dbh and my $driver = $self->_driver_for(ref $dbh eq 'CODE' ? &$dbh() : $dbh, $dsn))
130 6 2 if defined $ret
136 1 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 15 if ($dbh and my $d = $$dbh{'private_dbii_driver'})
164 0 0 if (my $found = $self->_drivers_by_name->{$d}) { }
177 0 43 if (not defined $done) { }
28 15 elsif ($done ne 1) { }
180 0 28 unless $driver = $self->_drivers_by_name->{$done}