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

filter: Statementstmt 75.0% 18 / 24 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 69.7% 23 / 33 CC 2 SCAR 8.9
CC
2
Cov
69%
after_mint
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.4
« lib/Dist/Zilla/App/Command/configure_CSJEWELL.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.993';
10  
11 0 ▶sub after_mint {
Subroutine after_mint: not called CC=2 SCAR=17.9
Pod undocumented
12 0 my ($self, $hash) = @_;
13  
14 0 my $root = $hash->{'mint_root'};
15  
16 0 my $source_file = $root->child('_gitignore')->stringify();
17 0 my $dest_file = $root->child('.gitignore')->stringify();
18  
19 0 ▶ move($source_file, $dest_file)
Branch: 1 branch
BranchTrueFalseTotal
move($source_file, $dest_file) or $self->log("Could not move _gitignore to .gitignore: $Dist::Zilla::Plugin::CSJEWELL::DotFileFix::OS_ERROR") 0 0 0
20 or $self->log("Could not move _gitignore to .gitignore: $OS_ERROR");
21  
22 0 return 1;
23 } ## end sub after_mint
24  
25 1 __PACKAGE__->meta->make_immutable;
26 1 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
27 1 1;
28  
29 __END__
« lib/Dist/Zilla/App/Command/configure_CSJEWELL.pm ↑ Summary blib/lib/auto/share/module/Dist-Zilla-MintingProfile-CSJEWELL/csjewell/Module.pm »