line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Perl::PrereqScanner::NotQuiteLite::Parser::Prefork; |
2
|
|
|
|
|
|
|
|
3
|
83
|
|
|
83
|
|
1431
|
use strict; |
|
83
|
|
|
|
|
185
|
|
|
83
|
|
|
|
|
2236
|
|
4
|
83
|
|
|
83
|
|
403
|
use warnings; |
|
83
|
|
|
|
|
177
|
|
|
83
|
|
|
|
|
2214
|
|
5
|
83
|
|
|
83
|
|
474
|
use Perl::PrereqScanner::NotQuiteLite::Util; |
|
83
|
|
|
|
|
188
|
|
|
83
|
|
|
|
|
20587
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub register { return { |
8
|
82
|
|
|
82
|
0
|
469
|
use => { |
9
|
|
|
|
|
|
|
prefork => 'parse_prefork_args', |
10
|
|
|
|
|
|
|
}, |
11
|
|
|
|
|
|
|
}} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub parse_prefork_args { |
14
|
1
|
|
|
1
|
0
|
3
|
my ($class, $c, $used_module, $raw_tokens) = @_; |
15
|
|
|
|
|
|
|
|
16
|
1
|
|
|
|
|
4
|
my $tokens = convert_string_tokens($raw_tokens); |
17
|
1
|
50
|
|
|
|
4
|
if (is_version($tokens->[0])) { |
18
|
0
|
|
|
|
|
0
|
$c->add($used_module => shift @$tokens); |
19
|
|
|
|
|
|
|
} |
20
|
1
|
|
|
|
|
2
|
my $module = $tokens->[0]; |
21
|
1
|
50
|
|
|
|
6
|
if (ref $module) { |
22
|
0
|
|
|
|
|
0
|
$module = $module->[0]; |
23
|
|
|
|
|
|
|
} |
24
|
1
|
50
|
|
|
|
4
|
if (is_module_name($module)) { |
25
|
1
|
|
|
|
|
3
|
$c->add($module => 0); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |