line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CPAN::Testers::Fact::PlatformInfo; |
2
|
|
|
|
|
|
|
|
3
|
6
|
|
|
6
|
|
155167
|
use strict; |
|
6
|
|
|
|
|
14
|
|
|
6
|
|
|
|
|
227
|
|
4
|
6
|
|
|
6
|
|
96
|
use warnings; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
290
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '1.02'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# ABSTRACT: platform information on which a CPAN Testers smoker is running. |
9
|
|
|
|
|
|
|
|
10
|
6
|
|
|
6
|
|
31
|
use Carp (); |
|
6
|
|
|
|
|
15
|
|
|
6
|
|
|
|
|
123
|
|
11
|
|
|
|
|
|
|
|
12
|
6
|
|
|
6
|
|
6549
|
use Metabase::Fact::Hash 0.016; |
|
6
|
|
|
|
|
346597
|
|
|
6
|
|
|
|
|
1605
|
|
13
|
|
|
|
|
|
|
our @ISA = qw/Metabase::Fact::Hash/; |
14
|
|
|
|
|
|
|
|
15
|
2
|
|
|
2
|
1
|
6812
|
sub required_keys { } # all keys are optional |
16
|
1
|
|
|
1
|
1
|
7
|
sub optional_keys { qw/archname osname osvers oslabel is32bit is64bit osflag codename kernel/ } |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub content_metadata { |
19
|
1
|
|
|
1
|
1
|
941
|
my ($self) = @_; |
20
|
1
|
|
|
|
|
5
|
my $content = $self->content; |
21
|
|
|
|
|
|
|
return { |
22
|
1
|
|
|
|
|
16
|
archname => $content->{archname} , |
23
|
|
|
|
|
|
|
osname => $content->{osname} , |
24
|
|
|
|
|
|
|
osvers => $content->{osvers} , |
25
|
|
|
|
|
|
|
oslabel => $content->{oslabel} , |
26
|
|
|
|
|
|
|
is32bit => $content->{is32bit} , |
27
|
|
|
|
|
|
|
is64bit => $content->{is64bit} , |
28
|
|
|
|
|
|
|
osflag => $content->{osflag} , |
29
|
|
|
|
|
|
|
codename => $content->{codename} , |
30
|
|
|
|
|
|
|
kernel => $content->{kernel} , |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub content_metadata_types { |
35
|
|
|
|
|
|
|
return { |
36
|
1
|
|
|
1
|
1
|
534
|
archname => '//str', |
37
|
|
|
|
|
|
|
osname => '//str', |
38
|
|
|
|
|
|
|
osvers => '//str', |
39
|
|
|
|
|
|
|
oslabel => '//str', |
40
|
|
|
|
|
|
|
is32bit => '//bool', |
41
|
|
|
|
|
|
|
is64bit => '//bool', |
42
|
|
|
|
|
|
|
osflag => '//str', |
43
|
|
|
|
|
|
|
codename => '//str', |
44
|
|
|
|
|
|
|
kernel => '//str', |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
1; |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
__END__ |