Condition Coverage

blib/lib/CGI/Application/Plugin/DBH.pm
Criterion Covered Total %
condition 17 24 70.8


and 3 conditions

line !l l&&!r l&&r condition
30 7 0 18 defined $$self{'__DBH'}{$name} and $$self{'__DBH'}{$name}->ping
34 0 7 0 ref $config and ref $config eq 'CODE'
61 4 0 3 ref $_[0] and $_[0]->isa('DBI::db')

or 2 conditions

line l !l condition
22 27 2 $$self{'__DBH_DEFAULT_NAME'} ||= '__cgi_application_plugin_dbh'
52 7 3 $$self{'__DBH_DEFAULT_NAME'} ||= '__cgi_application_plugin_dbh'
118 12 1 $$self{'__DBH_DEFAULT_NAME'} || '__cgi_application_plugin_dbh'

or 3 conditions

line l !l&&r !l&&!r condition
23 22 7 0 $name ||= $$self{'__DBH_DEFAULT_NAME'}
55 6 4 0 $name ||= $$self{'__DBH_DEFAULT_NAME'}
61 3 0 7 ref $_[0] eq 'ARRAY' or ref $_[0] eq 'CODE'