Branch Coverage

lib/Mojolicious/Plugin/CSSLoader.pm
Criterion Covered Total %
branch 38 38 100.0


line true false branch
18 4 10 if ($base and substr($base, -1) ne '/')
25 8 35 if ($_[1]{'check'})
27 1 7 $_[1]{'no_base'} ? :
30 3 5 unless $asset
39 1 31 if $format ne 'html'
40 1 30 unless $c->stash->{'__CSSLOADERFILES__'}
41 1 29 if 'ARRAY' ne ref $c->stash->{'__CSSLOADERFILES__'}
49 1 39 $config->{'no_base'} ? :
51 11 29 if $local_base
55 6 34 if $media
56 3 37 if $config->{'media'}
61 7 33 if (exists $config->{'ie'})
67 1 6 if (not ref $config->{'ie'} || $config->{'ie'}) { }
5 1 elsif (ref $config->{'ie'}) { }
76 4 1 if $cmp
88 3 37 $config->{'no_file'} ? :
91 39 1 $file ? :
95 2 27 unless $load_css
97 26 1 unless ${$content;} =~ s[()][$load_css$1]