Branch Coverage

blib/lib/PDF/Make/Builder/Text.pm
Criterion Covered Total %
branch 41 50 82.0


line true false branch
29 75 277 if ($overrides)
53 0 352 if not defined $line_spacing or $line_spacing < 0
57 0 352 if not defined $pad or $pad < 0
60 0 352 if $text_w < 1
65 343 9 unless (defined $cy)
73 3 349 if ($ind > 0)
80 0 352 unless @words
88 352 14222 $line eq '' ? :
90 2598 11976 $first_line ? :
93 649 13925 if ($test_w > $max_w and $line ne '') { }
103 352 0 if $line ne ""
114 15 986 if ($cy - $lh < $page->bottom_y)
116 3 12 if ($page->has_next_column) { }
4 8 elsif ($can_overflow) { }
121 0 3 if $text_w < 1
141 0 4 if $text_w < 1
153 344 649 $is_first ? :
154 6 987 if ($al eq 'center') { }
4 983 elsif ($al eq 'right') { }
164 4 989 if ($pad_char and length $pad_char)
167 1 3 length $pad_end_text ? :
169 4 0 if ($gap > $pad_w)
172 1 3 if length $pad_end_text
184 649 344 if $idx < $#lines
190 352 0 if (@lines)