| 1 | package Khonsu::Text::H1; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | 3 | ▶ | use parent 'Khonsu::Text'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | sub add { | ||||||||||||||||||||
| 6 | 104 | ▶ | my ($self, $file, %attributes) = @_; | ||||||||||||||||||
|
Subroutine
add: called CC=5 SCAR=17.0
Pod
undocumented
| |||||||||||||||||||||
| 7 | 104 | ▶ | $attributes{font}->{size} ||= 50; | ||||||||||||||||||
|
Condition50%1/2
$attributes{"font"}{"size"} ||= 50
MC/DC0%0/1
$attributes{"font"}{"size"} ||= 50
$attributes{"font"}{"size"}
Truth table50%1/2
A
A= $attributes{"font"}{"size"}
| |||||||||||||||||||||
| 8 | 104 | ▶ | $attributes{font}->{line_height} ||= 30; | ||||||||||||||||||
|
Condition50%1/2
$attributes{"font"}{"line_height"} ||= 30
MC/DC0%0/1
$attributes{"font"}{"line_height"} ||= 30
$attributes{"font"}{"line_height"}
Truth table50%1/2
A
A= $attributes{"font"}{"line_height"}
| |||||||||||||||||||||
| 9 | 104 | ▶ | $attributes{h} ||= $attributes{font}->{line_height}; | ||||||||||||||||||
|
Condition33%1/3
$attributes{"h"} ||= $attributes{"font"}{"line_height"}
MC/DC0%0/2
$attributes{"h"} ||= $attributes{"font"}{"line_height"}
$attributes{"h"}
$attributes{"font"}{"line_height"}
Truth table33%1/3
A ||= B
A= $attributes{"h"}B= $attributes{"font"}{"line_height"}
| |||||||||||||||||||||
| 10 | 104 | ▶ | $file->toc->outline($file, 'h1', %attributes) if $attributes{toc}; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 11 | 104 | return $self->SUPER::add($file, %attributes); | |||||||||||||||||||
| 12 | } | ||||||||||||||||||||
| 13 | |||||||||||||||||||||
| 14 | 3 | 1; | |||||||||||||||||||