Condition Coverage

blib/lib/HealthCheck/Diagnostic/DBHCheck.pm
Criterion Covered Total %
condition 17 27 62.9


and 3 conditions

line !l l&&!r l&&r condition
20 7 0 0 @params == 1 && (ref $params[0] || '') eq 'HASH'
23 1 5 1 $params{'dbh'} and ref $params{'dbh'} ne "CODE"
55 7 3 1 ref $self && defined $self->{'timeout'}
134 0 0 2 $row[0] and $row[0] eq "Hello world"
153 0 3 2 $dbh->can("ping") and not $dbh->ping
160 0 0 3 defined $value and $value == 1

or 2 conditions

line l !l condition
47 2 11 ($params{'db_access'} // ref $self && $self->{'db_access'}) || 'rw'
82 0 6 ($params{'db_class'} // ref $self && $self->{'db_class'}) || 'DBI::db'
104 0 2 $params{'table_name'} // "__DBH_CHECK__"

or 3 conditions

line l !l&&r !l&&!r condition
38 0 5 1 $dbh ||= $self->{'dbh'}