Branch Coverage

blib/lib/MultiProcFactory.pm
Criterion Covered Total %
branch 50 70 71.4


line true false branch
27 0 52 unless defined $params{'work_by'}
32 0 52 unless ($class =~ /^\w+(?:\:\:\w+)*$/)
38 0 52 if ($@)
53 35 17 unless defined $args{'log_children'}
54 34 18 unless defined $args{'log_parent'}
65 51 1 unless ($args{'IPC_OFF'})
75 0 52 unless ref $args{'do_child'} eq 'CODE'
78 0 52 unless ref $args{'do_parent_final'} eq 'CODE'
81 0 52 if (ref $args{'do_parent_init'}) { }
82 0 0 unless (ref $args{'do_parent_init'} eq 'CODE')
108 0 51 $$self{'log_parent_append'} ? :
113 34 17 if ($$self{'log_parent'})
122 34 17 if ($$self{'log_parent'})
143 300 24 if ($pid) { }
24 0 elsif (defined $pid) { }
155 27 24 if ($pid)
161 18 9 if ($$self{'log_parent'})
173 8 16 if ($$self{'log_children'})
179 0 8 $$self{'log_child_append'} ? :
193 8 16 if ($$self{'log_children'})
205 144 72 if ($$self{'log_parent'})
215 18 9 if ($$self{'log_parent'})
244 358 72 if ($$self{'log_parent'})
254 8 8 if ($$self{'log_children'})
276 24 0 !$$self{'IPC_OFF'} ? :
285 24 0 !$$self{'IPC_OFF'} ? :
294 24 0 !$$self{'IPC_OFF'} ? :
303 24 0 !$$self{'IPC_OFF'} ? :
314 24 0 if (not $$self{'IPC_OFF'})
324 448 8 !$$self{'IPC_OFF'} ? :
335 0 0 if (not $$self{'IPC_OFF'})
345 16 0 if (not $$self{'IPC_OFF'})
355 8 0 if (not $$self{'IPC_OFF'})
366 51 1 !$$self{'IPC_OFF'} ? :
374 26 25 unless $$self{'log_file'} =~ /\.log$/