Condition Coverage

blib/lib/Text/Layout/PDFAPI2.pm
Criterion Covered Total %
condition 30 169 17.7


and 2 conditions

line l !l condition
338 0 0 $all and 0

and 3 conditions

line !l l&&!r l&&r condition
19 0 0 2 @data == 1 and ref($data[0]) =~ /^PDF::(API2|Builder)\b/
163 1 0 0 $font->issymbol and $font->is_standard
205 1 0 0 $fragment->{'underline'} and $fragment->{'underline'} ne "none"
233 1 0 0 $fragment->{'overline'} and $fragment->{'overline'} ne "none"
298 1 2 0 $all and $font->can("extents")
376 3 0 0 $self->{'_width'} and $dir
3 0 0 $self->{'_width'} and $dir and $w < $self->{'_width'}
377 0 0 0 $dir eq "rtl" and !$align || $align eq 'left'
382 3 0 0 $self->{'_width'} and $align
3 0 0 $self->{'_width'} and $align and $w < $self->{'_width'}
483 19 0 0 $self->{'-dokern'} and $self->haveKernPairs
490 0 0 19 defined $ex and %$ex

or 2 conditions

line l !l condition
76 0 1 $self->{'_alignment'} // 0
295 0 3 $f->{'direction'} || 'ltr'
338 0 0 $xMin // 0
0 0 $yMin // 0
0 0 $xMax // 0
0 0 $yMax // 0
461 1 0 $size //= 1
517 5 0 $_ // 0
518 1 0 $_ // 0
556 0 0 $col ||= "magenta"
604 0 0 $x ||= 0
0 0 $y ||= 0
0 0 $d ||= 50
0 0 $col ||= "blue"
612 0 0 $col ||= "black"
613 0 0 $lw ||= "0.5"

or 3 conditions

line l !l&&r !l&&!r condition
24 2 0 0 not $fc or $fc->{'__PDF__'} ne $data[0]
106 1 0 0 $fragment->{'size'} || $self->{'_currentsize'}
110 0 0 0 $fragment->{'size'} || $self->{'_currentsize'}
116 0 0 0 $fragment->{'size'} || $self->{'_currentsize'}
169 1 0 0 $fragment->{'size'} || $self->{'_currentsize'}
206 0 0 0 $fragment->{'size'} || $self->{'_currentsize'}
208 0 0 0 $f->{'underline_position'} || $font->underlineposition
210 0 0 0 $f->{'underline_thickness'} || $font->underlinethickness
211 0 0 0 $fragment->{'underline_color'} // $fragment->{'color'}
222 0 0 0 $fragment->{'size'} || $self->{'_currentsize'}
228 0 0 0 $f->{'strikeline_thickness'} || $f->{'underline_thickness'} || $font->underlinethickness
229 0 0 0 $fragment->{'strikethrough_color'} // $fragment->{'color'}
234 0 0 0 $fragment->{'size'} || $self->{'_currentsize'}
237 0 0 0 $f->{'overline_thickness'} || $f->{'underline_thickness'} || $font->underlinethickness
241 0 0 0 $fragment->{'overline_color'} // $fragment->{'color'}
264 0 0 0 $fragment->{'size'} || $self->{'_currentsize'}
321 0 0 0 $xMin //= $w + $e->{'xMin'}
323 0 0 0 not defined $yMin or $e->{'yMin'} < $yMin
325 0 0 0 not defined $yMax or $e->{'yMax'} > $yMax
346 0 0 0 $xMin //= $e->{'xMin'}
348 0 0 0 not defined $yMin or $e->{'yMin'} < $yMin
350 0 0 0 not defined $yMax or $e->{'yMax'} > $yMax
368 0 3 0 $dir //= $mydir
377 0 0 0 !$align || $align eq 'left'
408 0 0 0 $fd->{'ascender'} //= $f->ascender
409 0 0 0 $fd->{'descender'} //= $f->descender
432 0 2 0 $fd->{'ascender'} //= $ff->ascender
433 0 2 0 $fd->{'descender'} //= $ff->descender
504 18 1 0 $xMin //= $width - $lastwidth + $e->{'xMin'}
505 1 3 15 not defined $yMin or $e->{'yMin'} < $yMin
506 1 0 18 not defined $yMax or $e->{'yMax'} > $yMax
554 0 0 0 $x //= $self->{'_lastx'}
555 0 0 0 $y //= $self->{'_lasty'}