Branch Coverage

blib/lib/App/VTide/Command/Run.pm
Criterion Covered Total %
branch 0 124 0.0


line true false branch
50 0 0 unless ($self->first and $params->{'watch'} || $params->{'cron'} and $params->{'wait'})
59 0 0 if ($params->{'clear'})
62 0 0 if ($self->first)
66 0 0 if ($params->{'heading'})
72 0 0 if (not $self->defaults->{'test'} and $params->{'wait'})
76 0 0 unless ($ans and ord $ans)
85 0 0 if ($params->{'dir'} and -d $params->{'dir'})
89 0 0 if ($self->defaults->{'verbose'} or $self->defaults->{'test'})
90 0 0 if $params->{'wait'}
91 0 0 if $params->{'restart'}
101 0 0 unless (eval {
109 0 0 if (not $self->defaults->{'test'} and $self->restart($cmd))
121 0 0 if not $no_watch and $params->{'watch'}
122 0 0 if not $no_watch and $params->{'cron'}
124 0 0 unless $params->{'restart'}
153 0 0 if ($params->{'restart'} ne 1)
171 0 0 unless $answer
173 0 0 if $answer
181 0 0 if $answer
201 0 0 unless $file and -f $file
208 0 0 $self->restart($cmd, 1) ? :
215 0 0 if $done
218 0 0 unless defined $done
220 0 0 unless $file and -f $file
222 0 0 if $stats{$file}->mtime ne $stat->mtime
241 0 0 $self->restart($cmd, 1) ? :
249 0 0 if $done
252 0 0 unless defined $done
254 0 0 if ($params->{'cron_verbose'})
257 0 0 if ($next_time <= time)
258 0 0 if ($params->{'cron_verbose'})
283 0 0 unless ($cmd)
290 0 0 if (ref $params eq "ARRAY")
291 0 0 @{$params;} ? :
294 0 0 unless ($params->{'command'} or $params->{'edit'})
307 0 0 unless $user_param
318 0 0 unless ($params->{'edit'})
322 0 0 ref $params->{'command'} ? :
328 0 0 ref $params->{'editor'}{'command'} ? :
331 0 0 ref $params->{'edit'} ? :
335 0 0 if (length $title > $max)
339 0 0 if eval {
346 0 0 if ($helper_text) { }
0 0 elsif ($self->defaults->{'verbose'}) { }
348 0 0 unless $helper
354 0 0 unless (eval {
372 0 0 if $count++ > 30
375 0 0 if ($not_glob) { }
0 0 elsif ($groups->{$glob}) { }
0 0 elsif ($helper) { }
390 0 0 unless (eval {
392 0 0 if (@g)
398 0 0 if ($recurse and -d $glob)
400 0 0 -d $_ ? :
421 0 0 if ($env_extra and ref $env_extra eq "HASH")
436 0 0 if $self->defaults->{'test'} or $self->defaults->{'verbose'}
438 0 0 if $self->defaults->{'test'}
440 0 0 if (@cmd > 1)
443 0 0 if (-d $dir and -x path($dir, $cmd[0]))
449 0 0 unless ($found)
456 0 0 if ($err)
474 0 0 $env ne 'run' ? :