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
275 12 1 217 ref $value eq "ARRAY" and scalar @$value == 0
276 13 0 0 ref $value eq "HASH" and scalar keys %$value == 0
421 1 0 0 $MarpaX::G4::Actions::ignoreredirect and not $items[0] =~ /skip|hidden/i
440 0 0 6 ref $tokenlist eq "HASH" and exists $tokenlist->{'rightsides'}
495 0 7 1 ref $rightsides eq "HASH" and exists $rightsides->{'redirect'}
498 0 0 8 ref $rightsides eq "HASH" and exists $rightsides->{'rightsides'}
504 0 0 0 ref $comment eq "HASH" and exists $comment->{'comment'}
513 0 0 0 ref $cl eq "HASH" and exists $cl->{'comment'}
547 9 0 13 ref $rhs eq "ARRAY" and scalar @$rhs > 0
573 0 21 1 ref $endrhs eq "HASH" and exists $endrhs->{'redirect'}
575 22 0 0 ref $endrhs eq "ARRAY" and isNotNull($endrhs)
583 0 14 8 ref $endrhs eq "HASH" and exists $endrhs->{'rightsides'}
618 8 0 0 ref $rhs eq "ARRAY" and scalar @$rhs == 0
626 8 0 0 exists $rhs->{'redirect'} and not exists $rhs->{'rightsides'}
661 31 0 0 ref $rulecomponent eq "ARRAY" and scalar @$rulecomponent == 1
715 0 0 0 ref $rhs eq "ARRAY" and scalar @$rhs == 1
742 0 0 0 ref $element eq "HASH" and scalar keys %$element == 1
754 0 0 0 ref $element eq "HASH" and scalar keys %$element == 1
783 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'}
793 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
466 0 0 6 isNotNull($comment1) or isNotNull($comment2)
558 0 0 22 isNotNull($comment1) or isNotNull($comment2)
588 0 0 8 ref $rhs ne "HASH" or not exists $rhs->{'rightsides'}