YADV/Structure.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond 100% 2 / 2 MC/DCmcdc 100% 1 / 1 Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 96.5% 28 / 29 CC 2 SCAR 2.5
CC
2
Cov
100%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« YADV/Structure/Array.pm ↑ Summary YADV/Structure/Scalar.pm »
1 package Data::YADV::Structure;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use Data::YADV::Structure::Array;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Data::YADV::Structure::Hash;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use Data::YADV::Structure::Scalar;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 40 ▶sub new {
Subroutine new: called CC=2 SCAR=6.9
Pod undocumented
11 40 my ($class, $structure, $path, $parent) = @_;
12  
13 40 ▶ my $type = ucfirst(lc(ref($structure) || 'Scalar'));
Condition100%2/2
ref $structure || 'Scalar'
l!l
337
MC/DC100%1/1
ref $structure || 'Scalar'
ref $structure
Truth table100%2/2
A
A= ref $structure
Aresult
11
00
14 40 "Data::YADV::Structure::$type"->new($structure, $path, $parent);
15 }
16  
17 1 1;
« YADV/Structure/Array.pm ↑ Summary YADV/Structure/Scalar.pm »