Weaver/Config.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 95.6% 22 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Weaver/Role/StringFromComment.pm ↑ Summary Weaver/PluginBundle/CorePrep.pm »
1 package Pod::Weaver::Config 4.022;
2 # ABSTRACT: stored configuration loader role
3  
4 10 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 10 ▶use Config::MVP 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 10 ▶use Pod::Weaver::Config::Assembler;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 10 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 #pod =head1 DESCRIPTION
12 #pod
13 #pod The config role provides some helpers for writing a configuration loader using
14 #pod the L<Config::MVP|Config::MVP> system to load and validate its configuration.
15 #pod
16 #pod =attr assembler
17 #pod
18 #pod The L<assembler> attribute must be a Config::MVP::Assembler, has a sensible
19 #pod default that will handle the standard needs of a config loader. Namely, it
20 #pod will be pre-loaded with a starting section for root configuration.
21 #pod
22 #pod =cut
23  
24 1 ▶sub build_assembler {
Subroutine build_assembler: called CC=1 SCAR=0.0
Pod undocumented
25 1 my $assembler = Pod::Weaver::Config::Assembler->new;
26  
27 1 my $root = $assembler->section_class->new({
28 name => '_',
29 });
30  
31 1 $assembler->sequence->add_section($root);
32  
33 1 return $assembler;
34 }
35  
36 10 1;
37  
38 __END__
« Weaver/Role/StringFromComment.pm ↑ Summary Weaver/PluginBundle/CorePrep.pm »