File Coverage

blib/lib/Class/Scaffold/Delegate/Mixin.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 1 1 100.0
total 18 18 100.0


line stmt bran cond sub pod time code
1 2     2   4527 use 5.008;
  2         6  
  2         68  
2 2     2   22 use warnings;
  2         4  
  2         43  
3 2     2   9 use strict;
  2         3  
  2         86  
4              
5             package Class::Scaffold::Delegate::Mixin;
6             BEGIN {
7 2     2   97 $Class::Scaffold::Delegate::Mixin::VERSION = '1.102280';
8             }
9             # ABSTRACT: Mixin that provides access to the framework environment
10              
11             # Class::Scaffold::Base inherits from this mixin, so we shouldn't use()
12             # Class::Scaffold::Environment, which inherits from
13             # Class::Scaffold::Base, creating redefined() warnings. So we just
14             # require() it here.
15             sub delegate {
16 34     34 1 294 require Class::Scaffold::Environment;
17 34         178 Class::Scaffold::Environment->getenv;
18             }
19             1;
20              
21              
22             __END__