Infrastructure/Config/Augeas.pm

filter: Statementstmt 66.6% 4 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 75.0% 6 / 8 CC 1 SCAR 1.4
CC
1
Cov
67%
BEGIN
1.3
BEGIN
1.0
CRAP 1.1
« Infrastructure/Config/YAML.pm ↑ Summary Infrastructure.pm »
1 package Test::BDD::Infrastructure::Config::Augeas;
2  
3 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 # ABSTRACT: configuration class for Test::BDD::Infrastructure
6 our $VERSION = '1.005'; # VERSION
7  
8 0 ▶use Config::Augeas;
Subroutine BEGIN: called CC=1 SCAR=2.6
9  
10 has 'root' => ( is => 'ro', isa => 'Str', default => '/' );
11  
12 has '_aug' => (
13 is => 'ro', isa => 'Config::Augeas', lazy => 1,
14 default => sub {
15 my $self = shift;
16 return Config::Augeas->new(
17 root => $self->root,
18 );
19 },
20 handles => {
21 'get' => 'get',
22 'get_node' => 'match',
23 },
24 );
25  
26 1;
27  
28 __END__
« Infrastructure/Config/YAML.pm ↑ Summary Infrastructure.pm »