lib/Dist/Zilla/Plugin/CSJEWELL/DotFileFix.pm

filter: Statementstmt 76.0% 19 / 25 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 70.5% 24 / 34 CC 2 SCAR 8.9
CC
2
Cov
70%
after_mint
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.4
« lib/Dist/Zilla/Plugin/CSJEWELL/SubversionDist.pm ↑ Summary blib/lib/auto/share/module/Dist-Zilla-MintingProfile-CSJEWELL/csjewell/Module.pm »
1 package Dist::Zilla::Plugin::CSJEWELL::DotFileFix;
2  
3 1 ▶use 5.008003;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use File::Copy qw( move );
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use English qw( -no_match_vars );
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 with 'Dist::Zilla::Role::AfterMint';
8  
9 1 our $VERSION = '0.900';
10 1 $VERSION =~ s/_//sm;
11  
12  
13 0 ▶sub after_mint {
Subroutine after_mint: not called CC=2 SCAR=17.9
Pod undocumented
14 0 my ( $self, $hash ) = @_;
15  
16 0 my $root = $hash->{mint_root};
17  
18 0 my $source_file = $root->file('_hgignore')->stringify();
19 0 my $dest_file = $root->file('.hgignore')->stringify();
20  
21 0 ▶ move( $source_file, $dest_file )
Branch: 1 branch
BranchTrueFalseTotal
move($source_file, $dest_file) or $self->log("Could not move _hgignore to .hgignore: $Dist::Zilla::Plugin::CSJEWELL::DotFileFix::OS_ERROR") 0 0 0
22 or $self->log("Could not move _hgignore to .hgignore: $OS_ERROR");
23  
24 0 return 1;
25 } ## end sub after_mint
26  
27 1 __PACKAGE__->meta()->make_immutable();
28 1 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
29 1 1;
30  
31 __END__
« lib/Dist/Zilla/Plugin/CSJEWELL/SubversionDist.pm ↑ Summary blib/lib/auto/share/module/Dist-Zilla-MintingProfile-CSJEWELL/csjewell/Module.pm »