Branch Coverage

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


line true false branch
76 11779 1764 if defined $intset_id
87 11617 1034 if defined $nidset
128 0 892 if defined $powerset
150 0 0 if $ix > $#{$nidset_ids;}
157 0 1224 if $ix > $#{$nidset_ids;}
181 12705 13785 if $choice > $#{$and_nodes;}
182 11077 2708 if (nook_has_semantic_cause($asf, $nook))
197 11070 70 unless defined $and_node_id
206 7 63 if $current_predecessor != $next_predecessor
229 12705 1080 unless defined set_last_choice($asf, $nook)
295 0 59 if (my $value = $flat_args->{'trace_file_handle'})
312 0 59 unless $flat_args
317 0 59 unless defined $slr
324 0 59 unless (&blessed($slr) and $slr->isa($slr_class))
326 0 0 $ref_type ? :
343 25 39 if ($arg eq 'factoring_max')
384 0 59 if $regix < 0
413 59 1833 unless scalar @{$and_node_ids;}
442 0 59 unless $lua
458 0 0 unless $glade
464 0 0 defined $glade_id ? :
477 344 598 if ($nid >= 0)
520 598 313 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 181 if ($nid <= $NID_LEAF_BASE)
606 102 0 if $length == 0
609 181 0 if ($nid >= 0)
617 68 130 if $nid > $NID_LEAF_BASE
637 130 68 if defined $token_id
638 0 68 if $nid < 0
670 0 0 unless defined $token_id
694 0 344 if $nid_of_choicepoint < 0
701 0 344 unless (scalar @{$or_nodes->[$nid_of_choicepoint];})
715 0 0 unless factoring_iterate($choicepoint)
725 0 1424 unless $factoring_stack
730 1080 0 if factoring_finish($choicepoint, $nid_of_choicepoint)
743 344 13785 unless (scalar @{$factoring_stack;})
749 1080 12705 if (nook_increment($asf, $top_nook))
757 12361 344 if ($stack_ix_of_parent_nook >= 0)
759 2708 9653 if $top_nook->[4]
761 9653 2708 if $top_nook->[5]
797 13778 17584 unless ($work_nook->[6])
799 2708 11070 unless (nook_has_semantic_cause($asf, $work_nook))
810 18988 9666 unless ($work_nook->[7])
818 9653 9335 if (defined $child_or_node)
832 0 12361 if $choicepoint->[2]{$child_or_node}
835 0 12361 unless scalar @{$or_nodes->[$work_or_node];}
839 2708 9653 if ($child_is_cause)
843 9653 2708 if ($child_is_predecessor)
882 344 1424 unless $factoring_stack
891 7921 11080 unless nook_has_semantic_cause($asf, $nook)
918 0 4084 unless (defined $glade and $glade->[3])
927 3192 892 if $glade->[1]
948 911 923 if ($sort_ix_of_this_nid != $current_sort_ix)
957 892 942 unless defined $this_nid
960 50 892 if (defined $sorted_entry)
989 598 313 if ($g1_symch_rule_id < 0)
1009 0 1424 if (scalar @factorings > $factoring_max)
1042 0 864 unless defined $glade
1050 0 1814 unless defined $nidset
1059 0 283 unless defined $nidset
1083 0 198 unless defined $nidset
1092 0 206 if $symch_ix > $#{$symches;}
1100 0 1845 unless defined $glade
1102 0 1845 if $symch_ix > $#{$symches;}
1109 0 374 unless defined $glade
1112 0 374 if $symch_ix > $#{$symches;}
1115 0 374 if $rule_id < 0
1117 0 374 if $factoring_ix >= scalar @factorings
1125 0 97 unless defined $factoring
1132 0 168 unless defined $factoring
1144 0 44 if $seen->[$glade]
1148 5 39 if ($symch_count > 1)
1155 5 34 if $g1_rule_id < 0
1160 23 11 if ($factoring_count <= 1)
1183 1 34 $min_factors > $factor_count ? :
1227 11 21 if $factor_ix[$factoring_ix] >= $min_factors
1230 16 88 if ($this_start > $sync_location)
1236 8 15 unless $is_synced
1256 14 7 if ($this_downglade != $first_downglade)
1267 1 14 unless (defined $ambiguous_factors)
1279 0 15 if &List::Util::max(@factor_ix) >= $min_factors
1296 5 14 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 14 0 if ($type eq 'factoring')
1366 8 6 $g1_length > 0 ? :
1379 2 12 if ($display_length > 0)
1405 12 16 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 96829 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