Branch Coverage

blib/lib/Test/Script/Async.pm
Criterion Covered Total %
branch 56 68 82.3


line true false branch
22 0 53 unless $path
23 0 53 if 'File::Spec::Unix'->file_name_is_absolute($path)
39 0 90 if (grep m[^(Mojo|Mojolicious)(/.*)?\.pm?$], keys %INC) { }
48 0 40 if defined $detect
62 5 0 unless (_detect())
82 2 3 unless $ok
83 2 3 if $exit
84 0 5 if $sig
113 12 12 unless ref $script
118 12 11 @args ? :
122 24 0 unless (_detect())
136 4 20 unless (-f $script)
161 0 20 _is_mojo() ? :
171 0 0 _is_mojo() ? :
176 0 20 if (_is_mojo()) { }
204 4 6 $reverse ? :
208 2 10 if (not defined $self->exit) { }
2 8 elsif ($self->signal) { }
3 5 elsif (not $ok) { }
221 7 5 unless $ok
241 4 4 $reverse ? :
245 2 8 if (not defined $self->signal) { }
2 6 elsif (not $self->signal) { }
2 4 elsif (not $ok) { }
258 6 4 unless $ok
281 4 5 $reverse ? :
286 4 5 if ($reverse) { }
292 2 14 if ($line =~ /$regex/)
305 3 12 if ($line =~ /$regex/)
317 4 5 unless $ok
359 3 1 if @{$self->{'args'};}
360 0 4 if (defined $self->{'fail'}) { }
1 3 elsif ($self->signal) { }
392 3 1 if $self->{'ok'}