Branch Coverage

blib/lib/Parallel/DataPipe.pm
Criterion Covered Total %
branch 63 112 56.2


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)
260 91 12022 unless (defined $_)
284 278 122 unless $number_of_data_processors
285 0 400 unless ref $process_data_callback eq 'CODE'
286 0 400 unless defined $number_of_data_processors
293 0 502204 unless defined $data
311 293 501911 unless $ready
312 36144 466060 unless @$ready
349 0 309 if $not_supported
355 16 60 unless $$self{'mypid'} == $$
425 0 8554 if (defined $conduit_type)
426 0 0 if _try_oneway_type($conduit_type, $debug, \$a_read, \$b_write)
435 8554 0 if _try_oneway_type($try_type, $debug, \$a_read, \$b_write)
443 0 0 if $debug
453 8554 0 if ($type eq 'pipe')
455 0 8554 unless pipe $$a_read, $$b_write
459 0 8554 if (length $@)
460 0 0 if $debug
464 0 8554 if ($debug)
476 0 0 if ($type eq 'socketpair')
478 0 0 unless socketpair $$a_read, $$b_write, 1, 1, 0
482 0 0 if (length $@)
483 0 0 if $debug
487 0 0 if ($debug)
503 0 0 if ($type eq 'inet')
508 0 0 if (length $@)
509 0 0 if $debug
513 0 0 if ($debug)
529 0 0 if $debug