script/orepan2-gc

filter: Statementstmt 100% 20 / 20 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 96.3% 26 / 27 CC 1 SCAR 0.0
CC
1
Cov
95%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« script/orepan2-merge-index ↑ Summary blib/lib/OrePAN2.pm »
1 #!perl
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use OrePAN2::Repository;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Pod::Usage;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Getopt::Long;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 my $p = Getopt::Long::Parser->new(
9 config => [qw(posix_default no_ignore_case auto_help)]
10 );
11 1 $p->getoptions(
12 'text!' => \my $text,
13 );
14  
15 1 ▶my $directory = shift(@ARGV) or pod2usage;
Branch: 1 branch
BranchTrueFalseTotal
my $directory = shift @ARGV or pod2usage() 1 0 1
16 1 my $repository = OrePAN2::Repository->new(
17 directory => $directory,
18 compress_index => !$text,
19 );
20 1 $repository->gc;
21  
22 __END__
« script/orepan2-merge-index ↑ Summary blib/lib/OrePAN2.pm »