Branch Coverage

blib/lib/Mxpress/PDF.pm
Criterion Covered Total %
branch 48 90 53.3


line true false branch
20 1 0 @_ == 1 ? :
29 1 0 if $page->background
48 1 0 @_ == 2 ? :
55 0 1 $args{'is_rotated'} ? :
84 0 6 $_ =~ /[^\d\.]/u ? :
86 2 2 unless defined $x
87 2 2 unless defined $y
88 0 4 if $y =~ /current/u
89 2 1 $x == $self->padding ? :
3 1 unless defined $w
90 3 1 unless defined $h
104 4 0 @_ == 1 ? :
112 3 0 @_ == 2 ? :
125 3 0 unless ($loaded->{$family})
136 1 0 @_ == 2 ? :
143 1 0 @_ == 1 ? :
163 1 0 @_ == 2 ? :
166 3 0 @_ == 2 ? :
180 2 1 $args{'padding'} ? :
184 3 0 @_ == 2 ? :
198 0 3 if $self->margin_top
202 3 3 unless (@paragraph)
203 3 0 unless scalar @paragraphs
205 0 0 if $self->paragraph_space
206 0 0 unless $ypos >= $y - $h
218 0 3 if ($self->align eq 'fulljustify' or $self->align eq 'justify' and @paragraph) { }
219 0 0 if (scalar @line == 1)
225 0 3 $self->align eq 'justify' ? :
229 0 3 if ($align eq 'justify') { }
233 0 0 if @line
236 0 3 if ($align eq 'right') { }
0 3 elsif ($align eq 'center') { }
244 0 3 if @paragraph
247 0 3 if scalar @paragraph
248 0 3 if $self->margin_bottom
250 0 3 if (scalar @paragraphs and $self->next_page)
257 0 3 if ($fl and $self->first_line_indent) { }
0 3 elsif ($fp and $self->first_paragraph_indent) { }
0 3 elsif ($self->indent) { }
277 0 12 if exists $width{$_}
286 1 0 @_ == 2 ? :
293 1 0 @_ == 2 ? :
301 1 0 @_ == 2 ? :
302 0 1 $args{'plugins'} ? :
315 4 0 if (not $class) { }