Branch Coverage

blib/lib/Mojolicious/Plugin/Webpack.pm
Criterion Covered Total %
branch 11 30 36.6


line true false branch
20 1 1 if $self->{'cache_asset_map'}
27 0 0 $asset->{'ext'} eq 'css' ? :
1 0 $asset->{'ext'} eq 'js' ? :
36 0 0 $mode eq 'development' ? :
54 0 1 if (my $build_method = $ENV{'MOJO_WEBPACK_BUILD'}) { }
55 0 0 if $build_method =~ /exec|watch/u
56 0 0 if $build_method ne "exec"
63 1 0 if $self->{'cache_asset_map'}
69 1 0 if index($c->req->url->path, $asset_path) == 0
76 0 0 unless my $asset = $self->asset_map->{$name}
89 0 1 $engine->isa('Mojo::Alien::rollup') ? :
91 0 1 $app->mode eq 'development' ? :
100 0 1 if @_ == 2
101 0 1 if $name =~ /^\w+$/u
103 0 1 unless my $asset = $self->asset_map->{$name}