Scaffold/YAML/Active/Environment.pm

filter: Statementstmt 73.0% 19 / 26 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 87.5% 7 / 8 Podpod 100% 1 / 1 totaltotal 72.9% 27 / 37 CC 2 SCAR 7.5
CC
2
Cov
68%
yaml_activate
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.1
« Scaffold/YAML/Marshall/ExceptionContainer.pm ↑ Summary Scaffold/BusinessObject.pm »
1 1 ▶use 5.008;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package Class::Scaffold::YAML::Active::Environment;
6 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 $Class::Scaffold::YAML::Active::Environment::VERSION = '1.102280';
8 }
9 # ABSTRACT: Plugin for setting environment values
10 1 ▶use Class::Scaffold::Environment;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use YAML::Active qw/assert_hashref hash_activate yaml_NULL/;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use parent 'Class::Scaffold::YAML::Active';
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 0 ▶sub yaml_activate {
Subroutine yaml_activate: not called CC=2 SCAR=17.9
Pod documented
15 0 my ($self, $phase) = @_;
16 0 assert_hashref($self);
17 0 my $hash = hash_activate($self, $phase);
18 0 my $env = Class::Scaffold::Environment->getenv;
19 0 ▶ while (my ($key, $value) = each %$hash) {
Branch: 1 branch
BranchTrueFalseTotal
if (() = each %$hash) 0 0 0
20 0 $env->{$key} = $value;
21 }
22 0 yaml_NULL();
23 }
24 1 1;
25  
26  
27 __END__
« Scaffold/YAML/Marshall/ExceptionContainer.pm ↑ Summary Scaffold/BusinessObject.pm »