Condition Coverage

blib/lib/IO/Async/OS.pm
Criterion Covered Total %
condition 43 62 69.3


and 3 conditions

line !l l&&!r l&&r condition
62 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 58 $Config::Config{'sig_name'} and $Config::Config{'sig_num'}
454 14 22 15 defined $ai[0] and not defined $ai[3]

or 2 conditions

line l !l condition
33 103 0 eval { do { sysconf(4) } } || 1024
178 44 0 $self->getfamilybyname($family) || 1
181 44 0 $self->getsocktypebyname($socktype) || 1
183 20 24 $proto //= 0
234 11 40 $self->getfamilybyname($family) || 1
237 12 39 $self->getsocktypebyname($socktype) || 1
239 0 51 $proto ||= 0
443 15 40 $argname ||= "addr"
472 88 71 $ai[$_] ||= 0
491 4 4 delete $ai->{'port'} || 0
492 3 5 delete $ai->{'ip'} || '0.0.0.0'
514 1 0 delete $ai->{'port'} || 0
515 1 0 delete $ai->{'ip'} || '::'
516 0 1 delete $ai->{'scopeid'} || 0
517 0 1 delete $ai->{'flowinfo'} || 0
644 10 57 $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
374 174 3770 0 @sig_num2name{$sig_name2num{$_}} //= $_
646 8 59 0 $loop->{'os'}{'sigpipe'} // $self->_setup_sigpipe($loop)