bin/scan-perl-prereqs-nqlite

filter: Statementstmt 79.4% 27 / 34 Branchbran 50.0% 5 / 10 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 7 / 7 Podpod n/a totaltotal 72.2% 39 / 54 SCAR 7.5
CC
2
Cov
70%
BEGIN
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 2.1
« lib/Perl/PrereqScanner/NotQuiteLite/Parser/Mixin.pm ↑ Summary blib/lib/Perl/PrereqScanner/NotQuiteLite/Tokens.pm »
1 #!perl
2  
3 7 ▶BEGIN { pop @INC if $INC[-1] eq '.' }
Subroutine BEGIN: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
if $INC[-1] eq "." 7 0 7
4  
5 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 7 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 7 ▶use lib ();
Subroutine BEGIN: called CC=1 SCAR=0.0
8 7 ▶use Perl::PrereqScanner::NotQuiteLite::App;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 7 ▶use Getopt::Long;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 7 ▶use Pod::Usage;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 7 GetOptions(\my %opts, qw/
13 inc|lib|I=s@
14 libs|scan_also|scan-also|also=s@
15 parsers|parser=s@
16 version
17 help
18 json
19 cpanfile
20 save_cpanfile|save-cpanfile
21 exclude_core|exclude-core
22 perl_version|perl-version=s
23 allow_test_pms|allow-test-pms
24 features|feature=s@
25 base_dir|base-dir=s
26 ignore_re|ignore-re=s
27 ignore=s@
28 optional_re|optional-re=s
29 optional=s@
30 private_re|private-re=s
31 private=s@
32 recommends
33 suggests
34 develop
35 blib
36 use_index|use-index=s
37 perl_minimum_version
38 verbose
39 /);
40  
41 7 ▶if ($opts{version}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($opts{"version"}) 0 7 7
42 0 ▶ print "scan-perl-prereqs-nqlite v" . (Perl::PrereqScanner::NotQuiteLite->VERSION || 'DEV') . "\n";
Condition0%0/2
'Perl::PrereqScanner::NotQuiteLite'->VERSION || 'DEV'
l!l
00
MC/DC0%0/1
'Perl::PrereqScanner::NotQuiteLite'->VERSION || 'DEV'
'Perl::PrereqScanner::NotQuiteLite'->VERSION
Truth table0%0/2
A
A= 'Perl::PrereqScanner::NotQuiteLite'->VERSION
Aresult
11
00
43 0 exit;
44 }
45  
46 7 ▶if ($opts{help}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($opts{"help"}) 0 7 7
47 0 pod2usage(-verbose => 1);
48 0 exit;
49 }
50  
51 7 ▶lib->import(@{$opts{inc}}) if $opts{inc};
Branch: 1 branch
BranchTrueFalseTotal
if $opts{"inc"} 0 7 7
52  
53 7 for my $key (keys %opts) {
54 20 ▶ next unless $key =~ /\-/;
Branch: 1 branch
BranchTrueFalseTotal
unless $key =~ /\-/ 20 0 20
55 0 (my $replaced_key = $key) =~ s/\-/_/g;
56 0 $opts{$replaced_key} = $opts{$key};
57 }
58  
59 7 $opts{print} = 1;
60  
61 7 Perl::PrereqScanner::NotQuiteLite::App->new(%opts)->run(@ARGV);
62  
63 __END__
« lib/Perl/PrereqScanner/NotQuiteLite/Parser/Mixin.pm ↑ Summary blib/lib/Perl/PrereqScanner/NotQuiteLite/Tokens.pm »