Condition Coverage

blib/lib/IO/Async/OS.pm
Criterion Covered Total %
condition 39 57 68.4


and 3 conditions

line !l l&&!r l&&r condition
64 0 103 0 !$ENV{'IO_ASYNC_NO_THREADS'} && eval { do { $Config::Config{'useithreads'} if require Config } }
131 5 0 2 $name eq "inet6" and defined &IO::Async::OS::_Base::AF_INET6
185 0 42 2 $HAVE_IO_SOCKET_IP and $family == 2 || $family == 10
244 0 0 11 $family == 2 and $socktype == 1 || $socktype == 2
366 0 0 60 $Config::Config{'sig_name'} and $Config::Config{'sig_num'}
452 14 22 15 defined $ai[0] and not defined $ai[3]

or 2 conditions

line l !l condition
35 103 0 eval { do { sysconf(4) } } || 1024
178 44 0 $self->getfamilybyname($family) || 1
181 44 0 $self->getsocktypebyname($socktype) || 1
234 11 36 $self->getfamilybyname($family) || 1
237 12 35 $self->getsocktypebyname($socktype) || 1
239 0 47 $proto ||= 0
441 15 40 $argname ||= "addr"
470 88 71 $ai[$_] ||= 0
489 4 4 delete $ai->{'port'} || 0
490 3 5 delete $ai->{'ip'} || '0.0.0.0'
512 1 0 delete $ai->{'port'} || 0
513 1 0 delete $ai->{'ip'} || '::'
514 0 1 delete $ai->{'scopeid'} || 0
515 0 1 delete $ai->{'flowinfo'} || 0
642 10 59 $loop->{'os'}{'sigwatch'} ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
185 41 1 2 $family == 2 || $family == 10
244 2 9 0 $socktype == 1 || $socktype == 2
644 8 61 0 $loop->{'os'}{'sigpipe'} // $self->_setup_sigpipe($loop)