| blib/lib/HealthCheck/Diagnostic/DBHCheck.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 14 | 24 | 58.3 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 20 | 6 | 0 | 0 | @params == 1 && (ref $params[0] || '') eq 'HASH' |
| 23 | 1 | 4 | 1 | $params{'dbh'} and ref $params{'dbh'} ne 'CODE' |
| 111 | 0 | 0 | 2 | $row[0] and $row[0] eq 'Hello world' |
| 130 | 0 | 3 | 2 | $dbh->can('ping') and not $dbh->ping |
| 137 | 0 | 0 | 3 | defined $value and $value == 1 |
| line | l | !l | condition |
|---|---|---|---|
| 47 | 2 | 9 | ($params{'db_access'} // ref $self && $self->{'db_access'}) || 'rw' |
| 59 | 0 | 6 | ($params{'db_class'} // ref $self && $self->{'db_class'}) || 'DBI::db' |
| 81 | 0 | 2 | $params{'table_name'} // '__DBH_CHECK__' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 38 | 0 | 4 | 1 | $dbh ||= $self->{'dbh'} |