Kit/Parts/Moo.pm

filter: Statementstmt 100% 26 / 26 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 0.0% 0 / 4 totaltotal 85.7% 36 / 42 CC 3 SCAR 3.4
CC
3
Cov
93%
feature_class_export
2.0
feature_role_export
2.0
BEGIN
1.0
CRAP 1.4
« Kit/Parts/Test2.pm ↑ Summary Kit/Parts/Types.pm »
1 package Code::Style::Kit::Parts::Moo;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 our $VERSION = '1.0.3'; # VERSION
5 # ABSTRACT: Moo-based OO
6  
7  
8 1 ▶use Import::Into;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 3 ▶sub feature_class_default { 0 }
Subroutine feature_class_default: called CC=1 SCAR=0.0
Pod undocumented
12 2 ▶sub feature_class_export {
Subroutine feature_class_export: called CC=2 SCAR=7.0
Pod undocumented
13 2 my ($self, $caller) = @_;
14  
15 2 ▶ croak "can't be both a class and a role"
Branch: 1 branch
BranchTrueFalseTotal
if $self->is_feature_requested("role") 0 2 2
16 if $self->is_feature_requested('role');
17  
18 2 require Moo;
19 2 Moo->import::into($caller);
20 2 $self->maybe_also_export('types');
21 }
22  
23 3 ▶sub feature_role_default { 0 }
Subroutine feature_role_default: called CC=1 SCAR=0.0
Pod undocumented
24 1 ▶sub feature_role_export {
Subroutine feature_role_export: called CC=2 SCAR=7.0
Pod undocumented
25 1 my ($self, $caller) = @_;
26  
27 1 ▶ croak "can't be both a class and a role"
Branch: 1 branch
BranchTrueFalseTotal
if $self->is_feature_requested("class") 0 1 1
28 if $self->is_feature_requested('class');
29  
30 1 require Moo::Role;
31 1 Moo::Role->import::into($caller);
32 1 $self->maybe_also_export('types');
33 }
34  
35 1 1;
36  
37 __END__
« Kit/Parts/Test2.pm ↑ Summary Kit/Parts/Types.pm »