Condition Coverage

blib/lib/CSS/DOM/Parser.pm
Criterion Covered Total %
condition 56 76 73.6


and 3 conditions

line !l l&&!r l&&r condition
121 57 12 6 $str_delim and not $copy =~ s/^['"]$_optspace//o
127 5 1986 0 pos $_ and pos $_ < length $_
255 0 1 397 (my $style = _parse_style_declaration(@tokens, undef, @_[1 .. $#_])) && !$tokens[0]
271 113 11 66 $unesc_at eq '@media' and s/^(s?is?(?:,s?is?)*\{)//
109 1 14 $unesc_at eq '@page' and s/^((?:s?:i)?)(s?{s?)//
102 0 8 $unesc_at eq '@font-face' and s/^()(s?{s?)//
58 1 43 $unesc_at eq '@import' and s/^s?([u'])s?(is?(?:,s?is?)*)?(?:;s?|\z)//
33 1 25 $at eq '@charset' and @$tokens >= 3
34 1 24 $at eq '@charset' and @$tokens >= 3 and $$tokens[0] eq ' '
2 1 23 $at eq '@charset' and @$tokens >= 3 and $$tokens[0] eq ' ' and $$tokens[1] =~ /^"/
2 1 22 $at eq '@charset' and @$tokens >= 3 and $$tokens[0] eq ' ' and $$tokens[1] =~ /^"/ and s/^s';s?//
310 0 27 0 $_[0] && $_->_set_parentStyleSheet($_[0])

or 2 conditions

line l !l condition
300 28 66 _parse_ruleset($_, $tokens) || (last)
694 2 2 $args{'encoding_hint'} || 'utf8'

or 3 conditions

line l !l&&r !l&&!r condition
107 5 0 9 $1 || $2
120 8 0 67 $1 || $2
271 14 0 110 $unesc_at eq '@page' and s/^((?:s?:i)?)(s?{s?)// or $unesc_at eq '@font-face' and s/^()(s?{s?)//
306 46 3 0 $_[0] || ()
327 17 0 0 $_[0] || ()
347 20 2 0 $_[0] || ()
373 0 0 0 $_[0] || ()
388 24 19 0 $_[0] || ()
405 20 2 0 $_[0] || ()
417 28 3 0 $_[0] || ()
435 65 40 0 $_[0] || ()
468 125 398 0 shift() || 'CSS::DOM::Style'->new(@_)