Condition Coverage

blib/lib/CSS/Compressor.pm
Criterion Covered Total %
condition 15 23 65.2


and 3 conditions

line !l l&&!r l&&r condition
126 28 0 10 0 == index($$_[1], '!') and $css =~ s/___${MARKER}_PRESERVE_CANDIDATE_COMMENT_$$_[0]___/'___' . $MARKER . '_PRESERVED_TOKEN_' . (-1 + push(@tokens, $$_[1])) . '___';/e
26 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
25 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)

or 2 conditions

line l !l condition
229 2 24 $1 || ''

or 3 conditions

line l !l&&r !l&&!r condition
126 10 0 28 0 == index($$_[1], '!') 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 27 0 0 == index($$_[1], '!') 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)