Condition Coverage

blib/lib/Alarm/Concurrent.pm
Criterion Covered Total %
condition 2 43 4.6


and 3 conditions

line !l l&&!r l&&r condition
353 0 0 0 $index < @Alarm::Concurrent::ALARM_QUEUE && $index > -1
379 1 0 0 defined $SIG{'ALRM'} and $SIG{'ALRM'} == \&_alrm
383 1 0 0 $oldalrm and shift()

or 2 conditions

line l !l condition
233 0 0 shift() || 0
234 0 0 shift() || 1

or 3 conditions

line l !l&&r !l&&!r condition
154 0 0 0 $handler ||= $Alarm::Concurrent::DEFAULT_HANDLER
168 0 0 0 $Alarm::Concurrent::ACTIVE_ALARM == -1 or $time_remaining < $active_time
172 0 0 0 splice(@Alarm::Concurrent::ALARM_QUEUE, $i--, 1)->[2] || $Alarm::Concurrent::DEFAULT_HANDLER
202 0 0 0 not defined $code or UNIVERSAL::isa($code, 'CODE')
213 0 0 0 $Alarm::Concurrent::ACTIVE_ALARM == -1 or $alarm < $time_remaining
252 0 0 0 $Alarm::Concurrent::ACTIVE_ALARM == -1 or $time_remaining < $active_time
256 0 0 0 $handler ||= $Alarm::Concurrent::DEFAULT_HANDLER
299 0 0 0 $Alarm::Concurrent::ACTIVE_ALARM == -1 or $alarm < $time_remaining
323 0 0 0 not defined $_[-1] or UNIVERSAL::isa($_[-1], 'CODE')
351 0 0 0 shift() || $Alarm::Concurrent::ACTIVE_ALARM