Template/Container/Row.pm

filter: Statementstmt 52.3% 11 / 21 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod 0.0% 0 / 2 totaltotal 45.4% 15 / 33 CC 3 SCAR 16.6
CC
3
Cov
44%
render
12.0
deltas
2.0
BEGIN
1.0
CRAP 5.2
« Template/Element/Image.pm ↑ Summary Template/Element/MergeRange.pm »
1 package Excel::Template::Container::Row;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 BEGIN {
6 1 ▶ use vars qw(@ISA);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶ @ISA = qw(Excel::Template::Container);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶ use Excel::Template::Container;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 }
11  
12 sub render
13 {
14 0 ▶ my $self = shift;
Subroutine render: not called CC=3 SCAR=24.8
Pod undocumented
15 0 my ($context) = @_;
16  
17 0 $context->{COL} = 0;
18  
19 # Apply the height to the current row
20 0 ▶ if (my $height = $context->get($self, 'HEIGHT'))
Branch: 1 branch
BranchTrueFalseTotal
if (my $height = $context->get($self, "HEIGHT")) 0 0 0
21 {
22 0 $height =~ s/\D//g;
23 0 $height *= 1;
24 0 ▶ if ($height > 0)
Branch: 1 branch
BranchTrueFalseTotal
if ($height > 0) 0 0 0
25 {
26 0 $context->active_worksheet->set_row(
27 $context->get( $self, 'ROW' ),
28 $height,
29 );
30 }
31 }
32  
33 0 return $self->SUPER::render($context);
34 }
35  
36 sub deltas
37 {
38 return {
39 0 ▶ ROW => +1,
Subroutine deltas: not called CC=1 SCAR=6.9
Pod undocumented
40 };
41 }
42  
43 1 1;
44 __END__
« Template/Element/Image.pm ↑ Summary Template/Element/MergeRange.pm »