Branch Coverage

lib/Mojolicious/Plugin/CSSLoader.pm
Criterion Covered Total %
branch 30 34 88.2


line true false branch
18 2 8 if ($base and substr($base, -1) ne '/')
25 7 29 if ($_[1]{'check'})
26 0 7 $_[1]{'no_base'} ? :
30 3 4 unless $asset
39 0 24 if $format ne 'html'
40 1 23 unless $c->stash->{'__CSSLOADERFILES__'}
45 0 23 unless $c->stash->{'__CSSLOADERFILES__'}
46 1 32 $$config{'no_base'} ? :
49 6 27 if $media
50 3 30 if $$config{'media'}
55 7 26 if (exists $$config{'ie'})
61 1 6 if (not ref $$config{'ie'} || $$config{'ie'}) { }
5 1 elsif (ref $$config{'ie'}) { }
70 4 1 if $cmp
81 3 30 $$config{'no_file'} ? :
87 0 23 unless $load_css
89 22 1 unless ${$content;} =~ s[()][$load_css$1]