blib/lib/CPAN/Testers/Fact/PlatformInfo.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 100% 4 / 4 totaltotal 100% 32 / 32 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary
1 package CPAN::Testers::Fact::PlatformInfo;
2  
3 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 6 our $VERSION = '1.02';
7  
8 # ABSTRACT: platform information on which a CPAN Testers smoker is running.
9  
10 6 ▶use Carp ();
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 6 ▶use Metabase::Fact::Hash 0.016;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 6 our @ISA = qw/Metabase::Fact::Hash/;
14  
15 ▶sub required_keys { } # all keys are optional
Subroutine required_keys: called CC=1 SCAR=0.0
Pod documented
16 1 ▶sub optional_keys { qw/archname osname osvers oslabel is32bit is64bit osflag codename kernel/ }
Subroutine optional_keys: called CC=1 SCAR=0.0
Pod documented
17  
18 sub content_metadata {
19 1 ▶ my ($self) = @_;
Subroutine content_metadata: called CC=1 SCAR=0.0
Pod documented
20 1 my $content = $self->content;
21 return {
22 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 1 }
33  
34 sub content_metadata_types {
35 return {
36 1 ▶ archname => '//str',
Subroutine content_metadata_types: called CC=1 SCAR=0.0
Pod documented
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 6 1;
49  
50 __END__
↑ Summary