line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CPAN::Audit::Discover; |
2
|
2
|
|
|
2
|
|
13
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
62
|
|
3
|
2
|
|
|
2
|
|
8
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
56
|
|
4
|
2
|
|
|
2
|
|
786
|
use CPAN::Audit::Discover::Cpanfile; |
|
2
|
|
|
|
|
11
|
|
|
2
|
|
|
|
|
66
|
|
5
|
2
|
|
|
2
|
|
784
|
use CPAN::Audit::Discover::CpanfileSnapshot; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
324
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = "1.001"; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub new { |
10
|
0
|
|
|
0
|
0
|
|
my $class = shift; |
11
|
|
|
|
|
|
|
|
12
|
0
|
|
|
|
|
|
my $self = {}; |
13
|
0
|
|
|
|
|
|
bless $self, $class; |
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
|
return $self; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub discover { |
19
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
20
|
0
|
|
|
|
|
|
my ($path) = @_; |
21
|
|
|
|
|
|
|
|
22
|
0
|
0
|
|
|
|
|
if ( -f "$path/cpanfile.snapshot" ) { |
|
|
0
|
|
|
|
|
|
23
|
0
|
|
|
|
|
|
return CPAN::Audit::Discover::CpanfileSnapshot->new->discover("$path/cpanfile.snapshot"); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
elsif ( -f "$path/cpanfile" ) { |
26
|
0
|
|
|
|
|
|
return CPAN::Audit::Discover::Cpanfile->new->discover("$path/cpanfile"); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
else { |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
0
|
|
|
|
|
|
return; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |