Local/Plugin.pm

filter: Statementstmt 95.2% 20 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 50.0% 1 / 2 totaltotal 89.6% 26 / 29 CC 1 SCAR 1.5
CC
1
Cov
95%
requires_distribution_roles
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Local/MVP/Assembler.pm ↑ Summary Local/Plugin/ModList.pm »
1 package CPAN::Local::Plugin;
2 {
3 12 $CPAN::Local::Plugin::VERSION = '0.010';
4 }
5  
6 # ABSTRACT: Base class for plugins
7  
8 12 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 12 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 12 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 12 with 'MooseX::Role::Loggable';
13 12 ▶use namespace::clean -except => 'meta';
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 12 has 'root' =>
16 (
17 is => 'ro',
18 isa => 'Str',
19 required => 1,
20 );
21  
22 12 has 'distribution_class' =>
23 (
24 is => 'ro',
25 isa => 'Str',
26 required => 1,
27 );
28  
29 sub create_distribution
30 2 ▶{
Subroutine create_distribution: called CC=1 SCAR=0.0
Pod undocumented
31 2 my $self = shift;
32 2 return $self->distribution_class->new(@_);
33 }
34  
35 sub requires_distribution_roles
36 0 ▶{
Subroutine requires_distribution_roles: not called CC=1 SCAR=6.9
Pod documented
37 0 return;
38 }
39  
40 12 __PACKAGE__->meta->make_immutable;
41  
42  
43 __END__
« Local/MVP/Assembler.pm ↑ Summary Local/Plugin/ModList.pm »