Role/WriteChanges.pm

filter: Statementstmt 55.0% 11 / 20 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 50.0% 2 / 4 Podpod 0.0% 0 / 1 totaltotal 40.6% 13 / 32 CC 4 SCAR 24.8
CC
4
Cov
42%
Build_Changes
20.0
__ANON__
2.0
BEGIN
1.0
CRAP 12.0
« Role/DetermineRightsFromRdf.pm ↑ Summary Role/ReadMetaDir.pm »
1 package Dist::Inkt::Role::WriteChanges;
2  
3 1 our $AUTHORITY = 'cpan:TOBYINK';
4 1 our $VERSION = '0.110';
5  
6 1 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 with 'Dist::Inkt::Role::RDFModel';
10  
11 0 ▶after BUILD => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
12 0 my $self = shift;
13 0 unshift @{ $self->targets }, 'Changes';
14 1 };
15  
16 sub Build_Changes
17 0 ▶{
Subroutine Build_Changes: not called CC=4 SCAR=30.0
Pod undocumented
18 0 my $self = shift;
19 0 my $file = $self->targetfile('Changes');
20 0 ▶ $file->exists and return $self->log('Skipping %s; it already exists', $file);
Branch: 1 branch
BranchTrueFalseTotal
$file->exists and return $self->log("Skipping %s; it already exists", $file) 0 0 0
21 0 $self->log('Writing %s', $file);
22 0 ▶ $self->rights_for_generated_files->{'Changes'} ||= [
Branch: 1 branch
BranchTrueFalseTotal
if $self->DOES("Dist::Inkt::Role::WriteCOPYRIGHT") 0 0 0
Condition0%0/2
$self->rights_for_generated_files->{"Changes"} ||= [$self->_inherited_rights]
l!l
00
MC/DC0%0/1
$self->rights_for_generated_files->{"Changes"} ||= [$self->_inherited_rights]
$self->rights_for_generated_files->{"Changes"}
Truth table0%0/2
A
A= $self->rights_for_generated_files->{"Changes"}
Aresult
11
00
23 $self->_inherited_rights
24 ] if $self->DOES('Dist::Inkt::Role::WriteCOPYRIGHT');
25 0 $file->spew_utf8($self->doap_project->changelog);
26 }
27  
28 1 1;
« Role/DetermineRightsFromRdf.pm ↑ Summary Role/ReadMetaDir.pm »