Branch Coverage

blib/lib/Parallel/DataPipe.pm
Criterion Covered Total %
branch 64 114 56.1


line true false branch
9 92 0 $^O =~ /linux|cygwin/ ? :
15 258 92 if (ref $input eq 'HASH') { }
25 350 33 if (ref $class eq "HASH")
33 17 383 unless (exists $param->{'input'})
34 0 17 unless $param->{'input'} = $default_input
37 175 134 if (ref $pipe->{'output'} eq "ARRAY")
48 134 158 unless defined wantarray
49 0 158 unless $result
50 158 0 wantarray ? :
62 499 501705 if $prev_busy and $me->free_processors
84 319 81 unless (ref $input_iterator eq "CODE")
85 0 319 unless ref $input_iterator eq "ARRAY"
88 0 319 if ($old_behaviour) { }
91 0 0 $i < $l ? :
94 505572 0 $queue ? :
103 175 134 unless (ref $output_iterator eq "CODE")
120 3919 502204 unless defined $data
131 186 92 if $number_of_cpu_cores
136 0 92 unless $number_of_cpu_cores
156 76 324 if ($freeze and $thaw) { }
161 0 324 unless eval "\n use Sereal qw(encode_sereal decode_sereal);\n \$self->{freeze} = \\&encode_sereal;\n \$self->{thaw} = \\&decode_sereal;\n 1;\n "
188 91 514226 if $data_size == '-2147483648'
189 0 514226 if ($data_size == 0) { }
203 62074 452152 if $data_size < 0
212 960 514226 unless (defined $data)
217 62058 452168 if (ref $data)
235 0 4277 unless (defined $pid)
239 91 4186 if ($pid == 0)
245 0 91 if ref $init_data_processor and ref $init_data_processor eq "CODE"
261 91 12022 unless (defined $_)
286 278 122 unless $number_of_data_processors
287 0 400 unless ref $process_data_callback eq "CODE"
288 0 400 unless defined $number_of_data_processors
295 0 502204 unless defined $data
313 293 501911 unless $ready
314 32195 470009 unless @$ready
351 0 309 if $not_supported
357 16 60 unless $self->{'mypid'} == $$
427 0 8554 if (defined $conduit_type)
428 0 0 if _try_oneway_type($conduit_type, $debug, \$a_read, \$b_write)
437 8554 0 if _try_oneway_type($try_type, $debug, \$a_read, \$b_write)
445 0 0 if $debug
455 8554 0 if ($type eq "pipe")
457 0 8554 unless pipe $$a_read, $$b_write
461 0 8554 if (length $@)
462 0 0 if $debug
466 0 8554 if ($debug)
478 0 0 if ($type eq "socketpair")
480 0 0 unless socketpair $$a_read, $$b_write, 1, 1, 0
484 0 0 if (length $@)
485 0 0 if $debug
489 0 0 if ($debug)
505 0 0 if ($type eq "inet")
510 0 0 if (length $@)
511 0 0 if $debug
515 0 0 if ($debug)
531 0 0 if $debug