Cmd/ArgProcessor.pm

filter: Statementstmt 100% 13 / 13 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 94.4% 17 / 18 CC 2 SCAR 4.1
CC
2
Cov
93%
_process_args
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« Cmd/Command/help.pm ↑ Summary Cmd/Tester/CaptureExternal.pm »
1 17 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 17 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package App::Cmd::ArgProcessor 0.340;
5  
6 # ABSTRACT: App::Cmd-specific wrapper for Getopt::Long::Descriptive
7  
8 69 ▶sub _process_args {
Subroutine _process_args: called CC=2 SCAR=7.0
9 69 my ($class, $args, @params) = @_;
10 69 local @ARGV = @$args;
11  
12 69 require Getopt::Long::Descriptive;
13 69 ▶ Getopt::Long::Descriptive->VERSION(0.116)
Branch: 1 branch
BranchTrueFalseTotal
if "Getopt::Long::Descriptive"->VERSION 69 0 69
14 if Getopt::Long::Descriptive->VERSION;
15  
16 69 my ($opt, $usage) = Getopt::Long::Descriptive::describe_options(@params);
17  
18 return (
19 67 $opt,
20 [ @ARGV ], # whatever remained
21 usage => $usage,
22 );
23 }
24  
25 17 1;
26  
27 __END__
« Cmd/Command/help.pm ↑ Summary Cmd/Tester/CaptureExternal.pm »