Branch Coverage

blib/lib/CSS/Packer.pm
Criterion Covered Total %
branch 49 68 72.0


line true false branch
72 6 3 $value ? :
9 50 if defined $value
85 26 40 if (defined $value and not ref $value)
92 10 56 if ($$self{'_' . $field})
104 20 28 if (defined $value)
105 19 1 if (grep(($value eq $_), @COMPRESS)) { }
0 1 elsif (not $value) { }
186 0 5 $mediatype ? :
2 3 $compress eq 'pretty' ? :
204 10 67 if ($key eq 'content') { }
212 0 77 if not $key or $value eq ''
214 35 42 $compress eq 'pretty' ? :
237 18 23 $compress eq 'pretty' ? :
18 23 $compress eq 'pretty' ? :
240 0 41 unless $selector or $declaration
261 0 0 $compress eq 'pretty' ? :
281 0 3 $compress eq 'pretty' ? :
0 3 $compress eq 'pretty' ? :
303 22 0 if (ref $_[0] and ref $_[0] eq 'CSS::Packer') { }
309 0 0 unless ref $_[0]
317 0 22 if (ref $input ne 'SCALAR')
325 0 22 if (defined wantarray) { }
326 0 0 ref $input ? :
332 22 0 ref $input ? :
335 19 3 if (ref $opts eq 'HASH')
337 5 33 if defined $opts->{$field}
341 15 23 if defined $opts->{$field}
344 2 17 $opts->{'indent'} && (!$opts->{'compress'} || $opts->{'compress'} eq 'pretty') ? :
356 2 20 if (${$css;} =~ /$COPYRIGHT_COMMENT/ism)
362 2 20 if (not $self->no_compress_comment and ${$css;} =~ /$PACKER_COMMENT/)
364 2 0 if ($compress eq '_no_compress_')
365 0 2 $cont eq 'scalar' ? :
375 19 1 unless ($self->remove_copyright)
379 0 20 if $cont eq 'scalar'