Condition Coverage

blib/lib/IO/Callback.pm
Criterion Covered Total %
condition 48 51 94.1


and 3 conditions

line !l l&&!r l&&r condition
263 1 23 1 $ret and ref $ret eq 'IO::Callback::ErrorMarker'
362 415261 218441 13312 $/ eq '' and $$buf =~ s/^(\n+)//
372 6742 1484 8698 *$self->{'code'} and length $$buf == 0
378 19845 33694 23183 *$self->{'code'} and length $$buf == 0
53539 0 23183 *$self->{'code'} and length $$buf == 0 and not *$self->{'err'}
379 33694 0 19845 length $$buf == 0 and not *$self->{'code'}
440 36495 242953 391448 *$self->{'code'} and $len > length $$buf
279448 47323 344125 *$self->{'code'} and $len > length $$buf and $self->_doread
559 396 40 156 $off >= $slen and $off > 0
436 36 120 $off >= $slen and $off > 0 and $] < 5.011 || $off > $slen
572 5 48561 12 defined $ret and ref $ret eq 'IO::Callback::ErrorMarker'

or 2 conditions

line l !l condition
433 331652 801 $_[1] || 0
448 1921 360 $_[2] || 0
558 496 96 $_[2] || 0

or 3 conditions

line l !l&&r !l&&!r condition
279 19 17 2 defined *$self->{'r'} || defined *$self->{'w'}
345 67754 18 133457 *$self->{'eof'} or *$self->{'err'}
406 18 3841 56891 *$self->{'err'} or *$self->{'eof'}
559 0 120 36 $] < 5.011 || $off > $slen