blib/lib/IO/Async/Routine.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 15 | 29 | 51.7 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
239 | 10 | 64 | 0 | defined $self->{'code'} and defined $self->{'func'} |
241 | 64 | 10 | 0 | defined $self->{'func'} and not defined $self->{'module'} |
248 | 4 | 70 | 0 | $model eq "fork" and not "IO::Async::OS"->HAVE_POSIX_FORK |
250 | 74 | 0 | 0 | $model eq "thread" and not "IO::Async::OS"->HAVE_THREADS |
417 | 0 | 0 | 0 | defined $_ and $_->close |
line | l | !l | condition |
---|---|---|---|
221 | 0 | 49 | $ENV{'IO_ASYNC_ROUTINE_MODEL'} || 'fork' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
221 | 25 | 49 | 0 | $params->{'model'} ||= $ENV{'IO_ASYNC_ROUTINE_MODEL'} || 'fork' |
244 | 63 | 11 | 0 | $SETUP_CODE{$model} ||= $self->can("_setup_$model") |
267 | 74 | 0 | 0 | $SETUP_CODE{$model} ||= $self->can("_setup_$model") |
599 | 7 | 13 | 0 | $self->{'result_future'} //= do { my $f = $self->loop->new_future; $f->on_ready(sub { undef $self; } ); $f } |