Condition Coverage

blib/lib/Twiggy/Server.pm
Criterion Covered Total %
condition 14 75 18.6


and 3 conditions

line !l l&&!r l&&r condition
27 0 0 1 !$ENV{'PLACK_NO_SENDFILE'} && try(sub { require AnyEvent::AIO; require IO::AIO; 1; } )
111 0 0 2 $is_tcp and $$self{'no_delay'}
178 0 0 0 $! != 11 and $! != 4
0 0 0 $! != 11 and $! != 4 and $! != -1e+99
1 0 0 $! and ($! != 11 and $! != 4 and $! != -1e+99)
230 0 0 1 defined $sock and defined fileno $sock
257 0 0 0 defined $rlen and $rlen > 0
0 0 0 $! != 11 and $! != 4
0 0 0 $! != 11 and $! != 4 and $! != -1e+99
0 0 0 $! and ($! != 11 and $! != 4 and $! != -1e+99)
312 1 0 0 blessed $res and $res->isa('AnyEvent::CondVar')
428 0 0 1 defined wantarray && &AE::cv()
432 0 0 0 $! != 11 and $! != 4
0 0 0 $! != 11 and $! != 4 and $! != -1e+99
1 0 0 not defined $written and ($! != 11 and $! != 4 and $! != -1e+99)
448 0 0 1 $! != 11 and $! != 4
0 0 1 $! != 11 and $! != 4 and $! != -1e+99
475 0 0 0 blessed $body and $body->can('string_ref')
557 0 0 0 HAS_AIO and -s $body
566 0 0 0 $ret == -1 and not $! == 11 || $! == 4

or 2 conditions

line l !l condition
44 1 0 $$self{'host'} || ''
1 0 $$self{'port'} || 0
97 0 1 $$self{'backlog'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
181 1 0 3 $line eq "\r\n" or $line eq "\n"
566 0 0 0 $! == 11 || $! == 4
0 0 0 $offset >= $length or $ret == -1 and not $! == 11 || $! == 4