Condition Coverage

blib/lib/MarpaX/G4/Parser.pm
Criterion Covered Total %
condition 28 75 37.3


and 3 conditions

line !l l&&!r l&&r condition
273 12 1 217 ref $value eq "ARRAY" and scalar @$value == 0
274 13 0 0 ref $value eq "HASH" and scalar keys %$value == 0
419 1 0 0 $MarpaX::G4::Actions::ignoreredirect and not $items[0] =~ /skip|hidden/i
438 0 0 6 ref $tokenlist eq "HASH" and exists $tokenlist->{'rightsides'}
493 0 7 1 ref $rightsides eq "HASH" and exists $rightsides->{'redirect'}
496 0 0 8 ref $rightsides eq "HASH" and exists $rightsides->{'rightsides'}
502 0 0 0 ref $comment eq "HASH" and exists $comment->{'comment'}
511 0 0 0 ref $cl eq "HASH" and exists $cl->{'comment'}
545 9 0 13 ref $rhs eq "ARRAY" and scalar @$rhs > 0
571 0 21 1 ref $endrhs eq "HASH" and exists $endrhs->{'redirect'}
573 22 0 0 ref $endrhs eq "ARRAY" and isNotNull($endrhs)
581 0 14 8 ref $endrhs eq "HASH" and exists $endrhs->{'rightsides'}
616 8 0 0 ref $rhs eq "ARRAY" and scalar @$rhs == 0
624 8 0 0 exists $rhs->{'redirect'} and not exists $rhs->{'rightsides'}
659 31 0 0 ref $rulecomponent eq "ARRAY" and scalar @$rulecomponent == 1
713 0 0 0 ref $rhs eq "ARRAY" and scalar @$rhs == 1
740 0 0 0 ref $element eq "HASH" and scalar keys %$element == 1
752 0 0 0 ref $element eq "HASH" and scalar keys %$element == 1
781 0 1 21 ref $token eq "HASH" and scalar keys %$token == 1
1 0 21 ref $token eq "HASH" and scalar keys %$token == 1 and exists $token->{'token'}
791 0 0 3 ref $token eq "HASH" and scalar keys %$token == 1
0 0 3 ref $token eq "HASH" and scalar keys %$token == 1 and exists $token->{'token'}

or 3 conditions

line l !l&&r !l&&!r condition
464 0 0 6 isNotNull($comment1) or isNotNull($comment2)
556 0 0 22 isNotNull($comment1) or isNotNull($comment2)
586 0 0 8 ref $rhs ne "HASH" or not exists $rhs->{'rightsides'}