Branch Coverage

lib/Mojolicious/Plugin/CSSLoader.pm
Criterion Covered Total %
branch 32 36 88.8


line true false branch
18 3 8 if ($base and substr($base, -1) ne '/')
25 7 32 if ($_[1]{'check'})
26 0 7 $_[1]{'no_base'} ? :
30 3 4 unless $asset
39 0 26 if $format ne 'html'
40 1 25 unless $c->stash->{'__CSSLOADERFILES__'}
45 0 25 unless $c->stash->{'__CSSLOADERFILES__'}
46 1 35 $$config{'no_base'} ? :
48 8 28 if $local_base
52 6 30 if $media
53 3 33 if $$config{'media'}
58 7 29 if (exists $$config{'ie'})
64 1 6 if (not ref $$config{'ie'} || $$config{'ie'}) { }
5 1 elsif (ref $$config{'ie'}) { }
73 4 1 if $cmp
84 3 33 $$config{'no_file'} ? :
90 0 25 unless $load_css
92 24 1 unless ${$content;} =~ s[()][$load_css$1]