Branch Coverage

blib/lib/PDF/Create/Page.pm
Criterion Covered Total %
branch 29 116 25.0


line true false branch
84 47 43 unless scalar @{$self->{'Kids'};}
120 14 24 if scalar @t
363 0 4 unless defined $b
406 0 0 if (defined $params{'start'})
409 0 0 if (defined $params{'F'})
414 0 0 if (defined $params{'Tf'})
416 0 0 if (defined $params{'Ts'})
418 0 0 if (defined $params{'Tr'})
420 0 0 if (defined $params{'TL'})
422 0 0 if (defined $params{'Tc'})
424 0 0 if (defined $params{'Tw'}) { }
426 0 0 if (defined $params{'Tz'})
428 0 0 if (defined $params{'Td'})
430 0 0 if (defined $params{'TD'})
435 0 0 if (defined $params{'rot'})
437 0 0 unless $x > 0
438 0 0 unless $y > 0
445 0 0 if (defined $params{'T*'})
447 0 0 if (defined $params{'text'})
452 0 0 if (defined $params{'end'})
487 6 4 unless defined $align
489 1 9 if (uc $align eq 'R') { }
2 7 elsif (uc $align eq 'C') { }
501 0 10 if (defined $char_spacing and $char_spacing =~ /[0-9]+\.?[0-9]*/)
505 0 10 if (defined $word_spacing and $word_spacing =~ /[0-9]+\.?[0-9]*/)
540 2 4 unless defined $align
543 1 5 if (uc $align eq 'R') { }
2 3 elsif (uc $align eq 'C') { }
612 0 74 unless defined $string
615 0 74 unless defined $font_widths->{$fname}[77]
644 0 0 if defined $font
645 0 0 unless defined $self->{'current_font'}
648 0 0 if defined $y
649 0 0 unless defined $self->{'current_y'}
650 0 0 unless defined $self->{'current_y'}
651 0 0 if defined $x
652 0 0 unless defined $self->{'current_x'}
653 0 0 if defined $size
654 0 0 unless defined $self->{'current_size'}
728 0 0 unless defined $params and ref $params eq 'HASH'
746 0 0 if exists $params->{'para_space_factor'} and defined $params->{'para_space_factor'}
763 0 0 if ($string_width + $one_space < $line_width)
764 0 0 if (scalar @words > $num_words)
770 0 0 if $num_words == 1
774 0 0 if ($string_width + $one_space > $line_width or $para_last_line)
775 0 0 unless ($para_last_line)
797 0 0 if ($para_last_line)
803 0 0 if ($y <= $end_y) { }
810 0 0 if ($para_last_line)
880 0 2 if ($xalign == 1) { }
0 2 elsif ($xalign == 2) { }
886 0 2 if ($yalign == 1) { }
0 2 elsif ($yalign == 2) { }
897 2 0 if $xpos or $ypos
900 0 2 if ($rotate)
905 2 0 if ($xscale or $yscale)
908 0 2 if ($xskew or $yskew)
938 0 0 if (scalar @$words < $num_words)