Condition Coverage

blib/lib/AnyEvent/Handle.pm
Criterion Covered Total %
condition 41 128 32.0


and 3 conditions

line !l l&&!r l&&r condition
615 17 0 0 1 != unpack('I', $type) and defined $type
632 17 0 0 exists $self->{'no_delay'} and $self->{'no_delay'}
633 17 0 0 exists $self->{'keepalive'} and $self->{'keepalive'}
927 4 3 6 $cb and $self->{'low_water_mark'} >= length($self->{'wbuf'}) + length($self->{'_tls_wbuf'})
944 1 16 344 not $self->{'_ww'} and length $self->{'wbuf'}
951 0 0 0 $! != 11 and $! != 4
0 0 0 $! != 11 and $! != 4 and $! != 11
0 0 0 $! != 11 and $! != 4 and $! != 11 and $! != -1e+99
958 9 333 2 $self->{'low_water_mark'} >= length($self->{'wbuf'}) + length($self->{'_tls_wbuf'}) and $self->{'on_drain'}
973 344 0 0 defined $self->{'wbuf_max'} and $self->{'wbuf_max'} < length $self->{'wbuf'}
1329 0 69 0 $len == length $self->{'rbuf'} and not @{$self->{'_queue'};}
69 0 0 $len == length $self->{'rbuf'} and not @{$self->{'_queue'};} and $self->{'on_read'}
1356 395 0 0 defined $self->{'rbuf_max'} and $self->{'rbuf_max'} < length $self->{'rbuf'}
2007 0 0 0 $! != 11 and $! != 4
0 0 0 $! != 11 and $! != 4 and $! != 11
0 0 0 $! != 11 and $! != 4 and $! != 11 and $! != -1e+99
2073 10 0 0 $tmp != $ERROR_WANT_READ and $tmp != $ERROR_SYSCALL || $!
2105 561 0 0 $tmp != $ERROR_WANT_READ and $tmp != $ERROR_SYSCALL || $!
2117 561 0 0 $self->{'_on_starttls'} and Net::SSLeay::state($self->{'tls'}) == Net::SSLeay::ST_OK()
2242 0 0 0 $self->{'tls'} and $self->{'fh'}
2284 0 15 1 $linger and length $self->{'wbuf'}
15 0 1 $linger and length $self->{'wbuf'} and $self->{'fh'}
2293 0 0 0 $! != 11 and $! != 4
0 0 0 $! != 11 and $! != 4 and $! != 11
0 0 0 $! != 11 and $! != 4 and $! != 11 and $! != -1e+99

or 2 conditions

line l !l condition
624 0 17 $self->{'read_size'} ||= 2048
626 0 17 $self->{'max_read_size'} || 131072
2021 0 4 $self->{'max_read_size'} || 131072
0 24 $self->{'max_read_size'} || 131072

or 3 conditions

line l !l&&r !l&&!r condition
643 1 5 11 $self->{'on_read'} or @{$self->{'_queue'};}
652 0 1 0 $message ||= "$!"
654 0 0 0 $self->{'fh'} or $self->{'connect'}
995 132 0 0 ($WH{$type} ||= &_load_func("${type}::anyevent_write_type")) || Carp::croak("unsupported/unloadable type '${type}' passed to AnyEvent::Handle::push_write")
1366 0 3 3 $self->{'on_read'} or @{$self->{'_queue'};}
1446 217 0 0 ($RH{$type} ||= &_load_func("${type}::anyevent_read_type")) || Carp::croak("unsupported/unloadable type '${type}' passed to AnyEvent::Handle::push_read")
1462 99 0 0 ($RH{$type} ||= &_load_func("${type}::anyevent_read_type")) || Carp::croak("unsupported/unloadable type '${type}' passed to AnyEvent::Handle::unshift_read")
2000 4 0 15 $self->{'_rw'} or $self->{'_eof'}
0 0 15 $self->{'_rw'} or $self->{'_eof'} or not $self->{'fh'}
2073 0 0 0 $tmp != $ERROR_SYSCALL || $!
2105 0 0 0 $tmp != $ERROR_SYSCALL || $!
2186 0 0 0 $TLS_CACHE{$key} ||= 'AnyEvent::TLS'->new(%$ctx)
2192 10 0 0 $ctx || &TLS_CTX()
2293 1 0 0 defined $len or $! != 11 and $! != 4 and $! != 11 and $! != -1e+99
2377 0 0 0 $TLS_CTX ||= do { require AnyEvent::TLS; 'AnyEvent::TLS'->new }