blib/lib/DBIx/HA.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 12 | 50 | 24.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
92 | 2 | 0 | 0 | 'Apache'->can('push_handlers') and $Apache::ServerStarting == 1 |
116 | 0 | 0 | 0 | $DATABASE::conf{$dbname}{'connectoninit'} and $loaded_Apache_DBI |
129 | 0 | 0 | 0 | $loaded_Apache and -f "$logdir/DBIxHA_activedb_$dbname" |
139 | 0 | 0 | 0 | $dbidx =~ /^\d+$/o and $DATABASE::conf{$dbname}{'db_stack'}[$dbidx] |
258 | 0 | 0 | 0 | 3 == $#args and ref $args[3] eq 'HASH' |
280 | 0 | 0 | 0 | defined $dbh and ref $dbh |
302 | 0 | 0 | 1 | defined $dbh and ref $dbh |
308 | 1 | 0 | 0 | $$newdbh{'syb_flush_finish'} and $$newdbh{'Driver'}{'Name'} ne 'Gofer' |
469 | 1 | 0 | 0 | not defined $res and &{$DATABASE::conf{$dbname}{'failtest_function'};}($orig_error_code, $orig_error_string) |
line | l | !l | condition |
---|---|---|---|
12 | 0 | 2 | $ENV{'DBIX_HA_DEBUG'} || 0 |
85 | 0 | 0 | $DATABASE::conf{$dbname}{'pingtimeout'} || -1 |
173 | 0 | 0 | ">/$logdir/DBIxHA_activedb_$dbname" || (return 0) |
267 | 1 | 0 | shift() || undef |
419 | 3 | 0 | $$dbh{'private_dbixha_dsn'} || die('panic: no private_dbixha_dsn') |
455 | 2 | 0 | $$dbh{'private_dbixha_dsn'} || die('panic: no private_dbixha_dsn') |
566 | 1 | 0 | shift() || undef |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
392 | 0 | 0 | 3 | $@ or $timeout |
469 | 0 | 0 | 1 | $to or not defined $res and &{$DATABASE::conf{$dbname}{'failtest_function'};}($orig_error_code, $orig_error_string) |
547 | 0 | 0 | 2 | $@ or $timeout |