Yak/RequiredConfig.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod n/a totaltotal 100% 29 / 29 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Yak/LazyConfig.pm ↑ Summary
1 package Config::Yak::RequiredConfig;
2 {
3 4 $Config::Yak::RequiredConfig::VERSION = '0.23';
4 }
5 4 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
6 4 $Config::Yak::RequiredConfig::AUTHORITY = 'cpan:TEX';
7 }
8 # ABSTRACT: a role to provide an required config attribute
9  
10 4 ▶use 5.010_000;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 4 ▶use mro 'c3';
Subroutine BEGIN: called CC=1 SCAR=0.0
12 4 ▶use feature ':5.10';
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 4 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 4 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 # use IO::Handle;
18 # use autodie;
19 # use MooseX::Params::Validate;
20 # use Carp;
21 # use English qw( -no_match_vars );
22 # use Try::Tiny;
23  
24 # extends ...
25 # has ...
26 4 has 'config' => (
27 'is' => 'rw',
28 'isa' => 'Config::Yak',
29 'required' => 1,
30 );
31  
32 # with ...
33 # initializers ...
34 # requires ...
35  
36 # your code here ...
37  
38 4 ▶no Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
39  
40 4 1;
41  
42 __END__
« Yak/LazyConfig.pm ↑ Summary