line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CPAN::Testers::Fact::PlatformInfo; |
2
|
|
|
|
|
|
|
|
3
|
6
|
|
|
6
|
|
138471
|
use strict; |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
202
|
|
4
|
6
|
|
|
6
|
|
30
|
use warnings; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
268
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '1.03'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# ABSTRACT: platform information on which a CPAN Testers smoker is running. |
9
|
|
|
|
|
|
|
|
10
|
6
|
|
|
6
|
|
29
|
use Carp (); |
|
6
|
|
|
|
|
16
|
|
|
6
|
|
|
|
|
173
|
|
11
|
|
|
|
|
|
|
|
12
|
6
|
|
|
6
|
|
5052
|
use Metabase::Fact::Hash 0.016; |
|
6
|
|
|
|
|
271839
|
|
|
6
|
|
|
|
|
1227
|
|
13
|
|
|
|
|
|
|
our @ISA = qw/Metabase::Fact::Hash/; |
14
|
|
|
|
|
|
|
|
15
|
2
|
|
|
2
|
1
|
8190
|
sub required_keys { } # all keys are optional |
16
|
1
|
|
|
1
|
1
|
8
|
sub optional_keys { qw/archname osname osvers oslabel is32bit is64bit osflag codename kernel/ } |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub content_metadata { |
19
|
1
|
|
|
1
|
1
|
577
|
my ($self) = @_; |
20
|
1
|
|
|
|
|
4
|
my $content = $self->content; |
21
|
|
|
|
|
|
|
return { |
22
|
1
|
|
|
|
|
19
|
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
|
842
|
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__ |