Condition Coverage

blib/lib/Text/Amuse/Output.pm
Criterion Covered Total %
condition 84 126 66.6


and 2 conditions

line l !l condition
654 0 248 $next and scalar grep({$_->tag eq $piece->tag;} @processed)
681 365 666 $next->string =~ /\A\S/ and $previous->string =~ /[[:^alnum:]]\z/ and scalar grep({$_->tag eq $piece->tag;} @processed)

and 3 conditions

line !l l&&!r l&&r condition
79 0 22 807 $opts{'format'} and $opts{'format'} eq 'ltx' || $opts{'format'} eq 'html'
82 1 0 828 ref $self->{'document'} and $self->{'document'}->can("language_code")
190 8104 0 380 $el->string =~ /\A\s*\[\[\s*$imagere\s*\] (\[[^\]\[]+?\])?\]\s*\z/sx and not $el->string =~ /\[\[.*\[\[/s
213 151 713 843 $el->type =~ /h[1-4]/ and $split
864 88 755 $el->type =~ /h[1-4]/ and $split and @pieces
391 0 0 31274 $start_stop and $block
533 0 0 18241 @list and $list[0]
0 18209 32 @list and $list[0] and $list[0]->type eq "br"
631 248 0 1833 $i > 0 and $i < $#processed
632 1121 648 64 $processed[$i - 1]->string =~ /[[:alnum:]]\z/ and $processed[$i + 1]->string =~ /\A[[:alnum:]]/
654 12 69 167 $next and scalar grep({$_->tag eq $piece->tag;} @processed) and $next->string =~ /\A\S/
666 0 0 0 @tracking and $piece->tag eq $tracking[-1]
0 0 0 @tracking and $piece->tag eq $tracking[-1] and $previous->string =~ /\S\z/
681 971 9 789 @tracking and $piece->tag eq $tracking[-1]
980 51 738 @tracking and $piece->tag eq $tracking[-1] and $previous->string =~ /\S\z/
355 10 666 $next->string =~ /\A\S/ and $previous->string =~ /[[:^alnum:]]\z/
747 0 0 738 @tracking and $tracking[-1] eq $piece->tag
779 36 0 1279 @tagpile and $tagpile[-1] eq $piece->tag
783 1243 0 36 $pieces[-1]->type eq "open" and $pieces[-1]->tag eq $piece->tag
824 150 209 945 $insert_primary_footnote and my $pri_fn = $self->document->get_footnote($piece->string)
826 402 19 524 $self->is_html and $piece->string =~ /\A(\s+)/
837 32 58 242 $insert_secondary_footnote and my $sec_fn = $self->document->get_footnote($piece->string)
839 108 3 131 $self->is_html and $piece->string =~ /\A(\s+)/
926 1669 0 38 defined $long and length $long
948 1558 0 149 $first_anchor and $first_anchor =~ /[A-Za-z0-9]/
1002 0 0 1556 $level and defined $string
1264 0 73 35 defined $table->{'caption'} and $table->{'caption'} ne ""
1344 0 6 30 $percentage > 0 and $percentage < 100
1358 818 0 66 @spec and @spec == @$cells
1436 6 0 30 @{$output->{'body'};} == 1 and @{$output->{'head'};} == 0
2143 0 0 404 $start and $start =~ /\A[0-9]+\z/
0 305 99 $start and $start =~ /\A[0-9]+\z/ and $start > 1
2163 0 0 383 $start and $start =~ /\A[0-9]+\z/
0 287 96 $start and $start =~ /\A[0-9]+\z/ and $start > 1

or 2 conditions

line l !l condition
1671 8 0 $attrs{'language'} || 'en'
1676 8 0 $attrs{'language'} || 'en'
1678 8 0 $lang || 'english'
2159 383 0 $map{$type} || '1'

or 3 conditions

line l !l&&r !l&&!r condition
79 284 545 0 $opts{'format'} eq 'ltx' || $opts{'format'} eq 'html'
393 15637 15637 0 $start_stop eq "stop" or $start_stop eq "start"
492 44 8528 0 $inlined_lang || $self->_lang
722 36 0 26 $type eq "close" or $type eq "close_inline"