Condition Coverage

blib/lib/CSS/SAC.pm
Criterion Covered Total %
condition 27 64 42.1


and 3 conditions

line !l l&&!r l&&r condition
577 0 0 1 not $$css =~ /^url\(/ and $$css =~ s/^($CSS::SAC::RE_IDENT)\s+//
666 284 0 0 defined $ws and defined $$css
747 0 25 9 ($attr, $$css, undef) = &Text::Balanced::extract_bracketed($$css, q[[]'"], qr/\s*/) and length $attr
0 15 10 ($args, $$css, $func) = &Text::Balanced::extract_bracketed($$css, q[()'"], qr/:$CSS::SAC::RE_IDENT/) and length $func
756 17 0 2 defined $2 and $2 eq '|'
805 8 0 1 defined $2 and $2 eq '|'
1218 0 0 0 $att and $$css =~ s/^\s*(?:\))//

or 2 conditions

line l !l condition
141 1 1 shift() || {}
604 1 0 $prefix ||= ''
770 0 17 $$sac[6]{'#default'} || undef
1186 0 0 $prio ||= 0
1206 0 0 shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
145 0 2 0 $$options{'ConditionFactory'} || 'CSS::SAC::ConditionFactory'->new
146 0 2 0 $$options{'SelectorFactory'} || 'CSS::SAC::SelectorFactory'->new
147 0 2 0 $$options{'ErrorHandler'} || 'CSS::SAC::DefaultErrorHandler'->new
747 44 2 59 $$css =~ /^\s*(?:,|{)/ or not length $$css
842 3 2 4 not $op or $op eq '='
916 0 0 2 lc $1 eq 'first-line' or lc $1 eq 'first-letter'
0 0 2 lc $1 eq 'first-line' or lc $1 eq 'first-letter' or lc $1 eq 'selection'
0 0 2 lc $1 eq 'first-line' or lc $1 eq 'first-letter' or lc $1 eq 'selection' or lc $1 eq 'before'
0 0 2 lc $1 eq 'first-line' or lc $1 eq 'first-letter' or lc $1 eq 'selection' or lc $1 eq 'before' or lc $1 eq 'after'
1218 0 0 0 not length $$css or $$css =~ /^\s*(?:;|!)/
0 0 0 not length $$css or $$css =~ /^\s*(?:;|!)/ or $att and $$css =~ s/^\s*(?:\))//