Condition Coverage

blib/lib/IO/Event.pm
Criterion Covered Total %
condition 49 132 37.1


and 2 conditions

line l !l condition
1051 0 0 ${*$self;}{'ie_writeclosed'} && (return undef)

and 3 conditions

line !l l&&!r l&&r condition
96 0 0 0 $@ and $@ =~ /Can't locate object method "(.*?)" via package/
98 0 0 0 $event and $event->can($a)
112 0 0 0 $event and $event->can($a)
240 557 0 57 $in_callback and not $${*$self;}{'ie_reentrant'}
329 346 0 75 ${*$self;}{'ie_writeclosed'} and ${*$self;}{'ie_readclosed'}
374 0 0 0 ${*$self;}{'ie_writeclosed'} and ${*$self;}{'ie_readclosed'}
378 0 0 0 ${*$self;}{'ie_writeclosed'} and ${*$self;}{'ie_readclosed'}
392 0 0 0 ${*$self;}{'ie_writeclosed'} and ${*$self;}{'ie_readclosed'}
400 0 0 0 ${*$self;}{'ie_writeclosed'} and ${*$self;}{'ie_readclosed'}
428 0 0 0 ${*$self;}{'ie_connecting'} and ${*$self;}{'ie_connect_timeout'}
0 0 0 ${*$self;}{'ie_connecting'} and ${*$self;}{'ie_connect_timeout'} and time >= ${*$self;}{'ie_connect_timeout'}
544 172 0 451 defined $old and $old eq $new
557 172 508 75 defined $old and $old eq $new
630 0 0 0 $l and $l >= $length
913 790 0 15 $irs =~ /^\d/ and int $irs
914 0 3 12 $irs > 0 and length $$ibuf >= $irs
949 152 30 623 defined $line and length $line
976 110 0 3 $irs =~ /^\d/ and int $irs
980 3 0 0 length $lines[$#lines] != $irs and not $self->eof2
996 20 10 62 @lines and substr($lines[$#lines], -2) ne "\n\n"
30 16 46 @lines and substr($lines[$#lines], -2) ne "\n\n" and not $self->eof2
1014 6 6 6 substr($lines[$#lines], 0 - length($irs)) ne $irs and not $self->eof2
1063 0 102 0 defined $rv and $rv < length $data
102 0 0 not defined $rv and $! == 11
1119 0 0 58 $self and ref $self
0 1 57 $self and ref $self and reftype $self eq 'GLOB'
1122 0 0 0 ${*$self;}{'ie_fh'} and reftype(${*$self;}{'ie_fh'}) eq 'GLOB'
1132 0 0 58 $self and ref $self
0 1 57 $self and ref $self and reftype $self eq 'GLOB'

or 2 conditions

line l !l condition
107 0 0 ref $fh || 'IO::Handle'
1159 0 0 ${*$self;}{'ie_desc'} || 'no description'

or 3 conditions

line l !l&&r !l&&!r condition
203 540 0 3 $$options{'description'} || "wrapper for $fh"
269 415 0 199 $required or ${*$self;}{'ie_handler'}->can($method)
645 51 0 3 length $tmp or $self->eof2
738 0 0 0 $what == 1 or $what == 2
753 0 0 0 $what == 0 or $what == 2
845 54 24 12 $length >= $_[1] or $self->eof2
860 0 0 0 defined $offset or defined $length
1208 78 0 0 %sock || $b
1214 78 0 0 $sock{'Handler'} || (caller)[0]
1244 72 6 0 $ds{'Description'} || join(' ', map({defined $ds{$_} ? "$_=$ds{$_}" : $_;} sort(keys %ds)))
1284 0 0 0 %sock || $b
1290 0 0 0 $sock{'Handler'} || (caller)[0]
1294 0 0 0 $sock{'Description'} || join(' ', map({"$_=$sock{$_}";} sort(keys %sock)))