Branch Coverage

blib/lib/CSS/Squish.pm
Criterion Covered Total %
branch 36 48 75.0


line true false branch
118 0 7 unless open my $fh, '>', \$string
136 0 7 if $seen{$file}{'all'}++
139 0 7 unless (defined $fh)
156 18 28 if ($line =~ /$AT_IMPORT/o) { }
165 1 17 unless (defined $path)
171 1 16 if ($$seen{$path}{'all'})
177 8 8 if ($media)
179 0 8 if (grep(($_ eq 'all'), @list))
184 0 16 if ($$seen{$path}{$media or 'all'}++)
193 2 14 unless (defined $new_fh)
203 6 8 if (defined $media) { }
216 21 7 unless $line =~ /^\s*$/
280 24 0 if (not blessed $self) { }
281 1 23 if @_
284 0 0 if @_
324 2 21 unless (defined $path)
330 0 21 unless (open $fh, '<', $path)
351 19 4 unless (@roots)
352 2 17 unless -e $file
361 4 5 if -e $path
396 1 17 if (defined $uri->scheme or defined $uri->authority)
402 17 0 unless ($base_file =~ m[^/])
409 17 0 if $strip_leading_slash
415 0 123 if $CSS::Squish::DEBUG