Branch Coverage

blib/lib/Mojolicious/Plugin/Webpack.pm
Criterion Covered Total %
branch 16 44 36.3


line true false branch
35 0 0 $ENV{'MOJO_WEBPACK_BUILD'} =~ /\b(watch)\b/iu ? :
3 0 !$ENV{'MOJO_WEBPACK_BUILD'} ? :
36 0 3 if ($build_method) { }
37 0 0 if $build_method eq 'watch'
41 0 0 if $self->_write_asset_map
46 0 3 if defined $ENV{'MOJO_WEBPACK_BUILD'}
51 0 3 defined $ENV{'MOJO_WEBPACK_BUILD'} ? :
55 1 0 if index($c->req->url->path, $asset_path) == 0
57 3 0 if $cache_control
62 0 0 unless my $asset = $self->_asset_map->{$name}
70 1 0 if not $self->{'mtime'} and $self->{'asset_map'}
73 0 0 if $self->_write_asset_map
86 0 3 $engine->isa('Mojo::Alien::rollup') ? :
88 1 2 $app->mode eq 'development' ? :
102 0 1 if @_ == 2
103 0 1 if $name =~ /^\w+$/u
105 0 1 unless my $asset = $self->_asset_map->{$name}
113 1 2 if (my $asset_map = eval { do { decode_json($self->_asset_map_file->slurp) } })
116 0 1 if $self->engine->mode eq 'development'
135 0 0 $asset->{'ext'} eq 'css' ? :
0 0 $asset->{'ext'} eq 'js' ? :
140 0 0 if $self->{'mtime'} and $self->{'mtime'} == $mtime