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)
294 0 58 if (my $value = $flat_args->{'trace_file_handle'})
311 0 58 unless $flat_args
316 0 58 unless defined $slr
323 0 58 unless (&blessed($slr) and $slr->isa($slr_class))
325 0 0 $ref_type ? :
342 25 38 if ($arg eq 'factoring_max')
383 0 58 if $regix < 0
412 58 1866 unless scalar @{$and_node_ids;}
441 0 58 unless $lua
457 0 0 unless $glade
463 0 0 defined $glade_id ? :
476 342 598 if ($nid >= 0)
519 598 311 if $nid < 0
564 253 463 if (defined $predecessor_id)
587 614 1200 if ($nid <= $NID_LEAF_BASE)
590 420 194 if $length == 0
593 1200 0 if ($nid >= 0)
602 102 168 if ($nid <= $NID_LEAF_BASE)
605 102 0 if $length == 0
608 168 0 if ($nid >= 0)
616 67 130 if $nid > $NID_LEAF_BASE
636 130 67 if defined $token_id
637 0 67 if $nid < 0
669 0 0 unless defined $token_id
693 0 342 if $nid_of_choicepoint < 0
700 0 342 unless (scalar @{$or_nodes->[$nid_of_choicepoint];})
714 0 0 unless factoring_iterate($choicepoint)
724 0 1421 unless $factoring_stack
729 1079 0 if factoring_finish($choicepoint, $nid_of_choicepoint)
742 342 13776 unless (scalar @{$factoring_stack;})
748 1079 12697 if (nook_increment($asf, $top_nook))
756 12355 342 if ($stack_ix_of_parent_nook >= 0)
758 2704 9651 if $top_nook->[4]
760 9651 2704 if $top_nook->[5]
796 13769 17576 unless ($work_nook->[6])
798 2704 11065 unless (nook_has_semantic_cause($asf, $work_nook))
809 18980 9661 unless ($work_nook->[7])
817 9651 9329 if (defined $child_or_node)
831 0 12355 if $choicepoint->[2]{$child_or_node}
834 0 12355 unless scalar @{$or_nodes->[$work_or_node];}
838 2704 9651 if ($child_is_cause)
842 9651 2704 if ($child_is_predecessor)
881 342 1421 unless $factoring_stack
890 7916 11074 unless nook_has_semantic_cause($asf, $nook)
917 0 4072 unless (defined $glade and $glade->[3])
926 3182 890 if $glade->[1]
947 909 921 if ($sort_ix_of_this_nid != $current_sort_ix)
956 890 940 unless defined $this_nid
959 50 890 if (defined $sorted_entry)
988 598 311 if ($g1_symch_rule_id < 0)
1008 0 1421 if (scalar @factorings > $factoring_max)
1041 0 862 unless defined $glade
1049 0 1814 unless defined $nidset
1058 0 270 unless defined $nidset
1082 0 197 unless defined $nidset
1091 0 204 if $symch_ix > $#{$symches;}
1099 0 1843 unless defined $glade
1101 0 1843 if $symch_ix > $#{$symches;}
1108 0 369 unless defined $glade
1111 0 369 if $symch_ix > $#{$symches;}
1114 0 369 if $rule_id < 0
1116 0 369 if $factoring_ix >= scalar @factorings
1124 0 97 unless defined $factoring
1131 0 168 unless defined $factoring
1143 0 42 if $seen->[$glade]
1147 5 37 if ($symch_count > 1)
1154 5 32 if $g1_rule_id < 0
1159 22 10 if ($factoring_count <= 1)
1182 1 33 $min_factors > $factor_count ? :
1226 10 21 if $factor_ix[$factoring_ix] >= $min_factors
1229 15 86 if ($this_start > $sync_location)
1235 8 14 unless $is_synced
1255 13 7 if ($this_downglade != $first_downglade)
1266 1 13 unless (defined $ambiguous_factors)
1278 0 14 if &List::Util::max(@factor_ix) >= $min_factors
1295 5 13 if ($type eq 'symch')
1312 5 0 $display_length == $l0_length ? :
1330 5 0 $symch_count == $display_symch_count ? :
1336 0 10 if ($g1_rule_id < 0)
1346 13 0 if ($type eq 'factoring')
1365 7 6 $g1_length > 0 ? :
1378 1 12 if ($display_length > 0)
1404 12 14 if ($l0_length <= 0)
1458 0 31 if (ref $method ne 'CODE')
1462 0 31 unless (ref $per_traverse_object)
1488 0 26 unless ref $child_value eq 'ARRAY'
1537 547 1241 if $rule_id < 0
1548 0 1249 if $rule_id < 0
1564 0 10708 if $rule_id < 0
1570 0 10708 if $rh_ix > $#{$factoring;}
1573 10006 702 if defined $memoized_value
1589 0 702 unless defined $value
1613 665 1056 if $factoring_ix >= $last_factoring
1627 658 7 if $symch_ix >= $last_symch
1644 28 12 unless defined $parent_choice
1650 44 137 if ($GLADE_SEEN{$glade_id})
1661 4 133 if ($symch_count > 1)
1671 8 133 $symch_count > 1 ? :
1676 8 133 if ($symch_count > 1)
1680 78 63 if ($rule_id >= 0) { }
1719 28 69 if ($factoring_count > 1)
1771 172 40 if defined $glade_id
1804 0 0 $nook->[4] ? :
1805 0 0 $nook->[5] ? :
1807 0 0 $nook->[6] ? :
1809 0 0 $nook->[7] ? :
1853 0 96850 unless ($eval_ok)
1883 0 0 unless ($cmd)
1888 0 0 unless $handler
1892 0 0 unless defined $handler_cmd
1894 0 0 if ($handler_cmd eq 'ok')
1897 0 0 if (scalar @resume_args < 1)
1902 0 0 if ($handler_cmd eq 'sig')
1913 0 0 unless ($eval_ok)
1915 0 0 if ref $eval_error
1963 0 0 unless $text