Branch Coverage

blib/lib/POE/Component/CPAN/Reporter.pm
Criterion Covered Total %
branch 50 132 37.8


line true false branch
27 0 7 if ($^O eq 'MSWin32')
29 0 0 if ($@)
31 0 0 if ($@)
33 0 0 if ($@)
37 7 0 ref $options eq 'HASH' ? :
64 0 0 unless $$self{'_current_job'}
71 0 0 unless $$self{'_wheel_log'}
84 1 0 if $pause
95 1 0 if wantarray
108 7 0 if ($$self{'alias'}) { }
114 7 0 unless $$self{'idle'}
115 7 0 unless $$self{'timeout'}
124 0 7 if $$self{'reporterdir'}
137 0 7 unless $$self{'alias'}
145 0 7 if $$self{'_shutdown'}
147 7 0 if (ref $_[10] eq 'HASH') { }
153 5 2 if $state eq 'submit'
160 0 2 unless ($$args{'module'} or $state =~ /^(check|indices)$/i)
165 0 7 unless ($$args{'event'})
170 0 7 if ($state =~ /^(package|author)$/ and not $$args{'search'})
177 1 6 if ($state eq 'check') { }
1 5 elsif ($state eq 'indices') { }
178 0 1 if ($^O eq 'MSWin32') { }
189 1 0 unless $$args{'prioritise'}
190 0 1 if ($^O eq 'MSWin32') { }
201 0 5 if ($^O eq 'MSWin32') { }
216 0 7 if ($state eq 'unshift' or $$args{'prioritise'}) { }
231 3 4 if $$self{'debug'}
236 0 7 if ($$job{'cmd'} eq 'recent') { }
0 7 elsif ($$job{'cmd'} =~ /^(package|author)$/) { }
250 4 3 unless ($$self{'debug'})
256 0 7 if $run_time > $$self{'stats'}{'max_run'}
257 7 0 if $$self{'stats'}{'min_run'} == 0
258 0 7 if $run_time < $$self{'stats'}{'min_run'}
263 0 7 if $$job{'reporterdir'}
272 0 15 if $$self{'wheel'}
273 0 15 if $$self{'_shutdown'}
274 1 14 if $$self{'paused'}
276 7 7 unless $job
277 0 7 if ($$job{'reporterdir'})
289 0 7 unless ($$self{'wheel'})
294 3 4 if (defined $$job{'debug'})
303 6 1 unless $$job{'cmd'} eq 'indices'
323 0 0 if $$self{'debug'}
330 0 0 if ($^O eq 'MSWin32' and not $$self{'_current_job'}{'GRP_PID'} and my($pid) = $input =~ /(\d+)/)
332 0 0 if $$self{'debug'}
335 7 0 unless $$self{'_current_job'}{'cmd'} eq 'recent'
336 3 4 if $$self{'debug'}
343 0 0 if ($now - $$self{'_wheel_time'} >= $$self{'idle'})
348 0 0 if ($now - $$self{'_current_job'}{'start_time'} >= $$self{'timeout'})
360 0 0 if $$self{'debug'}
361 0 0 if ($^O eq 'MSWin32' and $$self{'wheel'}) { }
363 0 0 unless $grp_pid
364 0 0 unless Win32::Process::KillProcess($grp_pid, 0)
368 0 0 if (not $$self{'no_grp_kill'}) { }
0 0 elsif ($GOT_KILLFAM) { }
369 0 0 if $$self{'wheel'}
372 0 0 if $$self{'wheel'}
375 0 0 if $$self{'wheel'}
384 0 0 unless my $job = 'Win32::Job'->new
386 0 0 unless my $pid = $job->spawn($perl, $cmdline)
398 0 0 unless my $job = 'Win32::Job'->new
400 0 0 unless my $pid = $job->spawn($perl, $cmdline)
411 0 0 unless my $job = 'Win32::Job'->new
413 0 0 unless my $pid = $job->spawn($perl, $cmdline)
435 0 0 if ($proc->ppid == $kid)