Condition Coverage

lib/DBD/Safe.pm
Criterion Covered Total %
condition 27 34 79.4


and 3 conditions

line !l l&&!r l&&r condition
232 0 94 0 $state and $$state{'dbh'}
25 69 0 $state and $$state{'dbh'} and $dont_check
303 31 1 1 defined $$state{'tid'} and $$state{'tid'} != 'threads'->tid
322 25 7 5 $$state{'dbh'} and not $dbh->FETCH('AutoCommit')
364 5 1 25 $active && $ping

or 2 conditions

line l !l condition
177 1 0 $dbh->FETCH('x_safe_transaction_start') || 0
178 1 0 $dbh->FETCH('x_safe_state')->{'last_reconnect'} || 0
341 0 4 $$state{'last_error'} || ''
361 26 5 $$state{'dbh'}{'Active'} || ''
362 25 6 $$state{'dbh'}->ping || ''

or 3 conditions

line l !l&&r !l&&!r condition
303 4 0 33 &$reconnect_cb($dbh) or defined $$state{'tid'} and $$state{'tid'} != 'threads'->tid
1 1 31 &$reconnect_cb($dbh) or defined $$state{'tid'} and $$state{'tid'} != 'threads'->tid or $$state{'pid'} != $$
2 6 25 &$reconnect_cb($dbh) or defined $$state{'tid'} and $$state{'tid'} != 'threads'->tid or $$state{'pid'} != $$ or not is_connected($dbh)