lib/Perl/PrereqScanner/NotQuiteLite/Parser/Later.pm

filter: Statementstmt 90.0% 18 / 20 Branchbran 50.0% 3 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 2 totaltotal 78.7% 26 / 33 SCAR 14.1
CC
4
Cov
81%
parse_later_args
4.6
BEGIN
1.0
BEGIN
1.0
CRAP 4.1
« lib/Perl/PrereqScanner/NotQuiteLite/Parser/Autouse.pm ↑ Summary lib/Perl/PrereqScanner/NotQuiteLite/Parser/Prefork.pm »
1 package Perl::PrereqScanner::NotQuiteLite::Parser::Later;
2  
3 88 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 88 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 88 ▶use Perl::PrereqScanner::NotQuiteLite::Util;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 sub register { return {
8 87 ▶ use => {
Subroutine register: called CC=1 SCAR=0.0
Pod undocumented
9 'later' => 'parse_later_args',
10 },
11 }}
12  
13 sub parse_later_args {
14 2 ▶ my ($class, $c, $used_module, $raw_tokens) = @_;
Subroutine parse_later_args: called CC=4 SCAR=15.2
Pod undocumented
15  
16 2 my $tokens = convert_string_tokens($raw_tokens);
17 2 ▶ if (is_version($tokens->[0])) {
Branch: 1 branch
BranchTrueFalseTotal
if (is_version($tokens->[0])) 0 2 2
18 0 $c->add($used_module => shift @$tokens);
19 }
20 2 my $module = $tokens->[0];
21 2 ▶ if (ref $module) {
Branch: 1 branch
BranchTrueFalseTotal
if (ref $module) 0 2 2
22 0 $module = $module->[0];
23 }
24 2 ▶ if (is_module_name($module)) {
Branch: 1 branch
BranchTrueFalseTotal
if (is_module_name($module)) 2 0 2
25 2 $c->add_recommendation($module => 0);
26 }
27 }
28  
29 88 1;
30  
31 __END__
« lib/Perl/PrereqScanner/NotQuiteLite/Parser/Autouse.pm ↑ Summary lib/Perl/PrereqScanner/NotQuiteLite/Parser/Prefork.pm »