Branch Coverage

blib/lib/Mxpress/PDF.pm
Criterion Covered Total %
branch 85 144 59.0


line true false branch
21 2 0 @_ == 1 ? :
25 1 1 $self->page ? :
31 2 0 if $page->background
35 1 0 if ($self->onsave_cbs)
43 1 0 @_ == 3 ? :
58 2 0 @_ == 2 ? :
59 0 2 $args{'open'} ? :
66 0 2 $args{'is_rotated'} ? :
95 1 2 $self->can('file') ? :
103 0 8 $_ =~ /[^\d\.]/u ? :
105 14 5 $self->can('file') ? :
106 17 2 unless defined $x
107 17 2 unless defined $y
108 0 19 if $y =~ /current/u
109 5 12 $self->padding ? :
17 2 unless defined $w
110 17 2 unless defined $h
111 0 19 $xy ? :
117 2 1 if (defined $_->$check and $_->$check =~ /$val/u) { }
1 0 elsif ($_->$recurse and scalar @{$_->$recurse;}) { }
121 1 0 if $val
128 21 0 @_ == 1 ? :
136 7 0 @_ == 2 ? :
147 7 4 unless ($loaded->{$family})
155 1 0 @_ == 2 ? :
161 2 0 @_ == 1 ? :
181 1 0 @_ == 2 ? :
183 4 0 @_ == 2 ? :
200 0 28 $args{$_} ? :
203 11 0 @_ == 2 ? :
216 0 11 if $self->margin_top
220 11 11 unless (@paragraph)
221 11 0 unless scalar @paragraphs
223 0 0 if $self->paragraph_space
224 0 0 unless $ypos >= $y - $h
234 0 11 if ($self->align eq 'fulljustify' or $self->align eq 'justify' and @paragraph) { }
235 0 0 if (scalar @line == 1)
241 0 11 $self->align eq 'justify' ? :
245 0 11 if ($align eq 'justify') { }
249 0 0 if @line
252 0 11 if ($align eq 'right') { }
0 11 elsif ($align eq 'center') { }
260 0 11 if (@paragraph) { }
3 8 elsif ($self->pad) { }
261 0 0 if @paragraph
275 0 11 if scalar @paragraph
276 0 11 if $self->margin_bottom
278 0 11 if (scalar @paragraphs and $self->next_page)
284 0 11 if ($fl and $self->first_line_indent) { }
0 11 elsif ($fp and $self->first_paragraph_indent) { }
2 9 elsif ($self->indent) { }
303 0 42 if exists $width{$_}
310 1 0 @_ == 2 ? :
316 1 0 @_ == 2 ? :
322 1 0 @_ == 2 ? :
335 3 0 @_ == 3 ? :
365 0 15 $args{$_} ? :
368 3 0 @_ == 1 ? :
388 1 0 @_ == 2 ? :
398 1 0 $args{'font'} ? :
400 1 0 @_ == 1 ? :
402 0 1 $args{'title'} ? :
410 3 0 @_ == 1 ? :
416 3 3 if (defined $args{$_})
417 0 3 ref $args{$_} ? :
427 2 1 if $args{'level'}
428 2 1 $outline ? :
429 2 1 if ($outline) { }
437 1 0 @_ == 1 ? :
456 1 0 @_ == 2 ? :
457 0 1 $args{'plugins'} ? :
465 6 12 unless ($class)