| 1 | package PDF::Make::Builder::Text::H6; | ||||||||||||||||||||||||||||
| 2 | 53 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 3 | 53 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | 53 | ▶ | use Object::Proto; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||
| 6 | 53 | ▶ | BEGIN { | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 7 | 53 | Object::Proto::define('PDF::Make::Builder::Text::H6', | |||||||||||||||||||||||||||
| 8 | extends => 'PDF::Make::Builder::Text', | ||||||||||||||||||||||||||||
| 9 | 'toc:Bool:default(0)', | ||||||||||||||||||||||||||||
| 10 | ); | ||||||||||||||||||||||||||||
| 11 | 53 | Object::Proto::import_accessors('PDF::Make::Builder::Text::H6'); | |||||||||||||||||||||||||||
| 12 | } | ||||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||
| 14 | 3 | ▶ | sub add { | ||||||||||||||||||||||||||
|
Subroutine
add: called CC=6 SCAR=20.5
Pod
documented
| |||||||||||||||||||||||||||||
| 15 | 3 | my ($self, $builder) = @_; | |||||||||||||||||||||||||||
| 16 | 3 | ▶ | my $f = font $self // {}; | ||||||||||||||||||||||||||
|
Condition50%1/2
$self // {}
MC/DC0%0/1
$self // {}
$self
Truth table50%1/2
A
A= $self
| |||||||||||||||||||||||||||||
| 17 | 3 | ▶ | $f->{size} //= 15; | ||||||||||||||||||||||||||
|
Condition50%1/2
$f->{"size"} //= 15
MC/DC0%0/1
$f->{"size"} //= 15
$f->{"size"}
Truth table50%1/2
A
A= $f->{"size"}
| |||||||||||||||||||||||||||||
| 18 | 3 | ▶ | $f->{line_height} //= 19; | ||||||||||||||||||||||||||
|
Condition50%1/2
$f->{"line_height"} //= 19
MC/DC0%0/1
$f->{"line_height"} //= 19
$f->{"line_height"}
Truth table50%1/2
A
A= $f->{"line_height"}
| |||||||||||||||||||||||||||||
| 19 | 3 | font $self, $f; | |||||||||||||||||||||||||||
| 20 | |||||||||||||||||||||||||||||
| 21 | 3 | ▶ | if ($self->toc && $builder->toc) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$self->toc and $builder->toc
MC/DC0%0/2
$self->toc and $builder->toc
$self->toc
$builder->toc
Truth table33%1/3
A and B
A= $self->tocB= $builder->toc
| |||||||||||||||||||||||||||||
| 22 | 0 | $builder->toc->outline($builder, 6, | |||||||||||||||||||||||||||
| 23 | text => PDF::Make::Builder::Text::text($self), | ||||||||||||||||||||||||||||
| 24 | page_num => $builder->page->num, | ||||||||||||||||||||||||||||
| 25 | ); | ||||||||||||||||||||||||||||
| 26 | } | ||||||||||||||||||||||||||||
| 27 | |||||||||||||||||||||||||||||
| 28 | 3 | return $self->SUPER::add($builder); | |||||||||||||||||||||||||||
| 29 | } | ||||||||||||||||||||||||||||
| 30 | |||||||||||||||||||||||||||||
| 31 | 53 | 1; | |||||||||||||||||||||||||||
| 32 | |||||||||||||||||||||||||||||
| 33 | __END__ | ||||||||||||||||||||||||||||