| blib/lib/Device/WallyHome/Role/Creator.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 11 | 27 | 40.7 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 41 | 0 | 8 | 2 | $self->does($restApiRole) and $class->does($restApiRole) |
| line | l | !l | condition |
|---|---|---|---|
| 23 | 10 | 0 | $params //= {} |
| 131 | 1 | 0 | $sensorData->{'thresholds'} // {} |
| 145 | 1 | 0 | $sensorData->{'state'} // {} |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 45 | 0 | 2 | 0 | $params->{'apiHostname'} //= $self->apiHostname |
| 46 | 0 | 2 | 0 | $params->{'apiUseHttps'} //= $self->apiUseHttps |
| 47 | 0 | 2 | 0 | $params->{'apiVersion'} //= $self->apiVersion |
| 48 | 0 | 0 | 2 | $params->{'lastApiError'} //= $self->lastApiError |
| 49 | 0 | 2 | 0 | $params->{'token'} //= $self->token |
| 50 | 0 | 2 | 0 | $params->{'timeout'} //= $self->timeout |