Condition Coverage

blib/lib/PDF/Builder/Content/Text.pm
Criterion Covered Total %
condition 44 189 23.2


and 3 conditions

line !l l&&!r l&&r condition
175 4 0 0 defined $opts{'-wordsp'} and not defined $opts{'wordsp'}
176 4 0 0 defined $opts{'-charsp'} and not defined $opts{'charsp'}
177 4 0 0 defined $opts{'-wordspa'} and not defined $opts{'wordspa'}
178 4 0 0 defined $opts{'-charspa'} and not defined $opts{'charspa'}
179 4 0 0 defined $opts{'-condw'} and not defined $opts{'condw'}
180 4 0 0 defined $opts{'-condc'} and not defined $opts{'condc'}
181 4 0 0 defined $opts{'-nocs'} and not defined $opts{'nocs'}
235 0 0 0 $overage > 0 and $num_spaces > 0
0 0 0 $overage > 0 and $num_spaces > 0 and $condw > 0
243 0 0 0 $overage > 0 and $num_chars > 0
0 0 0 $overage > 0 and $num_chars > 0 and $condc > 0
255 0 0 4 $overage > 0 and $num_spaces > 0
0 0 4 $overage > 0 and $num_spaces > 0 and $wordsp > 0
263 3 0 1 $overage > 0 and $num_chars > 0
3 0 1 $overage > 0 and $num_chars > 0 and $charsp > 0
271 4 0 0 $overage > 0 and $num_spaces > 0
4 0 0 $overage > 0 and $num_spaces > 0 and $wordspa > 0
279 4 0 0 $overage > 0 and $num_chars > 0
4 0 0 $overage > 0 and $num_chars > 0 and $charspa > 0
373 20 0 0 defined $opts{'-hyphenate'} and not defined $opts{'hyphenate'}
374 20 0 0 defined $opts{'-lang'} and not defined $opts{'lang'}
375 20 0 0 defined $opts{'-nosplit'} and not defined $opts{'nosplit'}
409 7 0 13 $overflowed and not $over
410 13 0 0 $hyphenate and @line == 1
424 20 0 0 $hyphenate and $overflowed
560 0 0 10 defined $opts{'-spillover'} and not defined $opts{'spillover'}
562 0 0 10 defined $opts{'spillover'} && $opts{'spillover'} == 0
589 0 0 2 defined $opts{'-spillover'} and not defined $opts{'spillover'}
591 0 0 2 defined $opts{'spillover'} && $opts{'spillover'} == 0
613 0 0 2 defined $opts{'-spillover'} and not defined $opts{'spillover'}
615 0 0 2 defined $opts{'spillover'} && $opts{'spillover'} == 0
654 2 0 4 defined $opts{'-last_align'} and not defined $opts{'last_align'}
655 0 0 6 defined $opts{'-spillover'} and not defined $opts{'spillover'}
665 0 0 6 defined $opts{'spillover'} && $opts{'spillover'} == 0
766 7 0 5 defined $opts{'-align'} and not defined $opts{'align'}
767 12 0 0 defined $opts{'-pndnt'} and not defined $opts{'pndnt'}
791 20 0 0 $indent > 0 and $first_line
792 20 0 0 $indent < 0 and not $first_line
794 20 0 0 $lw < $width and $align eq 'l' || $align eq 'j'
869 2 0 0 defined $opts{'-pvgap'} and not defined $opts{'pvgap'}
897 2 4 0 length $para == 0 and $pvgap != 0
1007 0 0 0 defined $opts{'-rotate'} and not defined $opts{'rotate'}
1008 0 0 0 defined $opts{'-color'} and not defined $opts{'color'}
1009 0 0 0 defined $opts{'-strokecolor'} and not defined $opts{'strokecolor'}
1010 0 0 0 defined $opts{'-charspace'} and not defined $opts{'charspace'}
1011 0 0 0 defined $opts{'-hscale'} and not defined $opts{'hscale'}
1012 0 0 0 defined $opts{'-wordspace'} and not defined $opts{'wordspace'}
1013 0 0 0 defined $opts{'-render'} and not defined $opts{'render'}
1014 0 0 0 defined $opts{'-right'} and not defined $opts{'right'}
1015 0 0 0 defined $opts{'-center'} and not defined $opts{'center'}
1016 0 0 0 defined $opts{'-left'} and not defined $opts{'left'}
1017 0 0 0 defined $opts{'-align'} and not defined $opts{'align'}
1044 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

or 3 conditions

line l !l&&r !l&&!r condition
410 0 13 0 $hyphenate and @line == 1 or @line > 1
794 0 0 0 $align eq 'l' || $align eq 'j'
1044 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