Branch Coverage

blib/lib/Async/Event/Interval.pm
Criterion Covered Total %
branch 41 62 66.1


line true false branch
58 19 5 $self->pid && $self->pid == -99 ? :
73 29 449 if defined $id
83 30 0 if (defined $interval)
84 0 12 unless ($interval =~ /^\d+$/ or $interval =~ /^(\d+)?\.\d+$/)
108 8 10 unless (exists $events{$self->id}{'shared_scalars'}{$shm_key})
114 1 8 unless ($unique_shm_key_found)
126 2 24 if ($self->_started)
136 18 22 if ($self->_started)
137 0 18 unless ($self->pid)
141 18 0 if ($self->pid > 0)
142 11 7 if (kill 0, $self->pid) { }
158 33 0 if ($self->pid)
167 0 33 if (kill 0, $self->pid)
175 6 1 if $self->error or not $self->status
182 29 0 if (defined $args)
191 29 0 if (defined $cb)
192 0 29 if ref $cb ne "CODE"
200 0 3 if defined $increment
205 0 2 if defined $msg
213 24 0 if ($pid)
225 0 0 if ($self->interval) { }
234 0 0 unless ($callback_success)
253 0 0 unless ($callback_success)
271 29 24 unless (exists $self->{'pm'})
279 31 242 if defined $pid
280 262 11 if $self->{'pid'}
301 0 8 if defined $increment
315 93 66 if defined $started
319 19 10 if $_[0]->pid
325 0 29 if (caller())[0] eq "Parallel::ForkManager::Child"
330 0 25 if (keys %events)