line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Module::CPANfile::Requirement; |
2
|
7
|
|
|
7
|
|
49
|
use strict; |
|
7
|
|
|
|
|
18
|
|
|
7
|
|
|
|
|
1297
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
sub new { |
5
|
39
|
|
|
39
|
0
|
189
|
my ($class, %args) = @_; |
6
|
|
|
|
|
|
|
|
7
|
39
|
|
100
|
|
|
178
|
$args{version} ||= 0; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
bless +{ |
10
|
|
|
|
|
|
|
name => delete $args{name}, |
11
|
|
|
|
|
|
|
version => delete $args{version}, |
12
|
39
|
|
|
|
|
341
|
options => \%args, |
13
|
|
|
|
|
|
|
}, $class; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
0
|
|
|
0
|
0
|
0
|
sub name { $_[0]->{name} } |
17
|
38
|
|
|
38
|
0
|
159
|
sub version { $_[0]->{version} } |
18
|
|
|
|
|
|
|
|
19
|
38
|
|
|
38
|
0
|
175
|
sub options { $_[0]->{options} } |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub has_options { |
22
|
0
|
|
|
0
|
0
|
|
keys %{$_[0]->{options}} > 0; |
|
0
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |