Condition Coverage

blib/lib/Device/CurrentCost.pm
Criterion Covered Total %
condition 17 20 85.0


and 3 conditions

line !l l&&!r l&&r condition
123 70 11 0 $interval eq 'hours' and exists $$our{$sensor}{$interval}{'pending'}{4} || exists $$our{$sensor}{$interval}{'pending'}{2}
161 11 5 1 $$self{'buf'} ne '' and $$self{'_last_read'} < $self->_time_now - $$self{'discard_timeout'}

or 2 conditions

line l !l condition
116 7 4 $$self{'history'} || ($$self{'history'} = {})

or 3 conditions

line l !l&&r !l&&!r condition
30 3 9 1 exists $p{'device'} or exists $p{'filehandle'}
123 1 0 10 exists $$our{$sensor}{$interval}{'pending'}{4} || exists $$our{$sensor}{$interval}{'pending'}{2}
23 0 81 exists $$our{$sensor}{$interval}{'pending'}{1} or $interval eq 'hours' and exists $$our{$sensor}{$interval}{'pending'}{4} || exists $$our{$sensor}{$interval}{'pending'}{2}
128 11 3 10 $entries == {'years', 4, 'months', 21, 'days', 90, 'hours', 372}->{$interval} or $entries == {'years', 4, 'months', 12, 'days', 31, 'hours', 13}->{$interval}