blib/lib/Module/Install/ManifestSkip.pm

filter: Statementstmt 59.0% 13 / 22 Branchbran 0.0% 0 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 48.4% 16 / 33 CC 4 SCAR 24.7
CC
4
Cov
46%
manifest_skip
20.0
BEGIN
1.0
BEGIN
1.0
CRAP 11.9
↑ Summary
1 1 ▶use strict; use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Module::Install::ManifestSkip;
3 1 our $VERSION = '0.24';
4  
5 1 ▶use base 'Module::Install::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 our $AUTHOR_ONLY = 1;
8  
9 1 my $skip_file = "MANIFEST.SKIP";
10  
11 0 ▶sub manifest_skip {
Subroutine manifest_skip: not called CC=4 SCAR=30.0
Pod undocumented
12 0 my $self = shift;
13 0 ▶ return unless $self->is_admin;
Branch: 1 branch
BranchTrueFalseTotal
unless $self->is_admin 0 0 0
14  
15 0 require Module::Manifest::Skip;
16  
17 0 print "Writing $skip_file\n";
18  
19 0 ▶ open OUT, '>', $skip_file
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", $skip_file or die "Can't open $skip_file for output: $!" 0 0 0
20 or die "Can't open $skip_file for output: $!";;
21  
22 0 print OUT Module::Manifest::Skip->new->text;
23  
24 0 close OUT;
25  
26 0 $self->clean_files('MANIFEST');
27 0 ▶ $self->clean_files($skip_file)
Branch: 1 branch
BranchTrueFalseTotal
if grep /^clean$/, @_ 0 0 0
28 if grep /^clean$/, @_;
29 }
30  
31 1 1;
↑ Summary