Condition Coverage

blib/lib/Marpa/R2/Grammar.pm
Criterion Covered Total %
condition 59 109 54.1


and 3 conditions

line !l l&&!r l&&r condition
227 1 614 24 ref $value eq "ARRAY" and scalar @{$value;} == 1
615 24 0 ref $value eq "ARRAY" and scalar @{$value;} == 1 and not ref $value->[0]
236 638 1 0 defined $deprecated_source and defined $stuifzand_source
301 0 9 0 $value and $grammar_c->is_precomputed
316 1 7 0 $value and $grammar_c->is_precomputed
325 0 0 0 $value and $grammar_c->is_precomputed
350 0 0 0 $value and $grammar_c->is_precomputed
541 85 2 6 $loop_rule_count and $infinite_action ne "quiet"
557 1 0 92 $grammar->[9] and ref(my $ok = $grammar->[19]) eq "HASH"
584 1 0 92 $grammar->[9] and ref(my $ok = $grammar->[20]) eq "HASH"
762 532 0 0 $loop_rule_count and $infinite_action ne "quiet"
806 0 0 530 $grammar->[9] and ref(my $ok = $grammar->[20]) eq "HASH"
1297 0 0 31661 defined $grammar and defined $options
1345 29926 1735 0 defined $min and not &Scalar::Util::looks_like_number($min)
1377 31597 64 0 defined $rank and !&Scalar::Util::looks_like_number($rank) || int $rank != $rank
1387 2 31659 0 $null_ranking ne "high" and $null_ranking ne "low"
1418 31333 328 0 defined $separator_name and $is_ordinary_rule
1486 10500 0 19420 defined $mask and $grammar_is_internal
1492 31327 6 322 $separator_id >= 0 && !$keep_separation
1542 3 629 0 defined $named_arg_start_name and defined $start_id

or 2 conditions

line l !l condition
249 0 638 $grammar->[10] //= "standard"
262 0 4 $grammar->[10] //= "stuifzand"
334 0 0 $value //= {}
358 0 0 $value //= {}
777 532 0 $grammar->[11]{'if_inaccessible'} // "warn"
1359 31646 15 $rhs_names //= []
1386 4 31657 $null_ranking //= "low"
1473 6 0 $error_code //= -1

or 3 conditions

line l !l&&r !l&&!r condition
793 0 7 0 $symbol->[7] // $default_if_inaccessible
889 0 3082 0 $symbol->[4] // $grammar->symbol_name($symbol_id)
1072 0 124857 0 $symbols->[$symbol_id][5] // $grammar->symbol_name($symbol_id)
1181 0 0 0 not &Scalar::Util::looks_like_number($value) or int $value != $value
1259 0 0 219 $arg_count > 4 or $arg_count < 1
1352 75 30004 1582 $stuifzand_interface || $grammar->[11]
1364 0 0 31661 not $rhs_ref_type or $rhs_ref_type ne "ARRAY"
1377 0 0 64 !&Scalar::Util::looks_like_number($rank) || int $rank != $rank
1384 64 0 31597 $rank //= $default_rank
1417 280 29646 1735 scalar @{$rhs_names;} == 0 || !defined($min)
1470 0 6 31655 not defined $base_rule_id or $base_rule_id < 0