| 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'
MC/DC100%1/1
ref $structure || 'Scalar'
ref $structure
Truth table100%2/2
A
A= ref $structure
| |||||||||||||
| 14 | 40 | "Data::YADV::Structure::$type"->new($structure, $path, $parent); | |||||||||||
| 15 | } | ||||||||||||
| 16 | |||||||||||||
| 17 | 1 | 1; | |||||||||||