Infrastructure/Config/YAML.pm

filter: Statementstmt 84.6% 11 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod n/a totaltotal 81.2% 13 / 16 CC 1 SCAR 2.9
CC
1
Cov
85%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Infrastructure/Compare.pm ↑ Summary Infrastructure/Config/Augeas.pm »
1 package Test::BDD::Infrastructure::Config::YAML;
2  
3 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 # ABSTRACT: configuration class for Test::BDD::Infrastructure
6 1 our $VERSION = '1.005'; # VERSION
7  
8 1 extends 'Test::BDD::Infrastructure::Config::Hash';
9  
10 1 ▶use YAML;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 1 has 'file' => ( is => 'ro', isa => 'Str', required => 1 );
13  
14 has 'config' => ( is => 'rw', lazy => 1, isa => 'HashRef',
15 0 ▶ default => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
16 0 my $self = shift;
17 0 return YAML::LoadFile( $self->file );
18 },
19 1 );
20  
21 1 1;
22  
23 __END__
« Infrastructure/Compare.pm ↑ Summary Infrastructure/Config/Augeas.pm »