Branch Coverage

blib/lib/Mojo/Alien/webpack.pm
Criterion Covered Total %
branch 1 58 1.7


line true false branch
58 0 1 ($2 // '') eq 'development' ? :
67 0 0 if $self->pid
71 0 0 if $!
72 0 0 if not $! and $?
82 0 0 unless chdir $home
99 0 0 unless grep {$_ eq "core";} @includes
102 0 0 unless $self->dependencies->{$include}
103 0 0 if $seen{$package}++
104 0 0 unless $dependencies->{$package}{'version'}
107 0 0 $self->_resources->{"include/$include.js"} ? :
110 0 0 if $exists eq "exists"
111 0 0 if -e $file
123 0 0 unless $self->{'pid'}
125 0 0 $r ? :
0 0 $r == -1 && delete $self->{'pid'} ? :
133 0 0 unless my $pid = $self->pid
146 0 0 if $self->pid
149 0 0 unless -d $home
152 0 0 unless defined(my $pid = fork)
153 0 0 if $self->{'pid'} = $pid
162 0 0 unless -x $cmd[0]
166 0 0 if $ENV{'MOJO_WEBPACK_VERBOSE'}
177 0 0 if (-e $file)
178 0 0 $file->slurp =~ m[// Autogenerated.*(\d+\.\d+)]u ? :
180 0 0 if $version == -1
181 0 0 if $version == $VERSION and not $content and not $ENV{'MOJO_WEBPACK_REGENERATE'}
185 0 0 unless -d $file->dirname
202 0 0 unless open my $WEBPACK, "-|", @cmd
203 0 0 if defined wantarray