Condition Coverage

blib/lib/Apache/DBI.pm
Criterion Covered Total %
condition 2 44 4.5


and 2 conditions

line l !l condition
68 0 0 Carp::carp("Apache.pm was not loaded\n") and return

and 3 conditions

line !l l&&!r l&&r condition
5 1 0 0 exists $ENV{'MOD_PERL_API_VERSION'} && $ENV{'MOD_PERL_API_VERSION'} == 2
16 1 0 0 defined $modperl::VERSION and $modperl::VERSION > 1
71 0 0 0 not @ChildConnect and 'Apache'->can('push_handlers')
89 0 0 0 $data_source =~ /dbi:\w+:.*/ and $timeout =~ /\-*\d+/
109 0 0 0 3 == $#args and ref $args[3] eq 'HASH'
137 0 0 0 $Apache::ServerStarting and $Apache::ServerStarting == 1
200 0 0 0 $Connected{$Idx} and !$needping || eval { do { $Connected{$Idx}->ping } }
271 0 0 0 $Rollback{$Idx} and $dbh
0 0 0 $Rollback{$Idx} and $dbh and $$dbh{'Active'}
0 0 0 $Rollback{$Idx} and $dbh and $$dbh{'Active'} and not $$dbh{'AutoCommit'}
0 0 0 $Rollback{$Idx} and $dbh and $$dbh{'Active'} and not $$dbh{'AutoCommit'} and eval { do { $dbh->rollback } }
319 0 0 0 $Connected{$Idx}{'Active'} and not $Connected{$Idx}{'AutoCommit'}

or 3 conditions

line l !l&&r !l&&!r condition
188 0 0 0 $PingTimeOut{$dsn} == 0 || $PingTimeOut{$dsn} > 0 && $now - $LastPingTime{$dsn} > $PingTimeOut{$dsn}
200 0 0 0 !$needping || eval { do { $Connected{$Idx}->ping } }