AdventCalendar/Config.pm untested

filter: Statementstmt 0.0% 0 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 37 SCAR 6.9
CC
1
Cov
0%
expand_package
2.0
build_assembler
2.0
BEGIN
2.0
CRAP 2.0
1 package WWW::AdventCalendar::Config 1.113;
2 # ABSTRACT: Config::MVP-based configuration reader for WWW::AdventCalendar
3  
4 use Moose;
5 extends 'Config::MVP::Reader::INI';
6  
7 use namespace::autoclean;
8  
9 #pod =head1 DESCRIPTION
10 #pod
11 #pod You probably want to read about L<WWW::AdventCalendar> or L<Config::MVP>.
12 #pod
13 #pod This is just a L<Config::MVP::Reader::INI> subclass that will begin its
14 #pod assembler in a section named "C<_>" with a few multivalue args and aliases
15 #pod pre-configured.
16 #pod
17 #pod Apart from that, there is nothing to say.
18 #pod
19 #pod =cut
20  
21 use Config::MVP::Assembler;
22  
23 {
24   package
25     WWW::AdventCalendar::Config::Assembler;
26   use Moose;
27   extends 'Config::MVP::Assembler';
28   use namespace::autoclean;
29   sub expand_package { return undef }
30 }
31  
32 {
33   package
34     WWW::AdventCalendar::Config::Palette;
35   $INC{'WWW/AdventCalendar/Config/Palette.pm'} = 1;
36 }
37  
38 sub build_assembler {
39   my $assembler = WWW::AdventCalendar::Config::Assembler->new;
40  
41   my $section = $assembler->section_class->new({
42     name => '_',
43     aliases => {
44       category => 'categories',
45       css_href => 'css_hrefs',
46     },
47     multivalue_args => [ qw( categories css_hrefs ) ],
48   });
49   $assembler->sequence->add_section($section);
50  
51   return $assembler;
52 }
53  
54 1;
55  
56 __END__
57
58 =pod
59
60 =encoding UTF-8
61
62 =head1 NAME
63
64 WWW::AdventCalendar::Config - Config::MVP-based configuration reader for WWW::AdventCalendar
65
66 =head1 VERSION
67
68 version 1.113
69
70 =head1 DESCRIPTION
71
72 You probably want to read about L<WWW::AdventCalendar> or L<Config::MVP>.
73
74 This is just a L<Config::MVP::Reader::INI> subclass that will begin its
75 assembler in a section named "C<_>" with a few multivalue args and aliases
76 pre-configured.
77
78 Apart from that, there is nothing to say.
79
80 =head1 PERL VERSION
81
82 This module should work on any version of perl still receiving updates from
83 the Perl 5 Porters. This means it should work on any version of perl released
84 in the last two to three years. (That is, if the most recently released
85 version is v5.40, then this module should work on both v5.40 and v5.38.)
86
87 Although it may work on older versions of perl, no guarantee is made that the
88 minimum required version will not be increased. The version may be increased
89 for any reason, and there is no promise that patches will be accepted to lower
90 the minimum required perl.
91
92 =head1 AUTHOR
93
94 Ricardo SIGNES <cpan@semiotic.systems>
95
96 =head1 COPYRIGHT AND LICENSE
97
98 This software is copyright (c) 2022 by Ricardo SIGNES.
99
100 This is free software; you can redistribute it and/or modify it under
101 the same terms as the Perl 5 programming language system itself.
102
103 =cut