Branch Coverage

blib/lib/Text/Layout/PDFAPI2.pm
Criterion Covered Total %
branch 34 132 25.7


line true false branch
19 0 2 unless (@data == 1 and ref($data[0]) =~ /^PDF::(API2|Builder)\b/)
24 2 0 if (not $fc or $fc->{'__PDF__'} ne $data[0])
34 0 0 if defined $hb
46 3 1 if defined $f->{'_hb_checked'}
48 0 1 if ($f->get_shaping) { }
50 0 0 if ($f->{'font'}->can('fontfilename')) { }
51 0 0 if (_hb_init())
77 0 1 if ($self->{'_width'})
79 0 0 if ($w < $self->{'_width'})
80 0 0 if ($align eq 'right') { }
0 0 elsif ($align eq 'center') { }
94 0 1 unless length $fragment->{'text'}
99 0 1 unless ($font)
108 0 1 if (_hb_font_check($f)) { }
112 0 0 if $f->{'direction'}
113 0 0 if $f->{'language'}
120 0 0 if ($fragment->{'bgcolor'})
160 1 0 if ($t ne "")
163 0 1 if ($font->issymbol and $font->is_standard)
172 0 1 if ($fragment->{'bgcolor'})
199 0 1 unless $x > $x0
205 0 1 if ($fragment->{'underline'} and $fragment->{'underline'} ne "none")
212 0 0 if ($fragment->{'underline'} eq 'double') { }
221 0 1 if ($fragment->{'strikethrough'})
225 0 0 $f->{'strikeline_position'} ? :
233 0 1 if ($fragment->{'overline'} and $fragment->{'overline'} ne "none")
239 0 0 $f->{'overline_position'} ? :
242 0 0 if ($fragment->{'overline'} eq 'double') { }
263 0 1 if ($fragment->{'href'})
287 0 3 unless ($font)
298 0 3 if (_hb_font_check($f)) { }
0 3 elsif ($all and $font->can('extents')) { }
301 0 0 if $f->{'language'}
302 0 0 if $f->{'direction'}
308 0 0 if ($all) { }
321 0 0 if $e->{'width'}
323 0 0 if not defined $yMin or $e->{'yMin'} < $yMin
325 0 0 if not defined $yMax or $e->{'yMax'} > $yMax
338 0 0 if $all and 0
340 0 0 if $all
343 0 0 if ($all)
348 0 0 if not defined $yMin or $e->{'yMin'} < $yMin
350 0 0 if not defined $yMax or $e->{'yMax'} > $yMax
364 3 0 if $d0 < $d
365 3 0 if $a0 > $a
369 0 3 unless $dir eq $mydir
376 0 0 if ($self->{'_width'} and $dir and $w < $self->{'_width'})
377 0 0 if ($dir eq "rtl" and !$align || $align eq 'left')
382 0 0 if ($self->{'_width'} and $align and $w < $self->{'_width'})
384 0 0 if ($align eq 'right') { }
0 0 elsif ($align eq 'center') { }
387 0 0 if defined $xMin
388 0 0 if defined $xMax
393 0 0 if defined $xMin
394 0 0 if defined $xMax
398 0 3 defined $xMin ? :
406 0 2 if (my $f = $fc->{$font})
413 0 2 if ($font =~ /\.[ot]tf$/) { }
418 0 0 $fd->{'nosubset'} ? :
429 0 2 unless $ff
483 0 19 if ($self->{'-dokern'} and $self->haveKernPairs)
484 0 0 if ($self->kernPairCid($lastglyph, $n))
490 0 19 unless (defined $ex and %$ex)
505 4 15 if not defined $yMin or $e->{'yMin'} < $yMin
506 1 18 if not defined $yMax or $e->{'yMax'} > $yMax
510 1 0 if (defined $lastwidth) { }