Patch/Command/SendPatch.pm

filter: Statementstmt 74.0% 20 / 27 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 65.7% 25 / 38 CC 4 SCAR 22.5
CC
4
Cov
65%
run
20.0
BEGIN
1.0
BEGIN
1.0
CRAP 9.4
« Patch/Command/Import.pm ↑ Summary Patch/Release.pm »
1 package Git::CPAN::Patch::Command::SendPatch;
2 1 our $AUTHORITY = 'cpan:YANICK';
3 #ABSTRACT: create patch files and submit them to RT
4 1 $Git::CPAN::Patch::Command::SendPatch::VERSION = '2.5.2';
5 1 ▶use 5.10.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 ▶use MooseX::App::Command;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 1 with 'Git::CPAN::Patch::Role::Git';
13 1 with 'Git::CPAN::Patch::Role::Patch';
14  
15 1 ▶use experimental qw/
Subroutine BEGIN: called CC=1 SCAR=0.0
16 signatures
17 postderef
18 1 /;
19  
20 0 ▶sub run ($self) {
Subroutine run: not called CC=4 SCAR=30.0
Pod undocumented
21 0 $self->format_patch;
22  
23 0 ▶ if ( $self->nbr_patches > 1 ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->nbr_patches > 1) 0 0 0
24 0 say "Refusing to send more than one patch (each patch email will be in its own RT ticket).";
25 0 say "Run git-cpan-send-email manually to override, or squash your commits.";
26  
27 0 ▶ say and unlink($_) for $self->all_patches;
Branch: 1 branch
BranchTrueFalseTotal
say $_ and unlink $_ 0 0 0
28  
29 0 return;
30 }
31  
32 0 $self->send_emails( $self->all_patches );
33 }
34  
35 1 __PACKAGE__->meta->make_immutable;
36  
37 1 1;
38  
39 __END__
« Patch/Command/Import.pm ↑ Summary Patch/Release.pm »