blib/lib/HTML/Selector/Element.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 44 | 105 | 41.9 |
line | l | !l | condition |
---|---|---|---|
402 | 0 | 0 | look_self($this, @$_) and return 1 |
467 | 0 | 0 | $result = $_->look_down(@via_right) and return $result |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
94 | 11 | 0 | 0 | $n <= 0 and $cycle > 0 |
101 | 66 | 0 | 0 | $n > @sibling && $cycle < 0 |
2 | 19 | 142 | $n > 0 and $n <= @sibling | |
139 | 0 | 0 | 57 | not $set->{'tag'} and $name ne '*' |
316 | 6 | 0 | 24 | $banroot and not $set->{'is_root'} |
326 | 5 | 0 | 107 | $this = $this->{'_parent'} and $this != $rootparent |
343 | 0 | 0 | 3 | $this = $this->{'_parent'} and $this != $rootparent |
362 | 0 | 0 | 7 | ref $this and $this->{'_tag'} |
0 | 0 | 7 | ref $this and $this->{'_tag'} and not $this->{'_tag'} =~ /^~/ | |
375 | 0 | 0 | 0 | ref $this and not $this->{'_tag'} =~ /^~/ |
497 | 0 | 0 | 462 | ref $_ and $_->{'_tag'} |
506 | 0 | 0 | 0 | ref $matcher eq ref $value && $matcher eq $value |
0 | 37 | 30 | ref $matcher eq 'Regexp' && $value =~ /$matcher/ |
line | l | !l | condition |
---|---|---|---|
87 | 66 | 0 | $this->{'_parent'} || (return $this) |
93 | 7 | 4 | $cycle ||= 0 |
101 | 97 | 20 | $cycle || (last) |
256 | 16 | 16 | $1 || ' ' |
274 | 0 | 3 | $chained->{'sibling_root'} || '' |
296 | 0 | 33 | $strategy ||= {'banroot', 1} |
325 | 32 | 30 | $$refroot->{'_parent'} || 0 |
342 | 1 | 2 | $$refroot->{'_parent'} || 0 |
401 | 0 | 0 | $_->{'tag'} or '*' |
506 | 125 | 0 | defined($matcher = shift()) + defined($value = $this->{$attr}) || (next) |
541 | 0 | 1 | $selector->{'is'} ||= [$selector->criteria] |
548 | 0 | 0 | $selector->{'is'} ||= [$selector->criteria] |
557 | 0 | 2 | $selector->{'is'} ||= [$selector->criteria] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
96 | 0 | 0 | 0 | $cycle ||= $cycle |
199 | 2 | 2 | 0 | $offset || $cycle |
248 | 0 | 0 | 0 | $set->{'tag'} ||= do { push @$static, '_tag', qr/^(?!~)/; '*' } |
249 | 0 | 0 | 0 | $set->{'sibling_root'} ||= $sibling_root |
272 | 4 | 0 | 28 | $chained->{'is_root'} or $chained->{'sibling_root'} |
286 | 32 | 3 | 0 | $set->{'tag'} ||= do { push @$static, '_tag', qr/^(?!~)/; '*' } |
287 | 3 | 0 | 0 | $set->{'sibling_root'} ||= $sibling_root |
481 | 1 | 26 | 0 | $self->{'find'} ||= find_closure($self->{'parsed'}) |
533 | 0 | 23 | 0 | $store{join ', ', @_} ||= 'HTML::Selector::Element'->new(@_) |
540 | 0 | 1 | 0 | $store{join ', ', @_} ||= 'HTML::Selector::Element'->new(@_) |
547 | 0 | 0 | 0 | $store{join ', ', @_} ||= 'HTML::Selector::Element'->new(@_) |
556 | 0 | 2 | 0 | $store{join ', ', @_} ||= 'HTML::Selector::Element'->new(@_) |