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.018;
2             # ABSTRACT: Pod::Weaver-specific subclass of Config::MVP::Assembler
3              
4 10     10   78 use Moose;
  10         21  
  10         80  
5             extends 'Config::MVP::Assembler';
6             with 'Config::MVP::Assembler::WithBundles';
7              
8 10     10   64553 use String::RewritePrefix;
  10         27  
  10         107  
9              
10 10     10   1969 use namespace::autoclean;
  10         22  
  10         108  
11              
12             sub expand_package {
13 209     209 1 582170 my $str = $_[1];
14              
15 209         1673 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.018
42              
43             =head1 PERL VERSION SUPPORT
44              
45             This module has the same support period as perl itself: it supports the two
46             most recent versions of perl. (That is, if the most recently released version
47             is v5.40, then this module should work on both v5.40 and v5.38.)
48              
49             Although it may work on older versions of perl, no guarantee is made that the
50             minimum required version will not be increased. The version may be increased
51             for any reason, and there is no promise that patches will be accepted to lower
52             the minimum required perl.
53              
54             =head1 AUTHOR
55              
56             Ricardo SIGNES <rjbs@semiotic.systems>
57              
58             =head1 COPYRIGHT AND LICENSE
59              
60             This software is copyright (c) 2021 by Ricardo SIGNES.
61              
62             This is free software; you can redistribute it and/or modify it under
63             the same terms as the Perl 5 programming language system itself.
64              
65             =cut