Branch Coverage

blib/lib/App/Padadoy.pm
Criterion Covered Total %
branch 13 82 15.8


line true false branch
40 13 0 (caller 2)[3] =~ /^App::Padadoy::(.+)/ ? :
1 13 ref $_[0] ? :
43 14 0 $caller ? :
0 14 @_ ? :
54 14 0 unless $$self{'quiet'}
64 0 1 if ($config) { }
77 1 6 if defined $values{$_}
91 0 1 if $$self{'remote'} and not $$self{'remote'} =~ qr"^[^\@]+\@[^:]+:[~/].*$"
103 0 1 if $module and not $module =~ /^([a-z][a-z0-9]*(::[a-z][a-z0-9]*)*)$/i
118 1 0 if ($module) { }
185 0 0 if $@
200 0 0 unless cwd() eq $$self{'base'}
202 0 0 if $_ ne $0
203 0 0 if grep {$_ ne 'padadoy.yml' if $_ ne $0;} <*>
249 0 0 if ($pid) { }
262 0 0 unless $$self{'config'}
279 0 0 unless -d $logs
306 0 0 if ($pid) { }
316 0 0 unless $$self{'pidfile'} and -f $$self{'pidfile'}
318 0 0 $pid =~ s/^(\d+).*$/$1/ms ? :
325 0 0 unless $$self{'config'}
330 0 0 if ($pid) { }
340 0 0 $sock ? :
345 0 0 if (@lsof) { }
348 0 0 if not $pid2 or $f[1] < $pid2
354 0 0 if ($sock or $pid2)
355 0 0 if ($pid and $pid2 and $pid eq $pid2) { }
0 0 elsif (not $pid and $user and $user eq $$self{'user'}) { }
368 0 1 if $$self{'config'}
383 0 0 unless -d $git_dir
386 0 0 if -e $directory
389 0 0 if ($current) { }
390 0 0 unless -d $current
397 0 0 if (-d $local)
451 0 0 unless -d $$self{'base'}
457 0 0 unless -d $new
480 0 0 unless $$self{'remote'}
481 0 0 unless $command
484 0 0 unless grep {$_ eq $command;} @remote_commands
486 0 0 unless $$self{'remote'} =~ /^(.+):(.+)$/
488 0 0 if $dir =~ /\s/