Condition Coverage

blib/lib/PDF/Builder/Content/Text.pm
Criterion Covered Total %
condition 44 360 12.2


and 3 conditions

line !l l&&!r l&&r condition
182 4 0 0 defined $opts{'-wordsp'} and not defined $opts{'wordsp'}
183 4 0 0 defined $opts{'-charsp'} and not defined $opts{'charsp'}
184 4 0 0 defined $opts{'-wordspa'} and not defined $opts{'wordspa'}
185 4 0 0 defined $opts{'-charspa'} and not defined $opts{'charspa'}
186 4 0 0 defined $opts{'-condw'} and not defined $opts{'condw'}
187 4 0 0 defined $opts{'-condc'} and not defined $opts{'condc'}
188 4 0 0 defined $opts{'-nocs'} and not defined $opts{'nocs'}
242 0 0 0 $overage > 0 and $num_spaces > 0
0 0 0 $overage > 0 and $num_spaces > 0 and $condw > 0
250 0 0 0 $overage > 0 and $num_chars > 0
0 0 0 $overage > 0 and $num_chars > 0 and $condc > 0
262 0 0 4 $overage > 0 and $num_spaces > 0
0 0 4 $overage > 0 and $num_spaces > 0 and $wordsp > 0
270 3 0 1 $overage > 0 and $num_chars > 0
3 0 1 $overage > 0 and $num_chars > 0 and $charsp > 0
278 4 0 0 $overage > 0 and $num_spaces > 0
4 0 0 $overage > 0 and $num_spaces > 0 and $wordspa > 0
286 4 0 0 $overage > 0 and $num_chars > 0
4 0 0 $overage > 0 and $num_chars > 0 and $charspa > 0
402 20 0 0 defined $opts{'-hyphenate'} and not defined $opts{'hyphenate'}
403 20 0 0 defined $opts{'-lang'} and not defined $opts{'lang'}
404 20 0 0 defined $opts{'-nosplit'} and not defined $opts{'nosplit'}
438 7 0 13 $overflowed and not $over
439 13 0 0 $hyphenate and @line == 1
453 20 0 0 $hyphenate and $overflowed
589 0 0 10 defined $opts{'-spillover'} and not defined $opts{'spillover'}
591 0 0 10 defined $opts{'spillover'} && $opts{'spillover'} == 0
618 0 0 2 defined $opts{'-spillover'} and not defined $opts{'spillover'}
620 0 0 2 defined $opts{'spillover'} && $opts{'spillover'} == 0
642 0 0 2 defined $opts{'-spillover'} and not defined $opts{'spillover'}
644 0 0 2 defined $opts{'spillover'} && $opts{'spillover'} == 0
683 2 0 4 defined $opts{'-last_align'} and not defined $opts{'last_align'}
684 0 0 6 defined $opts{'-spillover'} and not defined $opts{'spillover'}
694 0 0 6 defined $opts{'spillover'} && $opts{'spillover'} == 0
797 7 0 5 defined $opts{'-align'} and not defined $opts{'align'}
798 12 0 0 defined $opts{'-pndnt'} and not defined $opts{'pndnt'}
822 20 0 0 $indent > 0 and $first_line
823 20 0 0 $indent < 0 and not $first_line
825 20 0 0 $lw < $width and $align eq 'l' || $align eq 'j'
900 2 0 0 defined $opts{'-pvgap'} and not defined $opts{'pvgap'}
928 2 4 0 length $para == 0 and $pvgap != 0
1038 0 0 0 defined $opts{'-rotate'} and not defined $opts{'rotate'}
1039 0 0 0 defined $opts{'-color'} and not defined $opts{'color'}
1040 0 0 0 defined $opts{'-strokecolor'} and not defined $opts{'strokecolor'}
1041 0 0 0 defined $opts{'-charspace'} and not defined $opts{'charspace'}
1042 0 0 0 defined $opts{'-hscale'} and not defined $opts{'hscale'}
1043 0 0 0 defined $opts{'-wordspace'} and not defined $opts{'wordspace'}
1044 0 0 0 defined $opts{'-render'} and not defined $opts{'render'}
1045 0 0 0 defined $opts{'-right'} and not defined $opts{'right'}
1046 0 0 0 defined $opts{'-center'} and not defined $opts{'center'}
1047 0 0 0 defined $opts{'-left'} and not defined $opts{'left'}
1048 0 0 0 defined $opts{'-align'} and not defined $opts{'align'}
1075 0 0 0 defined $opts{'right'} and $opts{'right'}
0 0 0 defined $opts{'align'} and $opts{'align'} =~ /^r/i
0 0 0 defined $opts{'center'} and $opts{'center'}
0 0 0 defined $opts{'align'} and $opts{'align'} =~ /^c/i
0 0 0 defined $opts{'left'} and $opts{'left'}
0 0 0 defined $opts{'align'} and $opts{'align'} =~ /^l/i
1712 0 0 0 defined $grfx and ref($grfx) =~ /^PDF::Builder::Content=HASH/
1769 0 0 0 defined $grfx and ref($grfx) =~ /^PDF::Builder::Content=HASH/
2215 0 0 0 defined $mytext[$el]{'cont'} and $mytext[$el]{'cont'}
2296 0 0 0 $properties[-1]{'width'} > 0 and $properties[-1]{'width'} < $width
2399 0 0 0 $mytext[$first]{'text'} eq "" and $mytext[$first]{'tag'} eq $tag
2480 0 0 0 defined $grfx and ref($grfx) =~ /^PDF::Builder::Content/
2615 0 0 0 defined $grfx and ref($grfx) =~ /^PDF::Builder::Content/
2799 0 0 0 defined $xpos and $xpos < 0
2803 0 0 0 defined $ypos and $ypos < 0
2864 0 0 0 $full_line and index($word, " ") == -1
2903 0 0 0 $phrase eq "" and $remainder ne ""
3015 0 0 0 defined $grfx and ref($grfx) =~ /^PDF::Builder::Content/
3105 0 0 0 defined $target->{$_} and $target->{$_} ne "none"
3213 0 0 0 $draw_outline ne "none" and defined $grfx
0 0 0 $draw_outline ne "none" and defined $grfx and ref($grfx) =~ /^PDF::Builder::Content/
3468 0 0 0 defined $head and defined $head->{'_content'}
3476 0 0 0 defined $array[$el - 1]{'tag'} and $array[$el - 1]{'tag'} eq "style"
3493 0 0 0 defined $array[$el - 1]{'tag'} and $array[$el - 1]{'tag'} eq "style"
3563 0 0 0 defined $property_name and defined $value
3635 0 0 0 not $no_content and defined $element->{'_content'}

or 2 conditions

line l !l condition
2284 0 0 $properties[-1]{'height'} || 1
2698 0 0 $font->underlinethickness || 1
2700 0 0 $font->underlineposition || 1

or 3 conditions

line l !l&&r !l&&!r condition
439 0 13 0 $hyphenate and @line == 1 or @line > 1
825 0 0 0 $align eq 'l' || $align eq 'j'
1075 0 0 0 defined $opts{'right'} and $opts{'right'} or defined $opts{'align'} and $opts{'align'} =~ /^r/i
0 0 0 defined $opts{'center'} and $opts{'center'} or defined $opts{'align'} and $opts{'align'} =~ /^c/i
0 0 0 defined $opts{'left'} and $opts{'left'} or defined $opts{'align'} and $opts{'align'} =~ /^l/i
2054 0 0 0 $tag eq "br" or $tag eq "hr"
0 0 0 $tag eq "br" or $tag eq "hr" or $tag eq "img"
0 0 0 $tag eq "br" or $tag eq "hr" or $tag eq "img" or $tag eq "area"
0 0 0 $tag eq "br" or $tag eq "hr" or $tag eq "img" or $tag eq "area" or $tag eq "base"
0 0 0 $tag eq "br" or $tag eq "hr" or $tag eq "img" or $tag eq "area" or $tag eq "base" or $tag eq "col"
0 0 0 $tag eq "br" or $tag eq "hr" or $tag eq "img" or $tag eq "area" or $tag eq "base" or $tag eq "col" or $tag eq "embed"
0 0 0 $tag eq "br" or $tag eq "hr" or $tag eq "img" or $tag eq "area" or $tag eq "base" or $tag eq "col" or $tag eq "embed" or $tag eq "input"
0 0 0 $tag eq "br" or $tag eq "hr" or $tag eq "img" or $tag eq "area" or $tag eq "base" or $tag eq "col" or $tag eq "embed" or $tag eq "input" or $tag eq "link"
0 0 0 $tag eq "br" or $tag eq "hr" or $tag eq "img" or $tag eq "area" or $tag eq "base" or $tag eq "col" or $tag eq "embed" or $tag eq "input" or $tag eq "link" or $tag eq "meta"
0 0 0 $tag eq "br" or $tag eq "hr" or $tag eq "img" or $tag eq "area" or $tag eq "base" or $tag eq "col" or $tag eq "embed" or $tag eq "input" or $tag eq "link" or $tag eq "meta" or $tag eq "source"
0 0 0 $tag eq "br" or $tag eq "hr" or $tag eq "img" or $tag eq "area" or $tag eq "base" or $tag eq "col" or $tag eq "embed" or $tag eq "input" or $tag eq "link" or $tag eq "meta" or $tag eq "source" or $tag eq "track"
0 0 0 $tag eq "br" or $tag eq "hr" or $tag eq "img" or $tag eq "area" or $tag eq "base" or $tag eq "col" or $tag eq "embed" or $tag eq "input" or $tag eq "link" or $tag eq "meta" or $tag eq "source" or $tag eq "track" or $tag eq "wbr"
0 0 0 $tag eq "br" or $tag eq "hr" or $tag eq "img" or $tag eq "area" or $tag eq "base" or $tag eq "col" or $tag eq "embed" or $tag eq "input" or $tag eq "link" or $tag eq "meta" or $tag eq "source" or $tag eq "track" or $tag eq "wbr" or $tag eq "defaults"
0 0 0 $tag eq "br" or $tag eq "hr" or $tag eq "img" or $tag eq "area" or $tag eq "base" or $tag eq "col" or $tag eq "embed" or $tag eq "input" or $tag eq "link" or $tag eq "meta" or $tag eq "source" or $tag eq "track" or $tag eq "wbr" or $tag eq "defaults" or $tag eq "style"
2378 0 0 0 $tag eq "ol" or $tag eq "ul"
2639 0 0 0 $list_marker eq "" or $list_marker eq " "
3033 0 0 0 $restore == 0 or $restore == 1
3117 0 0 0 $tag_sel eq "text" or $tag_sel eq "tag"
3181 0 0 0 @relative < 2 or @relative > 4
3612 0 0 0 $tag eq "br" or $tag eq "hr"
0 0 0 $tag eq "br" or $tag eq "hr" or $tag eq "img"
0 0 0 $tag eq "br" or $tag eq "hr" or $tag eq "img" or $tag eq "area"
0 0 0 $tag eq "br" or $tag eq "hr" or $tag eq "img" or $tag eq "area" or $tag eq "base"
0 0 0 $tag eq "br" or $tag eq "hr" or $tag eq "img" or $tag eq "area" or $tag eq "base" or $tag eq "col"
0 0 0 $tag eq "br" or $tag eq "hr" or $tag eq "img" or $tag eq "area" or $tag eq "base" or $tag eq "col" or $tag eq "embed"
0 0 0 $tag eq "br" or $tag eq "hr" or $tag eq "img" or $tag eq "area" or $tag eq "base" or $tag eq "col" or $tag eq "embed" or $tag eq "input"
0 0 0 $tag eq "br" or $tag eq "hr" or $tag eq "img" or $tag eq "area" or $tag eq "base" or $tag eq "col" or $tag eq "embed" or $tag eq "input" or $tag eq "link"
0 0 0 $tag eq "br" or $tag eq "hr" or $tag eq "img" or $tag eq "area" or $tag eq "base" or $tag eq "col" or $tag eq "embed" or $tag eq "input" or $tag eq "link" or $tag eq "meta"
0 0 0 $tag eq "br" or $tag eq "hr" or $tag eq "img" or $tag eq "area" or $tag eq "base" or $tag eq "col" or $tag eq "embed" or $tag eq "input" or $tag eq "link" or $tag eq "meta" or $tag eq "source"
0 0 0 $tag eq "br" or $tag eq "hr" or $tag eq "img" or $tag eq "area" or $tag eq "base" or $tag eq "col" or $tag eq "embed" or $tag eq "input" or $tag eq "link" or $tag eq "meta" or $tag eq "source" or $tag eq "track"
0 0 0 $tag eq "br" or $tag eq "hr" or $tag eq "img" or $tag eq "area" or $tag eq "base" or $tag eq "col" or $tag eq "embed" or $tag eq "input" or $tag eq "link" or $tag eq "meta" or $tag eq "source" or $tag eq "track" or $tag eq "wbr"
0 0 0 $tag eq "br" or $tag eq "hr" or $tag eq "img" or $tag eq "area" or $tag eq "base" or $tag eq "col" or $tag eq "embed" or $tag eq "input" or $tag eq "link" or $tag eq "meta" or $tag eq "source" or $tag eq "track" or $tag eq "wbr" or $tag eq "defaults"
0 0 0 $tag eq "br" or $tag eq "hr" or $tag eq "img" or $tag eq "area" or $tag eq "base" or $tag eq "col" or $tag eq "embed" or $tag eq "input" or $tag eq "link" or $tag eq "meta" or $tag eq "source" or $tag eq "track" or $tag eq "wbr" or $tag eq "defaults" or $tag eq "style"
3768 0 0 0 $type eq "upper-roman" or $type eq "lower-roman"
0 0 0 $type eq "upper-alpha" or $type eq "lower-alpha"