Condition Coverage

blib/lib/pQuery.pm
Criterion Covered Total %
condition 77 131 58.7


and 3 conditions

line !l l&&!r l&&r condition
67 46 16 0 $match and $1 || !$context
125 1 4 0 @_ and CORE::not $_[0] =~ /^\d+$/
353 0 0 3 $elem->nodeName && uc $elem->nodeName eq uc $name
393 0 589 108 CORE::not $inv and &$callback($$elems[$i], $i)
589 0 0 $inv and CORE::not &$callback($$elems[$i], $i)
512 2 0 55 ref $context and $context->can('nodeType')
2 0 55 ref $context and $context->can('nodeType') and $context->nodeType == 1
521 55 0 70 $t and $last ne $t
533 0 77 0 $c->nodeType == 1 and $nodeName eq '*' || uc $c->nodeName eq $nodeName
560 9 8 0 $m eq '~' and $$merge{$id}
579 2 6 62 $t and CORE::not $foundToken
603 58 0 4 $$m[1] eq '#' and $elem
58 0 4 $$m[1] eq '#' and $elem and $elem->can('getElementById')
608 0 4 0 $oid && (!$$m[3] || $this->_nodeName($oid, $$m[3]))
615 58 0 0 $$m[1] eq '#' && $$m[3]
655 0 4 51 $ret and @$ret
4 51 0 $ret and @$ret and $context == $$ret[0]
668 0 87 2 CORE::not $not and $pass
87 0 0 $not and CORE::not $pass
679 31 0 57 $t and $t ne $last
696 14 28 0 $$m[1] eq ':' and $$m[2] eq 'not'
0 28 0 $$m[1] eq ':' and $$m[2] eq 'nth-child'
781 0 0 46 ref $cur and $cur->nodeType == 1
0 1 45 ref $cur and $cur->nodeType == 1 and ++$num == $result
822 6 2 1 ref $_ && ref $elem

or 2 conditions

line l !l condition
777 46 0 $result ||= 1

or 3 conditions

line l !l&&r !l&&!r condition
58 211 50 5 $selector ||= $document
67 15 1 0 $1 || !$context
99 0 36 0 $context ||= $document
104 83 0 0 ref $selector eq 'ARRAY' || ref $selector eq 'pQuery'
164 0 0 1 CORE::not $node or $node->nodeType eq 3
0 0 1 CORE::not $node or $node->nodeType eq 3 or $node->nodeType eq 8
226 1 1 0 $this->_prevObject || pQuery([])
393 108 0 589 CORE::not $inv and &$callback($$elems[$i], $i) or $inv and CORE::not &$callback($$elems[$i], $i)
517 55 0 0 $context ||= $document
533 0 67 10 $nodeName eq '*' || uc $c->nodeName eq $nodeName
554 2 9 0 $m eq '~' || $m eq '+'
561 0 11 6 CORE::not $nodeName or uc $n->nodeName eq $nodeName
615 2 12 44 $$m[1] ne '' || $$m[0] eq ''
668 2 0 87 CORE::not $not and $pass or $not and CORE::not $pass
709 380 464 0 $this->_props->{$$m[2]} or $$m[2]
711 812 27 5 CORE::not defined $z or $$m[2] =~ /href|src|selected/
715 12 0 809 $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)/
851 0 0 0 $lwp_user_agent ||= 'LWP::UserAgent'->new