blib/lib/App/DuckPAN/Cmd/Roadrunner.pm

filter: Statementstmt 50.0% 13 / 26 Branchbran 0.0% 0 / 14 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 35.5% 16 / 45 CC 8 SCAR 39.6
CC
8
Cov
32%
run
72.0
BEGIN
1.0
BEGIN
1.0
CRAP 52.6
« blib/lib/App/DuckPAN.pm ↑ Summary blib/lib/App/DuckPAN/Cmd/Publisher.pm »
1 package App::DuckPAN::Cmd::Roadrunner;
2 1 our $AUTHORITY = 'cpan:DDG';
3 # ABSTRACT: Install requirements as fast as possible
4 1 $App::DuckPAN::Cmd::Roadrunner::VERSION = '1021';
5 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 with qw( App::DuckPAN::Cmd );
7  
8 1 ▶use MooX::Options protect_argv => 0;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use Time::HiRes qw( usleep );
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 0 ▶sub run {
Subroutine run: not called CC=8 SCAR=42.8
Pod undocumented
12 0 my ( $self, @args ) = @_;
13  
14 0 ▶ if (-f 'dist.ini') {
Branch: 3 branches
BranchTrueFalseTotal
if (-f 'dist.ini') { } 0 0 0
elsif (-f 'Makefile.PL') { } 0 0 0
elsif (-f 'Build.PL') { } 0 0 0
15 0 $self->app->emit_info("Found a dist.ini, suggesting a Dist::Zilla distribution");
16 0 ▶ $self->app->perl->cpanminus_install_error
Branch: 1 branch
BranchTrueFalseTotal
if system "dzil authordeps --missing 2>/dev/null | grep -ve '^\\W' | cpanm --quiet --notest --skip-satisfied" 0 0 0
17 if (system("dzil authordeps --missing 2>/dev/null | grep -ve '^\\W' | cpanm --quiet --notest --skip-satisfied"));
18 0 ▶ $self->app->perl->cpanminus_install_error
Branch: 1 branch
BranchTrueFalseTotal
if system "dzil listdeps --missing 2>/dev/null | grep -ve '^\\W' | cpanm --quiet --notest --skip-satisfied" 0 0 0
19 if (system("dzil listdeps --missing 2>/dev/null | grep -ve '^\\W' | cpanm --quiet --notest --skip-satisfied"));
20 0 $self->app->emit_info("Everything fine!");
21 }
22 elsif (-f 'Makefile.PL') {
23 0 $self->app->emit_info("Found a Makefile.PL");
24 0 ▶ $self->app->perl->cpanminus_install_error
Branch: 1 branch
BranchTrueFalseTotal
if system "cpanm --quiet --notest --skip-satisfied --installdeps ." 0 0 0
25 if (system("cpanm --quiet --notest --skip-satisfied --installdeps ."));
26 }
27 elsif (-f 'Build.PL') {
28 0 $self->app->emit_info("Found a Build.PL");
29 0 ▶ $self->app->perl->cpanminus_install_error
Branch: 1 branch
BranchTrueFalseTotal
if system "cpanm --quiet --notest --skip-satisfied --installdeps ." 0 0 0
30 if (system("cpanm --quiet --notest --skip-satisfied --installdeps ."));
31 }
32  
33 0 $self->app->emit_info("\a"); usleep 225000; $self->app->emit_info("\a");
34  
35 }
36  
37 1 1;
38  
39 __END__
« blib/lib/App/DuckPAN.pm ↑ Summary blib/lib/App/DuckPAN/Cmd/Publisher.pm »