Branch Coverage

blib/lib/Marpa/R2/ASF.pm
Criterion Covered Total %
branch 171 238 71.8


line true false branch
74 11668 1643 if defined $intset_id
85 11516 937 if defined $nidset
126 0 858 if defined $powerset
148 0 0 if $ix > $#{$nidset_ids;}
155 0 1160 if $ix > $#{$nidset_ids;}
179 12536 13598 if $choice > $#{$and_nodes;}
180 10934 2664 if (nook_has_semantic_cause($asf, $nook))
192 10928 59 unless defined $and_node_id
195 6 53 if $current_predecessor != $next_predecessor
218 12536 1062 unless defined set_last_choice($asf, $nook)
247 0 52 unless $bocage
297 368 0 if defined $rule
299 120 248 if (defined $blessing and "::" ne substr($blessing, 0, 2))
316 424 0 if defined $symbol
318 24 400 if (defined $blessing and "::" ne substr($blessing, 0, 2))
341 49 25 if ($arg eq "slr")
346 25 0 if ($arg eq "factoring_max")
357 0 49 unless defined $slr
364 0 49 if (defined $recce->[5])
405 0 49 unless $ordering
407 0 49 if $ordering->is_null
420 49 1710 unless scalar @and_node_ids
435 0 0 unless $glade
441 0 0 defined $glade_id ? :
457 310 590 if ($nid >= 0)
478 590 285 if $nid < 0
509 249 389 if (defined $predecessor_id)
520 606 1199 if ($nid <= $NID_LEAF_BASE)
523 420 186 if $length == 0
526 1199 0 if ($nid >= 0)
535 32 63 if ($nid <= $NID_LEAF_BASE)
538 32 0 if $length == 0
541 63 0 if ($nid >= 0)
549 60 118 if $nid > $NID_LEAF_BASE
564 118 60 if defined $token_id
565 0 60 if $nid < 0
594 0 0 unless defined $token_id
618 0 310 if $nid_of_choicepoint < 0
625 0 310 unless (scalar @{$or_nodes->[$nid_of_choicepoint];})
639 0 0 unless factoring_iterate($choicepoint)
649 0 1372 unless $factoring_stack
654 1062 0 if factoring_finish($choicepoint, $nid_of_choicepoint)
667 310 13598 unless (scalar @{$factoring_stack;})
673 1062 12536 if (nook_increment($asf, $top_nook))
681 12226 310 if ($stack_ix_of_parent_nook >= 0)
683 2664 9562 if $top_nook->[4]
685 9562 2664 if $top_nook->[5]
728 13592 17438 unless ($work_nook->[6])
730 2664 10928 unless (nook_has_semantic_cause($asf, $work_nook))
738 18794 9572 unless ($work_nook->[7])
743 9562 9232 if (defined $child_or_node)
757 0 12226 if $choicepoint->[2]{$child_or_node}
760 0 12226 unless scalar @{$or_nodes->[$work_or_node];}
764 2664 9562 if ($child_is_cause)
768 9562 2664 if ($child_is_predecessor)
809 310 1372 unless $factoring_stack
818 7868 10936 unless nook_has_semantic_cause($asf, $nook)
845 0 3893 unless (defined $glade and $glade->[3])
854 3035 858 if $glade->[1]
875 875 883 if ($sort_ix_of_this_nid != $current_sort_ix)
884 858 900 unless defined $this_nid
887 42 858 if (defined $sorted_entry)
916 590 285 if ($symch_rule_id < 0)
937 0 1372 if (scalar @factorings > $factoring_max)
970 0 829 unless defined $glade
978 0 1805 unless defined $nidset
987 0 95 unless defined $nidset
996 0 178 unless defined $nidset
1005 0 170 if $symch_ix > $#{$symches;}
1013 0 1819 unless defined $glade
1015 0 1819 if $symch_ix > $#{$symches;}
1022 0 290 unless defined $glade
1025 0 290 if $symch_ix > $#{$symches;}
1028 0 290 if $rule_id < 0
1030 0 290 if $factoring_ix >= scalar @factorings
1038 0 85 unless defined $factoring
1045 0 152 unless defined $factoring
1057 0 28 if $seen->[$glade]
1061 4 24 if ($symch_count > 1)
1068 5 19 if $rule_id < 0
1073 15 4 if ($factoring_count <= 1)
1096 1 11 $min_factors > $factor_count ? :
1140 4 7 if $factor_ix[$factoring_ix] >= $min_factors
1143 7 32 if ($this_start > $sync_location)
1149 4 6 unless $is_synced
1169 5 3 if ($this_downglade != $first_downglade)
1180 1 5 unless (defined $ambiguous_factors)
1192 0 6 if &List::Util::max(@factor_ix) >= $min_factors
1210 4 5 if ($type eq "symch")
1227 4 0 $display_length == $length ? :
1238 4 0 $symch_count == $display_symch_count ? :
1244 0 8 if ($rule_id < 0)
1254 5 0 if ($type eq "factoring")
1280 1 4 if ($display_length > 0)
1299 4 6 if ($length <= 0)
1308 0 6 if ($length > 60)
1338 0 31 if (ref $method ne "CODE")
1342 0 31 unless (ref $per_traverse_object)
1368 0 26 unless ref $child_value eq "ARRAY"
1411 547 1252 if $rule_id < 0
1422 0 1249 if $rule_id < 0
1438 0 10708 if $rule_id < 0
1444 0 10708 if $rh_ix > $#{$factoring;}
1447 10006 702 if defined $memoized_value
1463 0 702 unless defined $value
1487 665 1056 if $factoring_ix >= $last_factoring
1501 658 7 if $symch_ix >= $last_symch
1518 25 10 unless defined $parent_choice
1524 44 119 if ($GLADE_SEEN{$glade_id})
1535 3 116 if ($symch_count > 1)
1545 6 116 $symch_count > 1 ? :
1550 6 116 if ($symch_count > 1)
1554 67 55 if ($rule_id >= 0) { }
1593 26 59 if ($factoring_count > 1)
1645 155 35 if defined $glade_id
1680 0 0 $nook->[4] ? :
1681 0 0 $nook->[5] ? :
1683 0 0 $nook->[6] ? :
1685 0 0 $nook->[7] ? :