Branch Coverage

blib/lib/Marpa/R3/ASF2.pm
Criterion Covered Total %
branch 167 252 66.2


line true false branch
76 11776 1756 if defined $intset_id
87 11614 1028 if defined $nidset
128 0 890 if defined $powerset
150 0 0 if $ix > $#{$nidset_ids;}
157 0 1220 if $ix > $#{$nidset_ids;}
181 12697 13776 if $choice > $#{$and_nodes;}
182 11072 2704 if (nook_has_semantic_cause($asf, $nook))
197 11065 70 unless defined $and_node_id
206 7 63 if $current_predecessor != $next_predecessor
229 12697 1079 unless defined set_last_choice($asf, $nook)
295 0 58 if (my $value = $flat_args->{'trace_file_handle'})
312 0 58 unless $flat_args
317 0 58 unless defined $slr
324 0 58 unless (&blessed($slr) and $slr->isa($slr_class))
326 0 0 $ref_type ? :
343 25 38 if ($arg eq 'factoring_max')
384 0 58 if $regix < 0
413 58 1808 unless scalar @{$and_node_ids;}
442 0 58 unless $lua
458 0 0 unless $glade
464 0 0 defined $glade_id ? :
477 342 598 if ($nid >= 0)
520 598 311 if $nid < 0
565 253 463 if (defined $predecessor_id)
588 614 1200 if ($nid <= $NID_LEAF_BASE)
591 420 194 if $length == 0
594 1200 0 if ($nid >= 0)
603 102 168 if ($nid <= $NID_LEAF_BASE)
606 102 0 if $length == 0
609 168 0 if ($nid >= 0)
617 67 130 if $nid > $NID_LEAF_BASE
637 130 67 if defined $token_id
638 0 67 if $nid < 0
670 0 0 unless defined $token_id
694 0 342 if $nid_of_choicepoint < 0
701 0 342 unless (scalar @{$or_nodes->[$nid_of_choicepoint];})
715 0 0 unless factoring_iterate($choicepoint)
725 0 1421 unless $factoring_stack
730 1079 0 if factoring_finish($choicepoint, $nid_of_choicepoint)
743 342 13776 unless (scalar @{$factoring_stack;})
749 1079 12697 if (nook_increment($asf, $top_nook))
757 12355 342 if ($stack_ix_of_parent_nook >= 0)
759 2704 9651 if $top_nook->[4]
761 9651 2704 if $top_nook->[5]
797 13769 17576 unless ($work_nook->[6])
799 2704 11065 unless (nook_has_semantic_cause($asf, $work_nook))
810 18980 9661 unless ($work_nook->[7])
818 9651 9329 if (defined $child_or_node)
832 0 12355 if $choicepoint->[2]{$child_or_node}
835 0 12355 unless scalar @{$or_nodes->[$work_or_node];}
839 2704 9651 if ($child_is_cause)
843 9651 2704 if ($child_is_predecessor)
882 342 1421 unless $factoring_stack
891 7916 11074 unless nook_has_semantic_cause($asf, $nook)
918 0 4072 unless (defined $glade and $glade->[3])
927 3182 890 if $glade->[1]
948 909 921 if ($sort_ix_of_this_nid != $current_sort_ix)
957 890 940 unless defined $this_nid
960 50 890 if (defined $sorted_entry)
989 598 311 if ($g1_symch_rule_id < 0)
1009 0 1421 if (scalar @factorings > $factoring_max)
1042 0 862 unless defined $glade
1050 0 1814 unless defined $nidset
1059 0 270 unless defined $nidset
1083 0 197 unless defined $nidset
1092 0 204 if $symch_ix > $#{$symches;}
1100 0 1843 unless defined $glade
1102 0 1843 if $symch_ix > $#{$symches;}
1109 0 369 unless defined $glade
1112 0 369 if $symch_ix > $#{$symches;}
1115 0 369 if $rule_id < 0
1117 0 369 if $factoring_ix >= scalar @factorings
1125 0 97 unless defined $factoring
1132 0 168 unless defined $factoring
1144 0 42 if $seen->[$glade]
1148 5 37 if ($symch_count > 1)
1155 5 32 if $g1_rule_id < 0
1160 22 10 if ($factoring_count <= 1)
1183 1 33 $min_factors > $factor_count ? :
1227 10 21 if $factor_ix[$factoring_ix] >= $min_factors
1230 15 86 if ($this_start > $sync_location)
1236 8 14 unless $is_synced
1256 13 7 if ($this_downglade != $first_downglade)
1267 1 13 unless (defined $ambiguous_factors)
1279 0 14 if &List::Util::max(@factor_ix) >= $min_factors
1296 5 13 if ($type eq 'symch')
1313 5 0 $display_length == $l0_length ? :
1331 5 0 $symch_count == $display_symch_count ? :
1337 0 10 if ($g1_rule_id < 0)
1347 13 0 if ($type eq 'factoring')
1366 7 6 $g1_length > 0 ? :
1379 1 12 if ($display_length > 0)
1405 12 14 if ($l0_length <= 0)
1459 0 31 if (ref $method ne 'CODE')
1463 0 31 unless (ref $per_traverse_object)
1489 0 26 unless ref $child_value eq 'ARRAY'
1538 547 1241 if $rule_id < 0
1549 0 1249 if $rule_id < 0
1565 0 10708 if $rule_id < 0
1571 0 10708 if $rh_ix > $#{$factoring;}
1574 10006 702 if defined $memoized_value
1590 0 702 unless defined $value
1614 665 1056 if $factoring_ix >= $last_factoring
1628 658 7 if $symch_ix >= $last_symch
1645 28 12 unless defined $parent_choice
1651 44 137 if ($GLADE_SEEN{$glade_id})
1662 4 133 if ($symch_count > 1)
1672 8 133 $symch_count > 1 ? :
1677 8 133 if ($symch_count > 1)
1681 78 63 if ($rule_id >= 0) { }
1720 28 69 if ($factoring_count > 1)
1772 172 40 if defined $glade_id
1805 0 0 $nook->[4] ? :
1806 0 0 $nook->[5] ? :
1808 0 0 $nook->[6] ? :
1810 0 0 $nook->[7] ? :
1854 0 96731 unless ($eval_ok)
1884 0 0 unless ($cmd)
1889 0 0 unless $handler
1893 0 0 unless defined $handler_cmd
1895 0 0 if ($handler_cmd eq 'ok')
1898 0 0 if (scalar @resume_args < 1)
1903 0 0 if ($handler_cmd eq 'sig')
1914 0 0 unless ($eval_ok)
1916 0 0 if ref $eval_error
1964 0 0 unless $text