blib/lib/IO/Async/Routine.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 15 | 26 | 57.6 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
238 | 10 | 64 | 0 | defined $self->{'code'} and defined $self->{'func'} |
240 | 64 | 10 | 0 | defined $self->{'func'} and not defined $self->{'module'} |
247 | 4 | 70 | 0 | $model eq 'fork' and not 'IO::Async::OS'->HAVE_POSIX_FORK |
249 | 74 | 0 | 0 | $model eq 'thread' and not 'IO::Async::OS'->HAVE_THREADS |
line | l | !l | condition |
---|---|---|---|
220 | 0 | 49 | $ENV{'IO_ASYNC_ROUTINE_MODEL'} || 'fork' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
220 | 25 | 49 | 0 | $params->{'model'} ||= $ENV{'IO_ASYNC_ROUTINE_MODEL'} || 'fork' |
243 | 63 | 11 | 0 | $SETUP_CODE{$model} ||= $self->can("_setup_$model") |
266 | 74 | 0 | 0 | $SETUP_CODE{$model} ||= $self->can("_setup_$model") |
598 | 7 | 13 | 0 | $self->{'result_future'} //= do { my $f = $self->loop->new_future; $f->on_ready(sub { undef $self; } ); $f } |