File Coverage

blib/lib/Pod/Weaver/Config/Assembler.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 1 1 100.0
total 16 16 100.0


line stmt bran cond sub pod time code
1             package Pod::Weaver::Config::Assembler 4.019;
2             # ABSTRACT: Pod::Weaver-specific subclass of Config::MVP::Assembler
3              
4 10     10   81 use Moose;
  10         25  
  10         82  
5             extends 'Config::MVP::Assembler';
6             with 'Config::MVP::Assembler::WithBundles';
7              
8 10     10   67912 use String::RewritePrefix;
  10         27  
  10         125  
9              
10 10     10   2065 use namespace::autoclean;
  10         25  
  10         119  
11              
12             sub expand_package {
13 209     209 1 593338 my $str = $_[1];
14              
15 209         2966 return scalar String::RewritePrefix->rewrite(
16             {
17             '' => 'Pod::Weaver::Section::',
18             '-' => 'Pod::Weaver::Plugin::',
19             '@' => 'Pod::Weaver::PluginBundle::',
20             '=' => '',
21             },
22             $str,
23             );
24             }
25              
26             __PACKAGE__->meta->make_immutable;
27             1;
28              
29             __END__
30              
31             =pod
32              
33             =encoding UTF-8
34              
35             =head1 NAME
36              
37             Pod::Weaver::Config::Assembler - Pod::Weaver-specific subclass of Config::MVP::Assembler
38              
39             =head1 VERSION
40              
41             version 4.019
42              
43             =head1 PERL VERSION
44              
45             This module should work on any version of perl still receiving updates from
46             the Perl 5 Porters. This means it should work on any version of perl released
47             in the last two to three years. (That is, if the most recently released
48             version is v5.40, then this module should work on both v5.40 and v5.38.)
49              
50             Although it may work on older versions of perl, no guarantee is made that the
51             minimum required version will not be increased. The version may be increased
52             for any reason, and there is no promise that patches will be accepted to lower
53             the minimum required perl.
54              
55             =head1 AUTHOR
56              
57             Ricardo SIGNES <cpan@semiotic.systems>
58              
59             =head1 COPYRIGHT AND LICENSE
60              
61             This software is copyright (c) 2023 by Ricardo SIGNES.
62              
63             This is free software; you can redistribute it and/or modify it under
64             the same terms as the Perl 5 programming language system itself.
65              
66             =cut