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

filter: Statementstmt 100% 65 / 65 Branchbran 50.0% 1 / 2 Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 21 / 21 Podpod n/a totaltotal 96.7% 88 / 91 CC 4 SCAR 2.9
CC
4
Cov
97%
mvp_bundle_config
3.0
_exp
2.0
BEGIN
1.0
CRAP 1.3
« blib/lib/Pod/Weaver/Section/LegalWithAddendum.pm ↑ Summary Dist-Zilla-PluginBundle-BAREFOOT-0.05_01/t/build.t »
1 1 ▶use 5.012;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use MooseX::Declare;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use Method::Signatures::Modifiers;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 class Pod::Weaver::PluginBundle::BAREFOOT
6 1 ▶{
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
7 1 ▶ use autodie 2.00 ;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶ use MooseX::Has::Sugar ;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶ use MooseX::Types::Moose ':all' ;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 # Dependencies
12 1 ▶ use Pod::Weaver 3.101635; # fixed ABSTRACT scanning
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶ use Pod::Weaver::Config::Assembler;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 1 ▶ use Pod::Weaver::Plugin::WikiDoc ();
Subroutine BEGIN: called CC=1 SCAR=0.0
16 1 ▶ use Pod::Elemental::Transformer::List 0.101620 ();
Subroutine BEGIN: called CC=1 SCAR=0.0
17 1 ▶ use Pod::Weaver::Section::Support 1.001 ();
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19  
20 1 our $VERSION = '0.05_01'; # TRIAL VERSION
21  
22  
23 1 my $bugtracker_content = <<'END';
24 This module is on GitHub. Feel free to fork and submit patches. Please note that I develop
25 via TDD (Test-Driven Development), so a patch that includes a failing test is much more
26 likely to get accepted (or least likely to get accepted more quickly).
27  
28 If you just want to report a problem or suggest a feature, that's okay too. You can create
29 an issue on GitHub here: {WEB}.
30 END
31  
32  
33 1 ▶ method _exp { Pod::Weaver::Config::Assembler->expand_package($self) }
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine _exp: called CC=2 SCAR=7.0
Branch: 1 branch
BranchTrueFalseTotal
if scalar @_ > 0 0 15 15
34  
35 method mvp_bundle_config ($class: ...)
36 1 ▶ {
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine mvp_bundle_config: called CC=3 SCAR=11.0
37 # get payload (configurable parameters) from the dzil plugin bundle
38 1 my $payload = Dist::Zilla::PluginBundle::BAREFOOT->weaver_payload;
39  
40 # now set default values for them
41 1 ▶ $payload->{'repository_link'} //= 'both';
Condition50%1/2
$payload->{"repository_link"} //= "both"
l!l
10
MC/DC0%0/1
$payload->{"repository_link"} //= "both"
$payload->{"repository_link"}
Truth table50%1/2
A
A= $payload->{"repository_link"}
Aresult
11
00
42  
43 1 my @plugins;
44 1 push @plugins, (
45 [ '@BAREFOOT/WikiDoc', _exp('-WikiDoc'), {} ],
46  
47 [ '@BAREFOOT/CorePrep', _exp('@CorePrep'), {} ],
48 [ '@BAREFOOT/Name', _exp('Name'), {} ],
49 [ '@BAREFOOT/Version', _exp('Version'), {
50 format => "This document describes version %v of %m.",
51 }
52 ],
53  
54 [ '@BAREFOOT/Synopsis', _exp('Generic'), { header => 'SYNOPSIS' } ],
55 [ '@BAREFOOT/Description', _exp('Generic'), { header => 'DESCRIPTION' } ],
56 [ '@BAREFOOT/Overview', _exp('Generic'), { header => 'OVERVIEW' } ],
57 );
58  
59 1 for my $plugin (
60 [ 'Attributes', _exp('Collect'), { command => 'attr' } ],
61 [ 'Methods', _exp('Collect'), { command => 'method' } ],
62 [ 'Functions', _exp('Collect'), { command => 'func' } ],
63 ){
64 3 $plugin->[2]->{'header'} = uc $plugin->[0];
65 3 push @plugins, $plugin;
66 }
67  
68 push @plugins, (
69 [ '@BAREFOOT/Leftovers', _exp('Leftovers'), {} ],
70 [ '@BAREFOOT/Support', _exp('Support'), {
71 perldoc => 1,
72 websites => 'none',
73 bugs => 'metadata',
74 bugs_content => $bugtracker_content,
75 1 repository_link => $payload->{'repository_link'},
76 repository_content => 'none',
77 }
78 ],
79 [ '@BAREFOOT/Authors', _exp('Authors'), {} ],
80 [ '@BAREFOOT/Legal', _exp('Legal'), {} ],
81 [ '@BAREFOOT/List', _exp('-Transformer'), { transformer => 'List' } ],
82 );
83  
84 1 return @plugins;
85 1 }
86  
87 1 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.0
88  
89 # ABSTRACT: BAREFOOT's default Pod::Weaver config
90 # COPYRIGHT
91  
92 1 1;
93  
94 __END__
« blib/lib/Pod/Weaver/Section/LegalWithAddendum.pm ↑ Summary Dist-Zilla-PluginBundle-BAREFOOT-0.05_01/t/build.t »