Branch Coverage

html/lib/Marpa/R2/HTML/Config/Compile.pm
Criterion Covered Total %
branch 95 144 65.9


line true false branch
55 0 10 unless defined $group_entry
61 0 10 if ($closed_reason)
69 0 10 if ($closed_reason)
102 0 77 unless defined $group_entry
106 0 77 unless defined $flow_entry
112 0 77 if ($closed_reason)
120 0 77 if ($closed_reason)
128 0 77 if ($closed_reason)
136 0 77 if ($closed_reason)
145 0 77 if defined $element_entry->[3]
149 0 77 if defined $element_entry->[2]
180 0 12 unless defined $flow_entry
187 0 12 if ($closed_reason)
196 0 12 if ($closed_reason)
206 0 12 if defined $element_entry->[3]
234 0 17 if ($closed_reason)
248 24 3 if ($external_content_symbol =~ /\A [<] (\w+) [>] \z/msx)
251 3 24 if ($external_content_symbol =~ /\A [%] (\w+) \z/msx)
256 11 16 unless (defined $content_entry)
257 0 11 unless ($content_symbol =~ /\A ELE_ /msx)
264 0 27 if ($closed_reason)
288 0 3 if defined $lists->{$new_list}
291 1 9 if ($raw_member =~ / \A [\@] (.*) \z/msx)
298 0 1 unless defined $lists->{$member_list}
313 22 45 if ($raw_candidate =~ / \A [\@] (.*) \z/msx)
319 0 22 unless defined $lists->{$list}
327 2 155 if ($symbol eq "CDATA" or $symbol eq "PCDATA")
331 2 153 if ($symbol =~ /\A ( [<] [%] (inline|head|block) [>] ) \z/msx)
336 0 153 if ($symbol =~ m[\A ( [<] [/] [%] (inline|head|block) [>] ) \z]msx)
342 1 152 if ($symbol =~ /\A ( [<] [*] [>] ) \z/msx)
347 12 140 if ($symbol =~ m[\A ( [<] [/] [*] [>] ) \z]msx)
352 136 4 if ($symbol =~ /\A [<] (\w+) [>] \z/msx)
357 4 0 if ($symbol =~ m[\A [<] [/](\w+) [>] \z]msx)
375 0 0 unless say $rec->show_progress
378 0 0 if $before_start < 0
401 0 427 scalar @children > 1 ? :
479 0 0 $start > 0 ? :
517 26 40 unless $definition =~ / \S /msx
519 40 0 if ($definition =~ s/ \s* [:][:][=] \s* / /msx)
528 7 33 if ($sequence)
531 10 30 if (my $handler = $species_handler{$lhs}) { }
1 29 elsif ($lhs =~ /^ELE_/msx) { }
573 6 7 if $flow_symbol eq "FLO_SGML"
593 0 1 if (scalar @species_not_defined)
616 17 1645 if $string =~ /\G \s* [#] [^\n]* \n/cgmsx
619 822 823 if $string =~ /\G\s+/cgmsx
623 5779 823 unless $string =~ /\G($t->[1])/cgmsx
625 0 823 unless (defined $recce->read($t->[0], $1))
646 0 1 unless (defined $eval_ok)
648 0 0 unless $eval_ref_type
649 0 0 if ($eval_ref_type eq "ARRAY" and $Marpa::R2::HTML::Config::Compile::EVAL_ERROR->[0] eq "rule")
658 0 1 unless (defined $parse_value_ref)
664 37 106 unless "ELE_" eq substr($element_symbol, 0, 4)
669 1 18 unless defined $context or defined $contents
670 0 105 if (defined $context and not defined $contents)
682 77 0 unless (ref $context or ref $contents)
687 16 12 if (ref $contents) { }
708 16 0 unless ($sgml_flow_included{$item_symbol})
726 0 28 unless ref $context
744 12 17 if grep {"" eq $_;} @{$candidates;}
752 9 68 if $contents eq "FLO_empty"
756 108 29 unless "ELE_" eq substr($lhs, 0, 4)
758 3 26 if $contents eq "FLO_empty"
767 26 3 if "E_" ne substr($rejected_symbol, 0, 2)
769 3 0 unless $is_empty_element{$tag}
777 146 1 if "E_" ne substr($candidate_symbol, 0, 2)
779 1 0 unless $is_empty_element{$tag}
813 13 1 if $defined_in_core_rules{$tag}
815 0 1 unless defined $flow
843 0 1 if scalar @symbols_with_no_ruby_status
864 0 1 if scalar @elements_defined_but_not_used
875 0 139 if ($seen{$desc})