Template/Container/Format.pm

filter: Statementstmt 56.0% 14 / 25 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 55.8% 19 / 34 CC 2 SCAR 8.9
CC
2
Cov
52%
render
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.4
« Template/Base.pm ↑ Summary Template/Element/FreezePanes.pm »
1 package Excel::Template::Container::Format;
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 1 ▶use Excel::Template::Format;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 sub render
15 {
16 0 ▶ my $self = shift;
Subroutine render: not called CC=2 SCAR=17.9
Pod undocumented
17 0 my ($context) = @_;
18  
19 0 my $old_format = $context->active_format;
20  
21 0 my %values;
22 0 ▶ while ( my ($k, $v) = each %$self ) {
Branch: 1 branch
BranchTrueFalseTotal
if (() = each %$self) 0 0 0
23 0 $values{$k} = $context->resolve( $self, $k );
24 }
25  
26 0 my $format = $context->format_object->copy(
27 $context, $old_format, %values,
28 );
29 0 $context->active_format($format);
30  
31 0 my $child_success = $self->iterate_over_children($context);
32  
33 0 $context->active_format($old_format);
34  
35 0 return $child_success;
36 }
37  
38 1 1;
39 __END__
« Template/Base.pm ↑ Summary Template/Element/FreezePanes.pm »