Khonsu/Text/H5.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond 42.8% 3 / 7 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 100% 2 / 2 Podpod 0.0% 0 / 1 totaltotal 60.8% 14 / 23 CC 4 SCAR 13.5
CC
4
Cov
75%
add
4.6
BEGIN
1.0
CRAP 3.9
« Khonsu/Text/H4.pm ↑ Summary Khonsu/Text/H6.pm »
1 package Khonsu::Text::H5;
2  
3 2 ▶use parent 'Khonsu::Text';
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 sub add {
6 1 ▶ my ($self, $file, %attributes) = @_;
Subroutine add: called CC=4 SCAR=15.2
Pod undocumented
7 1 ▶ $attributes{font}->{size} ||= 20;
Condition50%1/2
$attributes{"font"}{"size"} ||= 20
l!l
01
MC/DC0%0/1
$attributes{"font"}{"size"} ||= 20
$attributes{"font"}{"size"}
Truth table50%1/2
A
A= $attributes{"font"}{"size"}
Aresult
11
00
8 1 ▶ $attributes{font}->{line_height} ||= 16;
Condition50%1/2
$attributes{"font"}{"line_height"} ||= 16
l!l
01
MC/DC0%0/1
$attributes{"font"}{"line_height"} ||= 16
$attributes{"font"}{"line_height"}
Truth table50%1/2
A
A= $attributes{"font"}{"line_height"}
Aresult
11
00
9 1 ▶ $attributes{h} ||= %attributes{font}->{line_height};
Condition33%1/3
$attributes{"h"} ||= %attributes{"font"}->{"line_height"}
l!l&&r!l&&!r
010
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"}
ABresult
1X1
011
000
10 1 return $self->SUPER::add($file, %attributes);
11 }
12  
13 2 1;
« Khonsu/Text/H4.pm ↑ Summary Khonsu/Text/H6.pm »