PropertyDefinitions/Property/Nested.pm

filter: Statementstmt 73.3% 11 / 15 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 63.6% 14 / 22 CC 2 SCAR 11.0
CC
2
Cov
65%
raw
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« PropertyDefinitions/Property.pm ↑ Summary PropertyDefinitions/EntryType.pm »
1 package OPTIMADE::PropertyDefinitions::Property::Nested;
2  
3 # ABSTRACT: OPTIMADE Nested property
4 2 our $VERSION = '0.1.0'; # VERSION
5  
6 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 ▶use parent OPTIMADE::PropertyDefinitions::Property::;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 sub raw()
12 0 ▶{
Subroutine raw: not called CC=2 SCAR=17.9
Pod undocumented
13 0 my( $self ) = @_;
14 0 ▶ if( $self->parent->optimade_type eq 'list' ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->parent->optimade_type eq 'list') { } 0 0 0
15 0 return $self->parent->raw->{items}{properties}{$self->name};
16 } else {
17 0 return $self->parent->raw->{properties}{$self->name};
18 }
19 }
20  
21 2 1;
« PropertyDefinitions/Property.pm ↑ Summary PropertyDefinitions/EntryType.pm »