blib/lib/Pod/Weaver/PluginBundle/DBIO.pm

filter: Statementstmt 100% 17 / 17 Branchbran 100% 2 / 2 Conditioncond 80.0% 4 / 5 MC/DCmcdc 50.0% 1 / 2 Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 90.6% 29 / 32 CC 4 SCAR 9.2
CC
4
Cov
96%
mvp_bundle_config
4.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.5
« blib/lib/Dist/Zilla/Plugin/DBIO/CodebergMeta.pm ↑ Summary blib/lib/Dist/Zilla/Plugin/DBIO/RequireCoreVersion.pm »
1 package Pod::Weaver::PluginBundle::DBIO;
2 # ABSTRACT: Pod::Weaver configuration for DBIO distributions
3 4 our $VERSION = '0.900007';
4 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7  
8 4 ▶use Pod::Weaver::Config::Assembler;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 160 ▶sub _exp { Pod::Weaver::Config::Assembler->expand_package($_[0]) }
Subroutine _exp: called CC=1 SCAR=0.0
10  
11 10 ▶sub mvp_bundle_config {
Subroutine mvp_bundle_config: called CC=4 SCAR=13.9
Pod undocumented
12 10 my ($self, $args) = @_;
13 10 ▶ my $heritage = ($args->{payload} && $args->{payload}{heritage}) || 0;
Condition80%4/5
$args->{'payload'} && $args->{'payload'}{'heritage'} || 0
l!l
28
$args->{"payload"} and $args->{"payload"}{"heritage"}
!ll&&!rl&&r
082
MC/DC50%1/2
$args->{'payload'} && $args->{'payload'}{'heritage'} || 0
$args->{"payload"} $args->{"payload"}{"heritage"}
Truth table66%2/3
A and B
A= $args->{"payload"}B= $args->{"payload"}{"heritage"}
ABresult
111
0X0
100
14  
15 10 my @plugins;
16 10 ▶ push @plugins, (
Branch: 1 branch
BranchTrueFalseTotal
$heritage ? : 2 8 10
17 [ '@DBIO/CorePrep', _exp('@CorePrep'), {} ],
18 [ '@DBIO/SingleEncoding', _exp('-SingleEncoding'), {} ],
19 [ '@DBIO/Name', _exp('Name'), {} ],
20 [ '@DBIO/Version', _exp('Version'), {} ],
21  
22 [ '@DBIO/Prelude', _exp('Region'), { region_name => 'prelude' } ],
23 [ '@DBIO/Synopsis', _exp('Generic'), { header => 'SYNOPSIS' } ],
24 [ '@DBIO/Description', _exp('Generic'), { header => 'DESCRIPTION' } ],
25 [ '@DBIO/Overview', _exp('Generic'), { header => 'OVERVIEW' } ],
26 [ '@DBIO/Stability', _exp('Generic'), { header => 'STABILITY' } ],
27  
28 [ '@DBIO/Attributes', _exp('Collect'), {
29 header => 'ATTRIBUTES',
30 command => 'attr',
31 } ],
32 [ '@DBIO/Methods', _exp('Collect'), {
33 header => 'METHODS',
34 command => 'method',
35 } ],
36  
37 [ '@DBIO/Leftovers', _exp('Leftovers'), {} ],
38 [ '@DBIO/Postlude', _exp('Region'), { region_name => 'postlude' } ],
39  
40 # After Leftovers on purpose: SEE ALSO closes the body, so it has to come
41 # after the unnamed =head1 sections (CAPABILITIES, ESCAPE HATCHES, ...)
42 # that reach the output through Leftovers, not before them.
43 #
44 # new_command = pod because the =seealso blocks in the family carry no
45 # argument text. Collect renames the collected command rather than
46 # dropping it, so the default (head2) would emit a bare "=head2" -- an
47 # empty heading, rendered as <h2 id=""></h2>. "=pod" inside an already
48 # open POD block is a documented no-op and leaves the =over/=item list
49 # directly under the SEE ALSO header.
50 [ '@DBIO/SeeAlso', _exp('Collect'), {
51 header => 'SEE ALSO',
52 command => 'seealso',
53 new_command => 'pod',
54 } ],
55  
56 [ '@DBIO/Authors', _exp('Authors'), {} ],
57  
58 [ '@DBIO/Legal', _exp('GenerateSection'), {
59 title => 'COPYRIGHT AND LICENSE',
60 is_template => 0,
61 text => [
62 'Copyright (C) 2026 DBIO Authors',
63 ($heritage ? (
64 'Portions Copyright (C) 2005-2025 DBIx::Class Authors',
65 'Based on DBIx::Class, heavily modified.',
66 ) : ()),
67 '',
68 'This is free software; you can redistribute it and/or modify it under',
69 'the same terms as the Perl 5 programming language system itself.',
70 ],
71 } ],
72 );
73  
74 10 return @plugins;
75 }
76  
77 4 1;
78  
79 __END__
« blib/lib/Dist/Zilla/Plugin/DBIO/CodebergMeta.pm ↑ Summary blib/lib/Dist/Zilla/Plugin/DBIO/RequireCoreVersion.pm »