Branch Coverage

blib/lib/Marpa/R2/HTML/Callback.pm
Criterion Covered Total %
branch 71 108 65.7


line true false branch
36 0 9 unless defined $parse_instance
38 6 3 unless defined $Marpa::R2::HTML::Internal::START_TAG_IX
60 0 14 if defined $Marpa::R2::HTML::Internal::END_TAG_IX_REF
67 0 14 unless $Marpa::R2::HTML::Internal::ELEMENT
73 0 14 unless defined $end_tag_type
74 8 6 if $end_tag_type ne "PHYSICAL_TOKEN"
82 0 6 if $html_token_type ne "E"
91 0 9 unless defined $parse_instance
93 0 9 unless defined $Marpa::R2::HTML::Internal::END_TAG_IX_REF
95 8 1 unless defined $end_tag_token_ix
106 0 14 unless defined $self
110 0 14 unless $Marpa::R2::HTML::Internal::ELEMENT
112 8 6 defined $Marpa::R2::HTML::Internal::START_TAG_IX ? :
116 14 0 unless defined $Marpa::R2::HTML::Internal::END_TAG_IX_REF
118 6 8 defined $end_tag_token_ix ? :
124 1 13 unless defined $contents_start_ix
142 0 19 unless defined $parse_instance
153 0 61 unless defined $type
154 8 53 if ($type eq "VALUES")
159 10 43 if ($type eq "VALUED_SPAN")
175 0 426 unless defined $parse_instance
195 8 1270 unless defined $type
196 93 1177 if $type eq "ZERO_SPAN"
197 643 534 if $type eq "RUBY_SLIPPERS_TOKEN"
198 114 420 if ($type eq "VALUES")
215 82 579 unless (defined $next_explicit_token_ix)
219 82 0 if ($tdesc_item_type eq "VALUED_SPAN" and defined $tdesc_item->[3])
231 367 212 if ($tdesc_item_type eq "VALUED_SPAN" and defined $tdesc_item->[3])
253 0 1983 if ($argspec =~ s/_ref\z//msx)
256 661 1322 if ($argspec eq "literal")
257 449 212 if ($is_valued)
266 0 1534 if ($argspec eq "value")
267 0 0 $is_valued ? :
275 212 1322 if ($argspec eq "original")
279 0 212 $is_valued ? :
288 212 0 if $deref
292 661 661 if ($argspec eq "token_type")
293 449 212 if ($is_valued)
303 661 0 if ($argspec eq "element")
304 212 449 unless ($is_valued)
312 293 156 unless (defined $action)
316 0 156 if (index($action, "ELE_") != 0)
323 0 0 if ($argspec eq "pseudoclass")
327 0 0 unless ($is_valued)
335 0 0 unless (defined $action)
339 0 0 if (index($action, "SPE_") != 0)
366 3 4 unless defined $attributes
384 0 4 unless defined $Marpa::R2::HTML::Internal::ELEMENT
396 0 105 unless defined $self
403 0 105 unless defined $contents_start_ix
425 1 6 unless defined $start_token_ix
434 0 0 unless defined $start_token_ix
443 0 2 unless defined $self
449 0 2 unless defined $start_token_ix