Branch Coverage

blib/lib/PDF/TextBlock.pm
Criterion Covered Total %
branch 0 96 0.0


line true false branch
241 0 0 unless (ref $pdf eq 'PDF::API2' or ref $pdf eq 'PDF::Builder')
255 0 0 if $content_texts{$tag}
258 0 0 if ($self->fonts and $self->fonts->{$tag}) { }
0 0 elsif ($self->fonts and $self->fonts->{'default'}) { }
259 0 0 if $debug
262 0 0 if $debug
265 0 0 if $debug
278 0 0 if ($self->align eq 'text_right')
301 0 0 if exists $width{$word}
302 0 0 if (($tag) = $word =~ /<(.*?)>/)
303 0 0 unless ($tag =~ m[/])
304 0 0 unless ($content_texts{$tag})
316 0 0 if ($tag and $tag =~ m[^/])
333 0 0 unless (@paragraph)
334 0 0 unless scalar @paragraphs
338 0 0 if $self->parspace
339 0 0 unless $ypos >= $self->y - $self->h
351 0 0 if ($first_line and defined $self->hang) { }
0 0 elsif ($first_line and defined $self->flindent) { }
0 0 elsif ($first_paragraph and defined $self->fpindent) { }
0 0 elsif (defined $self->indent) { }
359 0 0 if $first_paragraph
385 0 0 if ($self->align eq 'fulljustify' or $self->align eq 'justify' and @paragraph) { }
388 0 0 if (scalar @line == 1)
395 0 0 $self->align eq 'justify' ? :
402 0 0 if ($align eq 'justify' or grep /<.*>/, @line) { }
405 0 0 if ($align eq 'center') { }
0 0 elsif ($align eq 'right') { }
414 0 0 if (($tag) = $word =~ /<(.*?)>/)
416 0 0 if ($tag =~ /^href[a-z]?/) { }
0 0 elsif (not $tag =~ m[/]) { }
418 0 0 if ref $content_texts{$tag}
426 0 0 if $debug
429 0 0 if ($href) { }
439 0 0 if ($word =~ m[
454 0 0 unless ($width{$word})
455 0 0 if $debug
458 0 0 if @line
460 0 0 if ($word =~ m[/])
461 0 0 if ($word =~ m[/href[a-z]?])
464 0 0 unless ($href)
472 0 0 if ($align eq 'right') { }
0 0 elsif ($align eq 'center') { }
478 0 0 if $debug
489 0 0 if scalar @paragraph
543 0 0 unless defined $self->$att
547 0 0 unless (defined $self->page)
552 0 0 unless (defined $self->text)