Condition Coverage

blib/lib/Text/Layout/PDFAPI2.pm
Criterion Covered Total %
condition 28 157 17.8


and 2 conditions

line l !l condition
335 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
202 1 0 0 $fragment->{'underline'} and $fragment->{'underline'} ne "none"
230 1 0 0 $fragment->{'overline'} and $fragment->{'overline'} ne "none"
295 1 2 0 $all and $font->can("extents")
385 3 0 0 $self->{'_width'} and $dir
3 0 0 $self->{'_width'} and $dir and $w < $self->{'_width'}
386 0 0 0 $dir eq "rtl" and !$align || $align eq 'left'
391 3 0 0 $self->{'_width'} and $align
3 0 0 $self->{'_width'} and $align and $w < $self->{'_width'}
488 19 0 0 $self->{'-dokern'} and $self->haveKernPairs
495 0 0 19 defined $ex and %$ex

or 2 conditions

line l !l condition
76 0 1 $self->{'_alignment'} // 0
292 0 3 $f->{'direction'} || 'ltr'
335 0 0 $xMin // 0
0 0 $yMin // 0
0 0 $xMax // 0
0 0 $yMax // 0
466 1 0 $size //= 1
522 5 0 $_ // 0
523 1 0 $_ // 0
561 0 0 $col ||= "magenta"
609 0 0 $x ||= 0
0 0 $y ||= 0
0 0 $d ||= 50
0 0 $col ||= "blue"
617 0 0 $col ||= "black"
618 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'}
203 0 0 0 $fragment->{'size'} || $self->{'_currentsize'}
205 0 0 0 $f->{'underline_position'} || $font->underlineposition
207 0 0 0 $f->{'underline_thickness'} || $font->underlinethickness
208 0 0 0 $fragment->{'underline_color'} // $fragment->{'color'}
219 0 0 0 $fragment->{'size'} || $self->{'_currentsize'}
225 0 0 0 $f->{'strikeline_thickness'} || $f->{'underline_thickness'} || $font->underlinethickness
226 0 0 0 $fragment->{'strikethrough_color'} // $fragment->{'color'}
231 0 0 0 $fragment->{'size'} || $self->{'_currentsize'}
234 0 0 0 $f->{'overline_thickness'} || $f->{'underline_thickness'} || $font->underlinethickness
238 0 0 0 $fragment->{'overline_color'} // $fragment->{'color'}
261 0 0 0 $fragment->{'size'} || $self->{'_currentsize'}
318 0 0 0 $xMin //= $w + $e->{'xMin'}
320 0 0 0 not defined $yMin or $e->{'yMin'} < $yMin
322 0 0 0 not defined $yMax or $e->{'yMax'} > $yMax
343 0 0 0 $xMin //= $e->{'xMin'}
345 0 0 0 not defined $yMin or $e->{'yMin'} < $yMin
347 0 0 0 not defined $yMax or $e->{'yMax'} > $yMax
377 0 3 0 $dir //= $mydir
386 0 0 0 !$align || $align eq 'left'
509 18 1 0 $xMin //= $width - $lastwidth + $e->{'xMin'}
510 1 3 15 not defined $yMin or $e->{'yMin'} < $yMin
511 1 0 18 not defined $yMax or $e->{'yMax'} > $yMax
559 0 0 0 $x //= $self->{'_lastx'}
560 0 0 0 $y //= $self->{'_lasty'}