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 600 24 ref $value eq "ARRAY" and scalar @{$value;} == 1
601 24 0 ref $value eq "ARRAY" and scalar @{$value;} == 1 and not ref $value->[0]
236 624 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 518 0 0 $loop_rule_count and $infinite_action ne "quiet"
806 0 0 516 $grammar->[9] and ref(my $ok = $grammar->[20]) eq "HASH"
1297 0 0 30524 defined $grammar and defined $options
1345 28849 1675 0 defined $min and not &Scalar::Util::looks_like_number($min)
1377 30472 52 0 defined $rank and !&Scalar::Util::looks_like_number($rank) || int $rank != $rank
1387 2 30522 0 $null_ranking ne "high" and $null_ranking ne "low"
1418 30208 316 0 defined $separator_name and $is_ordinary_rule
1486 10178 0 18665 defined $mask and $grammar_is_internal
1492 30202 6 310 $separator_id >= 0 && !$keep_separation
1542 3 615 0 defined $named_arg_start_name and defined $start_id

or 2 conditions

line l !l condition
249 0 624 $grammar->[10] //= "standard"
262 0 4 $grammar->[10] //= "stuifzand"
334 0 0 $value //= {}
358 0 0 $value //= {}
777 518 0 $grammar->[11]{'if_inaccessible'} // "warn"
1359 30509 15 $rhs_names //= []
1386 4 30520 $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 1081 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 28867 1582 $stuifzand_interface || $grammar->[11]
1364 0 0 30524 not $rhs_ref_type or $rhs_ref_type ne "ARRAY"
1377 0 0 52 !&Scalar::Util::looks_like_number($rank) || int $rank != $rank
1384 52 0 30472 $rank //= $default_rank
1417 277 28572 1675 scalar @{$rhs_names;} == 0 || !defined($min)
1470 0 6 30518 not defined $base_rule_id or $base_rule_id < 0