Condition Coverage

blib/lib/Text/Layout/PDFAPI2.pm
Criterion Covered Total %
condition 27 154 17.5


and 2 conditions

line l !l condition
327 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/
194 1 0 0 $fragment->{'underline'} and $fragment->{'underline'} ne "none"
222 1 0 0 $fragment->{'overline'} and $fragment->{'overline'} ne "none"
287 1 2 0 $all and $font->can("extents")
377 3 0 0 $self->{'_width'} and $dir
3 0 0 $self->{'_width'} and $dir and $w < $self->{'_width'}
378 0 0 0 $dir eq "rtl" and !$align || $align eq 'left'
383 3 0 0 $self->{'_width'} and $align
3 0 0 $self->{'_width'} and $align and $w < $self->{'_width'}
480 19 0 0 $self->{'-dokern'} and $self->haveKernPairs
487 0 0 19 defined $ex and %$ex

or 2 conditions

line l !l condition
76 0 1 $self->{'_alignment'} // 0
284 0 3 $f->{'direction'} || 'ltr'
327 0 0 $xMin // 0
0 0 $yMin // 0
0 0 $xMax // 0
0 0 $yMax // 0
458 1 0 $size //= 1
514 5 0 $_ // 0
515 1 0 $_ // 0
553 0 0 $col ||= "magenta"
601 0 0 $x ||= 0
0 0 $y ||= 0
0 0 $d ||= 50
0 0 $col ||= "blue"
609 0 0 $col ||= "black"
610 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'}
161 1 0 0 $fragment->{'size'} || $self->{'_currentsize'}
195 0 0 0 $fragment->{'size'} || $self->{'_currentsize'}
197 0 0 0 $f->{'underline_position'} || $font->underlineposition
199 0 0 0 $f->{'underline_thickness'} || $font->underlinethickness
200 0 0 0 $fragment->{'underline_color'} // $fragment->{'color'}
211 0 0 0 $fragment->{'size'} || $self->{'_currentsize'}
217 0 0 0 $f->{'strikeline_thickness'} || $f->{'underline_thickness'} || $font->underlinethickness
218 0 0 0 $fragment->{'strikethrough_color'} // $fragment->{'color'}
223 0 0 0 $fragment->{'size'} || $self->{'_currentsize'}
226 0 0 0 $f->{'overline_thickness'} || $f->{'underline_thickness'} || $font->underlinethickness
230 0 0 0 $fragment->{'overline_color'} // $fragment->{'color'}
253 0 0 0 $fragment->{'size'} || $self->{'_currentsize'}
310 0 0 0 $xMin //= $w + $e->{'xMin'}
312 0 0 0 not defined $yMin or $e->{'yMin'} < $yMin
314 0 0 0 not defined $yMax or $e->{'yMax'} > $yMax
335 0 0 0 $xMin //= $e->{'xMin'}
337 0 0 0 not defined $yMin or $e->{'yMin'} < $yMin
339 0 0 0 not defined $yMax or $e->{'yMax'} > $yMax
369 0 3 0 $dir //= $mydir
378 0 0 0 !$align || $align eq 'left'
501 18 1 0 $xMin //= $width - $lastwidth + $e->{'xMin'}
502 1 3 15 not defined $yMin or $e->{'yMin'} < $yMin
503 1 0 18 not defined $yMax or $e->{'yMax'} > $yMax
551 0 0 0 $x //= $self->{'_lastx'}
552 0 0 0 $y //= $self->{'_lasty'}