Condition Coverage

blib/lib/Mxpress/PDF.pm
Criterion Covered Total %
condition 65 155 41.9


and 2 conditions

line l !l condition
117 0 1 $_->$recurse and scalar @{$_->$recurse;}

and 3 conditions

line !l l&&!r l&&r condition
117 0 1 2 defined $_->$check and $_->$check =~ /$val/u
129 6 2 0 $self->can($_) and $self->$_($args{$_})
229 11 0 42 @paragraph and $line_width + scalar(@line) * $space_width + $width{$paragraph[0]} < $lw
234 11 0 0 $self->align eq 'justify' and @paragraph
278 11 0 0 scalar @paragraphs and $self->next_page
284 0 11 0 $fl and $self->first_line_indent
0 11 0 $fp and $self->first_paragraph_indent

or 2 conditions

line l !l condition
44 0 1 $self->onsave_cbs || []
66 1 1 $args{'num'} || 1
141 7 0 $args{'colour'} || '#000'
3 4 $args{'size'} || 9
148 0 7 $enc || 'latin1'
159 0 1 $args{'fill_colour'} || '#fff'
0 1 $args{'padding'} || 0
164 0 2 $self->position || [0, 0, $self->file->page->w * 0.35277777777777775, $self->file->page->h * 0.35277777777777775]
200 0 4 $args{'position'} || []
217 11 0 shift @paragraphs || ''
311 0 1 $args{'font'}{'size'} ||= 50
312 0 1 $args{'font'}{'line_height'} ||= 40
317 0 1 $args{'font'}{'size'} ||= 25
318 0 1 $args{'font'}{'line_height'} ||= 20
323 0 1 $args{'font'}{'size'} ||= 20
324 0 1 $args{'font'}{'line_height'} ||= 15
336 0 3 $args{'position'} || []
365 2 1 $args{'level'} || 0
0 3 $args{'pad'} || '.'
0 3 $args{'padding'} || 0
0 3 $args{'align'} || 'left'
0 3 $args{'position'} || []
398 0 1 $args{'toc_line_offset'} || 0
0 1 $args{'padding'} || 0
0 1 $args{'indent'} || 5
405 0 1 $args{'position'} || []
490 1 0 $args{'page'} || {}

or 3 conditions

line l !l&&r !l&&!r condition
21 2 0 0 ref $self || $self
34 1 0 0 ref $self || $self
43 1 0 0 ref $self || $self
80 0 0 0 ref $self || $self
92 0 0 0 ref $self || $self
94 3 0 0 ref $self || $self
101 19 0 0 ref $self || $self
112 8 0 0 ref $self || $self
114 3 0 0 ref $self || $self
128 21 0 0 ref $self || $self
145 11 0 0 ref $self || $self
11 0 0 ref $self || $self
161 2 0 0 ref $self || $self
183 0 4 0 ref $self || $self
187 0 0 0 ref $self || $self
203 11 0 0 ref $self || $self
234 0 0 11 $self->align eq 'fulljustify' or $self->align eq 'justify' and @paragraph
283 11 0 0 ref $self || $self
295 11 0 0 ref $self || $self
365 0 3 0 $args{'next_page'} || do { 'MooX::Press'->wrap_coderef({'caller', 'Mxpress::PDF', 'code', sub { my $self = $_[0]; my $class = ref $self || $self; do { my $self = shift(); $file->add_page('open', 1); $file->page->set_position($file->toc->parse_position([])); return $file->page }; } , 'optimize', 0}) }
368 3 0 0 ref $self || $self
400 1 0 0 ref $self || $self
410 3 0 0 ref $self || $self
419 1 2 0 $args{'title'} ||= $text
425 0 3 0 $args{'font'} ||= $self->font
437 1 0 0 ref $self || $self