Branch Coverage

blib/lib/Async/Simple/Task/Fork.pm
Criterion Covered Total %
branch 13 26 50.0


line true false branch
253 197 0 if $self->pid
260 0 0 unless ($self->has_answer)
285 0 191 if ($^O =~ /^(dos|os2|MSWin32|NetWare)$/u)
290 0 191 unless pipe my $parent_reader, my $child_writer
291 0 191 unless pipe my $child_reader, my $parent_writer
296 0 191 unless ($pid)
349 1450 287 unless (eval { do { local $SIG{'ALRM'} = sub { die "alarm\n"; } ; &Async::Simple::Task::Fork::alarm(scalar $self->timeout); $data = readline $pipe; &Async::Simple::Task::Fork::alarm(0) } })
351 1450 0 unless $data
356 0 287 unless defined $data
357 0 287 unless $data eq "-\n"
363 0 287 unless defined $data
366 287 0 $data ? :
423 0 197 unless $self->pid and $self->kill_on_exit