blib/lib/Marpa/R2/SLR.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 50 | 96 | 52.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
127 | 0 | 0 | 1498 | defined $start_earley_set and defined $length_in_parse_locations |
227 | 0 | 0 | 957 | &blessed($slg) and $slg->isa($slg_class) |
1024 | 4130 | 2 | 8 | $problem_code eq "R1 exhausted before end" and $slr->[4] eq "event" |
1033 | 4103 | 7 | 22 | $problem_code eq "no lexeme" and $slr->[5] eq "event" |
1487 | 2 | 0 | 0 | ref $arg1 and ref $input_ref ne "HASH" |
1783 | 9 | 185 | 0 | defined $start and not &Scalar::Util::looks_like_number($start) |
1787 | 0 | 194 | 0 | defined $length and not &Scalar::Util::looks_like_number($length) |
line | l | !l | condition |
---|---|---|---|
298 | 308 | 649 | $flat_args->{'event_is_active'} // {} |
326 | 54 | 416 | $symbol_ids_by_event_name_and_type->{$event_name}{'completion'} // [] |
330 | 42 | 428 | $symbol_ids_by_event_name_and_type->{$event_name}{'nulled'} // [] |
334 | 54 | 416 | $symbol_ids_by_event_name_and_type->{$event_name}{'prediction'} // [] |
445 | 26 | 0 | $flat_args{'exhaustion'} // "undefined" |
461 | 20 | 0 | $flat_args{'rejection'} // "undefined" |
538 | 0 | 0 | $level //= 1 |
550 | 55 | 902 | $start_pos //= 0 |
551 | 41 | 916 | $length //= -1 |
985 | 1079 | 814 | $length // -1 |
1533 | 0 | 1 | $recce->[16] // 0 |
1855 | 516 | 20 | $activate //= 1 |
1940 | 0 | 0 | $verbose //= 0 |
1948 | 0 | 0 | $verbose //= 0 |
1956 | 0 | 0 | $verbose //= 0 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
239 | 1 | 956 | 0 | $trace_file_handle //= $thick_g1_grammar->[8] |
260 | 1 | 0 | 956 | defined $thick_g1_grammar->[15] or defined $thick_g1_grammar->[5] |
1 | 0 | 956 | defined $thick_g1_grammar->[15] or defined $thick_g1_grammar->[5] or not defined $thick_g1_grammar->[11] | |
985 | 1547 | 342 | 4 | $start_pos // $thin_slr->pos |
1181 | 0 | 0 | 2 | $event_type ne "'trace" or $trace_event_type ne "rejected lexeme" |
1249 | 0 | 0 | 9 | $stream_status == -3 or $stream_status == -5 |
1382 | 0 | 0 | 0 | $escape_by_ord[$ord] // sprintf("\\x{%04x}", $ord) |
1406 | 121 | 0 | 0 | $escape_by_ord[$ord] // sprintf("\\x{%04x}", $ord) |
1465 | 0 | 0 | 2 | not defined $input_ref or ref $input_ref ne "SCALAR" |
1630 | 0 | 0 | 13 | $start_ordinal < 0 or $start_ordinal > $last_ordinal |
1772 | 0 | 0 | 0 | $result == $Marpa::R2::Error::UNEXPECTED_TOKEN_ID or $result == $Marpa::R2::Error::NO_TOKEN_EXPECTED_HERE |
0 | 0 | 0 | $result == $Marpa::R2::Error::UNEXPECTED_TOKEN_ID or $result == $Marpa::R2::Error::NO_TOKEN_EXPECTED_HERE or $result == $Marpa::R2::Error::INACCESSIBLE_TOKEN | |
1794 | 185 | 6 | 3 | $start //= $thin_pos |
1834 | 429 | 0 | 0 | $pos //= $thin_slr->pos |
1971 | 0 | 0 | 10 | $ordinal < 0 or $ordinal > $last_ordinal |