Branch Coverage

blib/lib/POE/Wheel/ReadWrite.pm
Criterion Covered Total %
branch 84 144 58.3


line true false branch
40 2 156 if @_ and ref $_[0] eq 'POE::Kernel'
43 0 156 unless defined $POE::Wheel::ReadWrite::poe_kernel
46 148 8 if (defined $params{'Handle'}) { }
47 0 148 if defined $params{'InputHandle'}
49 0 148 if defined $params{'OutputHandle'}
54 2 6 unless defined $params{'InputHandle'}
56 2 4 unless defined $params{'OutputHandle'}
63 109 43 if (defined $params{'Filter'}) { }
64 0 109 if defined $params{'InputFilter'}
66 0 109 if defined $params{'OutputFilter'}
76 43 0 unless (defined $in_filter and defined $out_filter)
78 43 0 unless defined $in_filter
79 43 0 unless defined $out_filter
84 41 111 unless defined $driver
87 4 148 if (defined $params{'HighMark'} xor defined $params{'LowMark'}) { }
12 136 elsif (defined $params{'HighMark'}) { }
93 0 12 unless (defined $params{'HighMark'} and defined $params{'LowMark'})
97 6 6 unless ($params{'HighMark'} > 0 and $params{'LowMark'} > 0)
102 6 146 if (defined $params{'HighEvent'} and not defined $params{'HighMark'})
106 8 144 if (defined $params{'LowMark'} xor defined $params{'LowEvent'})
110 18 134 if $mark_errors
138 0 134 if (scalar keys %params)
187 0 217 if ($!) { }
188 0 0 if $$event_error
201 4 213 if ($$is_in_high_water_state) { }
0 424 elsif ($high_mark and $$driver_buffered_out_octets >= $high_mark) { }
202 4 0 if ($$driver_buffered_out_octets <= $low_mark)
204 4 0 if defined $$event_low
219 0 0 if defined $$event_high
227 217 0 unless ($$driver_buffered_out_octets)
229 216 1 if $$event_flushed
237 136 0 unless $$self[13]
250 132 6 if (defined $$self[5]) { }
264 132 0 if ($$input_filter->can('get_one') and $$input_filter->can('get_one_start')) { }
277 221 64 if (defined(my $raw_input = $driver->get($handle))) { }
281 221 213 unless @$next_rec
288 64 0 if $$event_error
310 0 0 if (defined(my $raw_input = $driver->get($handle))) { }
316 0 0 if $$event_error
338 0 4 if scalar @_ & 1
345 2 12 if ($name eq 'InputEvent') { }
4 8 elsif ($name eq 'ErrorEvent') { }
4 4 elsif ($name eq 'FlushedEvent') { }
2 2 elsif ($name eq 'HighEvent') { }
2 0 elsif ($name eq 'LowEvent') { }
358 2 0 if (defined $$self[8]) { }
367 2 0 if (defined $$self[9]) { }
380 4 0 if $redefine_read
381 4 0 if $redefine_write
391 134 0 if ($$self[0])
396 132 0 if ($$self[1])
401 130 2 if ($$self[15])
406 132 0 if ($$self[14])
427 0 0 if ($$self[17] and $new_buffered_out_octets and not $old_buffered_out_octets)
439 219 28 if ($new_buffered_out_octets and not $old_buffered_out_octets)
444 8 239 if ($$self[8] and $new_buffered_out_octets >= $$self[8])
465 41 0 if ($old_input_filter->can('get_one') and $old_input_filter->can('get_one_start')) { }
469 9 32 if (defined $buf)
473 1 18 unless @$next_rec
487 0 0 if (defined $buf)
544 0 0 unless (defined $$self[8])
549 0 0 unless (defined $new_high_mark)
554 0 0 unless ($new_high_mark > $$self[9])
566 0 0 unless (defined $$self[9])
571 0 0 unless (defined $new_low_mark)
576 0 0 unless ($new_low_mark > 0)
581 0 0 unless ($new_low_mark < $$self[8])
607 0 2 unless defined $$self[0]
614 0 2 unless defined $$self[0]
633 0 2 unless defined $$self[0]
641 0 2 unless defined $$self[1]
649 0 0 unless defined $$self[1]