Branch Coverage

blib/lib/Text/Amuse/Element.pm
Criterion Covered Total %
branch 56 68 82.3


line true false branch
46 111285 361604 if (exists $args{$accessor} and defined $args{$accessor})
51 26117 1700 unless ($provided{'indentation'})
56 0 27817 unless ref $self->{'anchors'} eq "ARRAY"
58 420 27397 if (exists $args{'anchor'} and length $args{'anchor'})
110 0 23663 if (defined $arg)
172 1829 44800 if (@_)
186 1720 563291 if (@_)
200 0 44547 if (@_)
214 0 62 if (@_)
229 0 1030 if @_
305 3365 9702 if (@_)
307 3365 0 if (defined $arg)
329 356 51348 if ($self->type eq 'startblock' and $self->block eq $block) { }
345 322 2030 if ($element and $self->type eq 'stopblock' and $self->block eq $element->type and $self->style eq $element->style) { }
365 0 0 if ($self->type eq 'li' or $self->type eq 'null' or $self->type eq 'regular') { }
382 0 15205 if $self->will_not_merge
394 6747 8458 if ($nomerge{$self->type}) { }
409 0 8458 if $self->will_not_merge
410 2620 5838 if ($self->type eq 'regular' or $self->type eq 'verse') { }
426 0 0 if ($self->type eq 'li' or $self->type eq 'null' or $self->type eq 'regular') { }
443 12867 4524 unless $self->type eq "regular"
444 279 4245 if ($self->block eq 'quote' or $self->block eq 'center' or $self->block eq 'right') { }
461 1896 1262 if $self->type eq "regular"
462 10 1252 if $self->type =~ /h[1-5]/
463 6 1246 if $self->block eq "example"
464 6 1240 if $self->block eq "verse"
465 6 1234 if $self->block eq "table"
466 3 1231 if $self->type eq "newpage"
496 1745 4630 if ($type eq 'example') { }
485 4145 elsif ($type eq 'verse' or $type eq 'footnote') { }
517 2620 12585 if ($self->can_merge_next and $element->can_be_merged)
520 20 438 if ($self->type eq "footnote" and $element->type ne "footnote" and $element->type ne "null" and not $element->should_close_blocks)
528 1518 35225 if ($self->type eq $type and $element->type eq $type)
570 1707 1261 if ($self->type =~ /h[1-6]/) { }