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.020;
2             # ABSTRACT: Pod::Weaver-specific subclass of Config::MVP::Assembler
3              
4 10     10   80 use Moose;
  10         22  
  10         94  
5             extends 'Config::MVP::Assembler';
6             with 'Config::MVP::Assembler::WithBundles';
7              
8 10     10   85079 use String::RewritePrefix;
  10         22  
  10         153  
9              
10 10     10   2485 use namespace::autoclean;
  10         23  
  10         157  
11              
12             sub expand_package {
13 209     209 1 735787 my $str = $_[1];
14              
15 209         2420 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.020
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
47             released in the last two to three years. (That is, if the most recently
48             released version is v5.40, then this module should work on both v5.40 and
49             v5.38.)
50              
51             Although it may work on older versions of perl, no guarantee is made that the
52             minimum required version will not be increased. The version may be increased
53             for any reason, and there is no promise that patches will be accepted to
54             lower the minimum required perl.
55              
56             =head1 AUTHOR
57              
58             Ricardo SIGNES <cpan@semiotic.systems>
59              
60             =head1 COPYRIGHT AND LICENSE
61              
62             This software is copyright (c) 2024 by Ricardo SIGNES.
63              
64             This is free software; you can redistribute it and/or modify it under
65             the same terms as the Perl 5 programming language system itself.
66              
67             =cut