Condition Coverage

blib/lib/CSS/Compressor.pm
Criterion Covered Total %
condition 19 26 73.0


and 2 conditions

line l !l condition
132 27 2 0 '\\' eq substr($_->[1], -1) and ($css =~ s/___${MARKER}_PRESERVE_CANDIDATE_COMMENT_$_->[0]___/'___' . $MARKER . '_PRESERVED_TOKEN_' . (-1 + push(@tokens, '\\')) . '___';/e and ++$_->[0] and $css =~ s/___${MARKER}_PRESERVE_CANDIDATE_COMMENT_$_->[0]___/'___' . $MARKER . '_PRESERVED_TOKEN_' . (-1 + push(@tokens, '')) . '___';/e)

and 3 conditions

line !l l&&!r l&&r condition
132 29 1 10 0 == index($_->[1], '!') and -1 == index($_->[1], '! @noflip')
30 0 10 0 == index($_->[1], '!') and -1 == index($_->[1], '! @noflip') and $css =~ s/___${MARKER}_PRESERVE_CANDIDATE_COMMENT_$_->[0]___/'___' . $MARKER . '_PRESERVED_TOKEN_' . (-1 + push(@tokens, $_->[1])) . '___';/e
28 1 1 0 == length $_->[1] and $css =~ s[>/\*___${MARKER}_PRESERVE_CANDIDATE_COMMENT_$_->[0]___]['>/*___' . $MARKER . '_PRESERVED_TOKEN_' . (-1 + push(@tokens, '')) . '___';]e
0 0 2 $css =~ s/___${MARKER}_PRESERVE_CANDIDATE_COMMENT_$_->[0]___/'___' . $MARKER . '_PRESERVED_TOKEN_' . (-1 + push(@tokens, '\\')) . '___';/e and ++$_->[0]
0 2 0 $css =~ s/___${MARKER}_PRESERVE_CANDIDATE_COMMENT_$_->[0]___/'___' . $MARKER . '_PRESERVED_TOKEN_' . (-1 + push(@tokens, '\\')) . '___';/e and ++$_->[0] and $css =~ s/___${MARKER}_PRESERVE_CANDIDATE_COMMENT_$_->[0]___/'___' . $MARKER . '_PRESERVED_TOKEN_' . (-1 + push(@tokens, '')) . '___';/e

or 2 conditions

line l !l condition
250 3 29 $1 || ''

or 3 conditions

line l !l&&r !l&&!r condition
132 10 3 27 0 == index($_->[1], '!') and -1 == index($_->[1], '! @noflip') and $css =~ s/___${MARKER}_PRESERVE_CANDIDATE_COMMENT_$_->[0]___/'___' . $MARKER . '_PRESERVED_TOKEN_' . (-1 + push(@tokens, $_->[1])) . '___';/e or 0 == length $_->[1] and $css =~ s[>/\*___${MARKER}_PRESERVE_CANDIDATE_COMMENT_$_->[0]___]['>/*___' . $MARKER . '_PRESERVED_TOKEN_' . (-1 + push(@tokens, '')) . '___';]e
1 29 0 0 == index($_->[1], '!') and -1 == index($_->[1], '! @noflip') and $css =~ s/___${MARKER}_PRESERVE_CANDIDATE_COMMENT_$_->[0]___/'___' . $MARKER . '_PRESERVED_TOKEN_' . (-1 + push(@tokens, $_->[1])) . '___';/e or 0 == length $_->[1] and $css =~ s[>/\*___${MARKER}_PRESERVE_CANDIDATE_COMMENT_$_->[0]___]['>/*___' . $MARKER . '_PRESERVED_TOKEN_' . (-1 + push(@tokens, '')) . '___';]e or '\\' eq substr($_->[1], -1) and ($css =~ s/___${MARKER}_PRESERVE_CANDIDATE_COMMENT_$_->[0]___/'___' . $MARKER . '_PRESERVED_TOKEN_' . (-1 + push(@tokens, '\\')) . '___';/e and ++$_->[0] and $css =~ s/___${MARKER}_PRESERVE_CANDIDATE_COMMENT_$_->[0]___/'___' . $MARKER . '_PRESERVED_TOKEN_' . (-1 + push(@tokens, '')) . '___';/e)