line |
true |
false |
branch |
36
|
0 |
0 |
if $$my{$this}{'url'} |
39
|
0 |
0 |
if $$my{$this}{'url'} |
58
|
5 |
261 |
unless $selector ||= $document |
60
|
141 |
120 |
if (ref $selector eq $dom_element_class) { } |
|
62 |
58 |
elsif (CORE::not ref $selector) { } |
67
|
16 |
46 |
if ($match and $1 || !$context) { } |
68
|
15 |
1 |
if ($1) { } |
75
|
1 |
0 |
if ($elem) { } |
85
|
0 |
46 |
if ($selector =~ /^\s*(https?|file):/) { } |
|
10 |
36 |
elsif ($selector =~ /^\S+\.html?$/) { } |
91
|
0 |
10 |
unless open FILE, $selector |
104
|
83 |
0 |
ref $selector eq 'ARRAY' || ref $selector eq 'pQuery' ? : |
125
|
0 |
5 |
if @_ and CORE::not $_[0] =~ /^\d+$/ |
129
|
1 |
0 |
wantarray ? : |
|
4 |
1 |
@_ ? : |
143
|
55 |
2 |
@_ ? : |
164
|
0 |
1 |
if CORE::not $node or $node->nodeType eq 3 or $node->nodeType eq 8 |
166
|
0 |
1 |
if (defined $value) |
193
|
0 |
76 |
wantarray ? : |
237
|
9 |
46 |
$selector =~ /[^+>] [^+>]/ ? : |
272
|
1 |
7 |
unless @$this |
273
|
0 |
7 |
if (@_) |
275
|
0 |
0 |
unless ref $_ |
286
|
1 |
3 |
unless @$this |
332
|
0 |
0 |
unless (defined $elems) |
334
|
0 |
0 |
if $reverse |
393
|
108 |
589 |
if CORE::not $inv and &$callback($$elems[$i], $i) or $inv and CORE::not &$callback($$elems[$i], $i) |
509
|
0 |
57 |
if ref $t |
512
|
0 |
55 |
unless ref $context and $context->can('nodeType') and $context->nodeType == 1 |
517
|
0 |
55 |
unless $context ||= $document |
529
|
5 |
65 |
if ($t =~ s/$quickChild//o) { } |
533
|
67 |
10 |
if ($c->nodeType == 1 and $nodeName eq '*' || uc $c->nodeName eq $nodeName) |
546
|
3 |
62 |
if ($t =~ s/^([>+~])\s*(\w*)//) |
554
|
11 |
0 |
$m eq '~' || $m eq '+' ? : |
558
|
17 |
0 |
if ($n->nodeType == 1) |
560
|
0 |
17 |
if $m eq '~' and $$merge{$id} |
561
|
11 |
6 |
if (CORE::not $nodeName or uc $n->nodeName eq $nodeName) |
564
|
2 |
9 |
if $m eq '~' |
567
|
9 |
8 |
if $m eq '+' |
579
|
62 |
8 |
if ($t and CORE::not $foundToken) |
580
|
0 |
62 |
if ($t =~ s/^,//) { } |
581
|
0 |
0 |
if $context == $$ret[0] |
590
|
3 |
59 |
if ($t =~ s/$quickId//o) { } |
594
|
59 |
0 |
if ($t =~ s/$quickClass//o) |
603
|
4 |
58 |
if ($$m[1] eq '#' and $elem and $elem->can('getElementById')) { } |
608
|
4 |
0 |
$oid && (!$$m[3] || $this->_nodeName($oid, $$m[3])) ? : |
615
|
14 |
44 |
$$m[1] ne '' || $$m[0] eq '' ? : |
|
0 |
58 |
$$m[1] eq '#' && $$m[3] ? : |
626
|
2 |
56 |
if $$m[1] eq '.' |
629
|
0 |
58 |
if ($$m[1] eq '#') |
633
|
0 |
0 |
if ($$r[$i]->getAttribute('id') eq $$m[2]) |
646
|
46 |
24 |
if ($t) |
653
|
0 |
55 |
if $t |
655
|
0 |
55 |
if $ret and @$ret and $context == $$ret[0] |
668
|
2 |
87 |
if CORE::not $not and $pass or $not and CORE::not $pass |
686
|
42 |
87 |
if ($t =~ s/$re//) |
694
|
15 |
42 |
unless $m |
696
|
0 |
42 |
if ($$m[1] eq ':' and $$m[2] eq 'not') { } |
|
0 |
42 |
elsif ($$m[1] eq '.') { } |
|
14 |
28 |
elsif ($$m[1] eq '[') { } |
|
0 |
28 |
elsif ($$m[1] eq ':' and $$m[2] eq 'nth-child') { } |
697
|
0 |
0 |
$$m[3] =~ /$isSimple/o ? : |
711
|
839 |
5 |
if (CORE::not defined $z or $$m[2] =~ /href|src|selected/) |
715
|
36 |
808 |
$type eq '' && defined $z || $type eq '=' && defined $z && $z eq $$m[5] || $type eq '!=' && (!defined($z) || $z ne $$m[5]) || $type eq '^=' && defined $z && $z =~ /\A\Q$$m[5]\E/ || $type eq '$=' && defined $z && $z =~ /\Q$$m[5]\E\z/ || $type eq '*=' && defined $z && $z =~ /\Q$$m[5]\E/ || $type eq '~=' && defined $z && $z =~ /(?:\W|\A)\Q$$m[5]\E(?:\W|\z)/ || $type eq '|=' && defined $z && $z =~ /\A\Q$$m[5]\E(?:-|\z)/ ? : |
|
0 |
844 |
$not ? : |
|
36 |
808 |
if (($type eq '' && defined $z || $type eq '=' && defined $z && $z eq $$m[5] || $type eq '!=' && (!defined($z) || $z ne $$m[5]) || $type eq '^=' && defined $z && $z =~ /\A\Q$$m[5]\E/ || $type eq '$=' && defined $z && $z =~ /\Q$$m[5]\E\z/ || $type eq '*=' && defined $z && $z =~ /\Q$$m[5]\E/ || $type eq '~=' && defined $z && $z =~ /(?:\W|\A)\Q$$m[5]\E(?:\W|\z)/ || $type eq '|=' && defined $z && $z =~ /\A\Q$$m[5]\E(?:-|\z)/ ? 1 : 0) ^ ($not ? 1 : 0)) |
752
|
28 |
0 |
if (ref $fn eq 'HASH') |
758
|
0 |
28 |
if ref $fn ne 'CODE' |
781
|
45 |
1 |
if ref $cur and $cur->nodeType == 1 and ++$num == $result |
822
|
1 |
8 |
ref $_ && ref $elem ? : |
|
2 |
7 |
if ref $_ && ref $elem ? $_ == $elem : $_ eq $elem |
840
|
0 |
0 |
unless $response->is_success |
860
|
112 |
118 |
if (ref $elem) { } |
872
|
0 |
0 |
unless ref $elem |
874
|
0 |
0 |
if ($selector =~ /^\w+$/) |
875
|
0 |
0 |
if ($$elem{'_tag'} eq $selector) |