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

filter: Statementstmt 62.5% 10 / 16 Branchbran 0.0% 0 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 0.0% 0 / 1 totaltotal 46.1% 12 / 26 CC 4 SCAR 26.1
CC
4
Cov
45%
run
20.0
BEGIN
1.0
BEGIN
1.0
CRAP 13.7
« blib/lib/App/DuckPAN/Cmd/Env/Cmd/Rm.pm ↑ Summary blib/lib/App/DuckPAN/Fathead.pm »
1 package App::DuckPAN::Cmd::Installdeps;
2 1 our $AUTHORITY = 'cpan:DDG';
3 # ABSTRACT: Regular way to install requirements with tests
4 1 $App::DuckPAN::Cmd::Installdeps::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  
10 0 ▶sub run {
Subroutine run: not called CC=4 SCAR=30.0
Pod undocumented
11 0 my ( $self, @args ) = @_;
12  
13 0 ▶ if (-f 'dist.ini') {
Branch: 1 branch
BranchTrueFalseTotal
if (-f "dist.ini") 0 0 0
14 0 $self->app->emit_info("Found a dist.ini, suggesting a Dist::Zilla distribution");
15 0 ▶ $self->app->perl->cpanminus_install_error
Branch: 1 branch
BranchTrueFalseTotal
if system "dzil authordeps --missing 2>/dev/null | grep -ve '^\\W' | cpanm" 0 0 0
16 if (system("dzil authordeps --missing 2>/dev/null | grep -ve '^\\W' | cpanm"));
17 0 ▶ $self->app->perl->cpanminus_install_error
Branch: 1 branch
BranchTrueFalseTotal
if system "dzil listdeps --missing 2>/dev/null | grep -ve '^\\W' | cpanm" 0 0 0
18 if (system("dzil listdeps --missing 2>/dev/null | grep -ve '^\\W' | cpanm"));
19 0 $self->app->emit_info("Everything fine!");
20 }
21  
22 }
23  
24 1 1;
25  
26 __END__
« blib/lib/App/DuckPAN/Cmd/Env/Cmd/Rm.pm ↑ Summary blib/lib/App/DuckPAN/Fathead.pm »