Branch Coverage

blib/lib/App/CLI/Plugin/DBI.pm
Criterion Covered Total %
branch 8 14 57.1


line true false branch
97 3 0 unless (exists $ENV{'APPCLI_DISABLE_DB_AUTO_CONNECT'})
107 3 0 unless (exists $ENV{'APPCLI_DISABLE_DB_AUTO_CONNECT'})
188 0 4 if (keys %{$self->_dbh;} == 0)
191 0 4 unless (exists $self->_dbh->{$handle})
205 0 3 unless (defined $self->config->{'dbi'})
209 2 1 if (ref $self->config->{'dbi'} eq 'ARRAY') { }
1 0 elsif (ref $self->config->{'dbi'} eq 'HASH') { }