Template/Element/Backref.pm

filter: Statementstmt 70.0% 14 / 20 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 55.8% 19 / 34 CC 3 SCAR 16.3
CC
3
Cov
56%
resolve
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 5.1
« Template/Element/MergeRange.pm ↑ Summary Template/Element/Range.pm »
1 package Excel::Template::Element::Backref;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Spreadsheet::WriteExcel::Utility;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 BEGIN {
7 1 ▶ use vars qw(@ISA);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶ @ISA = qw(Excel::Template::Element);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 ▶ use Excel::Template::Element;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 }
12  
13 sub resolve
14 {
15 0 ▶ my $self = shift;
Subroutine resolve: not called CC=3 SCAR=24.8
Pod undocumented
16 0 my ($context) = @_;
17  
18 0 my $ref_name = $context->resolve($self, 'REF');
19  
20 0 my ($row, $col) = $context->get_last_reference( $ref_name );
21 0 ▶ return '' unless defined $row && defined $col;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $row and defined $col 0 0 0
Condition0%0/3
defined $row and defined $col
!ll&&!rl&&r
000
MC/DC0%0/2
defined $row and defined $col
defined $row defined $col
Truth table0%0/3
A and B
A= defined $rowB= defined $col
ABresult
0X0
100
111
22  
23 0 return xl_rowcol_to_cell( $row, $col );
24 }
25  
26 1 1;
27 __END__
« Template/Element/MergeRange.pm ↑ Summary Template/Element/Range.pm »