Branch Coverage

blib/lib/CSS/DOM.pm
Criterion Covered Total %
branch 33 50 66.0


line true false branch
39 9 92 if (defined(my $arg = delete $args{'url_fetcher'}))
49 9 21 if @_
72 0 1 if $pseudo
106 0 1 if (defined $args{'ua_sheet'})
111 0 1 if (defined $args{'user_sheet'})
116 0 1 if (defined $args{'author_sheets'})
130 0 0 if ($type == 1)
132 0 0 unless my $specificity = $r->_selector_matches($elem, $pseudo)
138 0 0 $sty->getPropertyPriority($p) =~ /^important\z/i ? :
145 0 0 if $spec ge $specificity{$p}
158 0 1 $sty->getPropertyPriority($p) =~ /^important\z/i ? :
165 1 0 if $spec ge $specificity{$p}
183 2 2 if @_
186 2 3 defined $_[0][2] ? :
188 1 1 unless (shift())->[7]
197 0 1 unless $_[0][5]
1 2 wantarray ? :
208 1 2 unless (shift())->[1]
218 0 10 unless (shift())->[0]
10 395 wantarray ? :
238 6 130 if $at
245 128 1 $index <= $#$list ? :
1 129 $index < 0 ? :
253 1 1 if $index > $#$list
271 24 0 if exists $features{$feature}