Iller/DocType/Global.pm

filter: Statementstmt 96.5% 28 / 29 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 8 / 12 Podpod 0.0% 0 / 4 totaltotal 78.7% 37 / 47 CC 2 SCAR 2.1
CC
2
Cov
94%
parse
2.0
to_hash
2.0
BEGIN
1.0
CRAP 1.2
« Iller/DocType/Cpanfile.pm ↑ Summary Iller/Config.pm »
1 2 ▶use 5.14.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package Dist::Iller::DocType::Global;
6  
7 2 our $AUTHORITY = 'cpan:CSSON'; # AUTHORITY
8 # ABSTRACT: Settings used in multiple other DocTypes
9 2 our $VERSION = '0.1411';
10  
11 2 ▶use Dist::Iller::Elk;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 2 ▶use Path::Tiny;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 2 ▶use Types::Standard qw/ArrayRef Str/;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 2 with qw/
15 Dist::Iller::DocType
16 /;
17  
18 2 has distribution_name => (
19 is => 'rw',
20 isa => Str,
21 predicate => 1,
22 );
23  
24 0 ▶sub comment_start { }
Subroutine comment_start: not called CC=1 SCAR=0.0
Pod undocumented
25  
26 0 ▶sub filename { }
Subroutine filename: not called CC=1 SCAR=0.0
Pod undocumented
27  
28 5 ▶sub phase { 'first' }
Subroutine phase: called CC=1 SCAR=0.0
Pod undocumented
29  
30 0 ▶sub to_hash { {} }
Subroutine to_hash: not called CC=1 SCAR=6.9
Pod undocumented
31  
32 1 ▶sub parse {
Subroutine parse: called CC=2 SCAR=7.0
33 1 my $self = shift;
34 1 my $yaml = shift;
35  
36 1 ▶ if(exists $yaml->{'distribution_name'}) {
Branch: 1 branch
BranchTrueFalseTotal
if (exists $yaml->{"distribution_name"}) 1 0 1
37 1 $self->distribution_name($yaml->{'distribution_name'});
38 }
39 }
40  
41 0 ▶sub to_string { }
Subroutine to_string: not called CC=1 SCAR=0.0
42  
43 2 __PACKAGE__->meta->make_immutable;
44  
45 2 1;
46  
47 __END__
« Iller/DocType/Cpanfile.pm ↑ Summary Iller/Config.pm »