blib/lib/Module/Setup/Plugin/VC/SVN.pm

filter: Statementstmt 100% 20 / 20 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 50.0% 1 / 2 totaltotal 96.6% 29 / 30 CC 3 SCAR 5.6
CC
3
Cov
100%
after_setup_module_attribute
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.8
« blib/lib/Module/Setup/Test/Utils.pm ↑ Summary blib/lib/Module/Setup/Plugin/Template.pm »
1 package Module::Setup::Plugin::VC::SVN;
2 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use base 'Module::Setup::Plugin';
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 ▶use Module::Setup::Path::Dir;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 sub register {
9 3 ▶ my($self, ) = @_;
Subroutine register: called CC=1 SCAR=0.0
Pod undocumented
10 3 $self->add_trigger( after_setup_module_attribute => \&after_setup_module_attribute );
11 }
12  
13 sub after_setup_module_attribute {
14 7 ▶ my $self = shift;
Subroutine after_setup_module_attribute: called CC=3 SCAR=11.0
Pod documented
15 7 ▶ if ($self->dialog("Subversion friendly? [Yn] ", 'y') =~ /[Yy]/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->dialog("Subversion friendly? [Yn] ", "y") =~ /[Yy]/) 2 5 7
16 2 $self->distribute->dist_path->subdir($_)->mkpath for (qw/ trunk tags branches /);
17 2 $self->distribute->{dist_path} = Module::Setup::Path::Dir->new($self->distribute->dist_path, 'trunk');
18 2 $self->plugins_stash->{'VC::SVN'} = +{
19 is_subversion_friendly => 1,
20 };
21 }
22 }
23  
24 3 1;
« blib/lib/Module/Setup/Test/Utils.pm ↑ Summary blib/lib/Module/Setup/Plugin/Template.pm »