Branch Coverage

blib/lib/MarpaX/xPathLike.pm
Criterion Covered Total %
branch 0 122 0.0


line true false branch
226 0 0 unless defined $operData and ref $operData eq 'HASH'
232 0 0 unless defined $oper and exists $$operatorBy{$oper}
243 0 0 if wantarray
248 0 0 if ref $x
249 0 0 if ref $y
252 0 0 if ref $e
263 0 0 if ref $x and ref $x ne 'Regexp'
264 0 0 if ref $y and ref $y ne 'Regexp'
269 0 0 if &$oper($x, $y)
279 0 0 unless ref $x eq 'HASH' and exists $$x{'oper'}
284 0 0 unless defined $subpath
297 0 0 if $index < 0
331 0 0 unless defined $filter and ref $filter eq 'HASH'
396 0 0 if defined $type and $type ne 'HASH'
398 0 0 if defined $name
402 0 0 if defined $type and $type ne 'ARRAY'
404 0 0 if defined $name
420 0 0 if (ref $data eq 'HASH')
428 0 0 if (ref $data eq 'ARRAY')
441 0 0 if (defined $$descendants[$_])
447 0 0 defined $subpath ? :
461 0 0 if (ref $data eq 'HASH')
467 0 0 if (ref $data eq 'ARRAY')
485 0 0 if (defined $$descendants[$k])
490 0 0 unless _filter($context[$#context], $filter)
503 0 0 unless $self
504 0 0 if defined $name
505 0 0 if defined $type
516 0 0 if (defined $$ancestors[$_])
518 0 0 defined $subpath ? :
538 0 0 if $context[$#context - $_]{'name'} ne $name
539 0 0 if defined $name
543 0 0 if $context[$#context - $_]{'type'} ne $type
544 0 0 if defined $type
548 0 0 if defined $_
555 0 0 if (defined $$ancestorsIndex[$k])
558 0 0 unless _filter($context[$#context], $filter)
580 0 0 if ($direction eq 'preceding') { }
0 0 elsif ($direction eq 'following') { }
587 0 0 if defined $name
588 0 0 if defined $type
595 0 0 if ($direction eq 'preceding') { }
0 0 elsif ($direction eq 'following') { }
601 0 0 if defined $name
602 0 0 if defined $type
901 0 0 if defined $_ and defined $$_{'data'} and defined $$_{'order'}
915 0 0 if defined $paths and ref $paths eq 'ARRAY' and scalar @$paths > 0
922 0 0 defined $$entry{'absolute'} ? :
931 0 0 unless ref $data eq 'HASH' or ref $data eq 'ARRAY'
932 0 0 unless defined $query and defined $$query{'oper'} || defined $$query{'paths'}
936 0 0 defined $$query{'oper'} ? :
946 0 0 unless $q
948 0 0 unless my $reader = 'Marpa::R2::Scanless::R'->new({'grammar', $grammar, 'trace_terminals', 0})
957 0 0 if $@
964 0 0 unless $nt
965 0 0 if ($nt > 1)
968 0 0 unless ($ok)
993 0 0 unless defined $data and ref $data eq 'HASH' || ref $data eq 'ARRAY'
999 0 0 unless my $c = 'MarpaX::xPathLike'->compile($xPathLikeString)
1011 0 0 unless defined $xPathLike and defined $$xPathLike{'oper'} || defined $$xPathLike{'paths'}
1045 0 0 unless ref $$self{'results'}[0]