File Coverage

blib/lib/CPAN/Testers/Fact/TestEnvironment.pm
Criterion Covered Total %
statement 15 21 71.4
branch 0 2 0.0
condition n/a
subroutine 5 7 71.4
pod 1 2 50.0
total 21 32 65.6


line stmt bran cond sub pod time code
1 1     1   3129 use 5.006;
  1         3  
  1         45  
2 1     1   5 use strict;
  1         2  
  1         36  
3 1     1   6 use warnings;
  1         1  
  1         128  
4              
5             package CPAN::Testers::Fact::TestEnvironment;
6             # ABSTRACT: Environment vars and other local context during a CPAN Testers report
7             our $VERSION = '1.999002'; # VERSION
8              
9 1     1   6 use Carp ();
  1         3  
  1         36  
10              
11 1     1   1295 use Metabase::Fact::Hash 0.016;
  1         854  
  1         211  
12             our @ISA = qw/Metabase::Fact::Hash/;
13              
14             # special_vars: $^X, UID/EID, GID/EGID, win32 stuff from CPAN::Reporter
15             # -- dagolden, 2009-03-30
16 0     0 0   sub optional_keys { qw/environment_vars special_vars/ }
17              
18             sub validate_content {
19 0     0 1   my ($self) = @_;
20 0           $self->SUPER::validate_content;
21 0           my $content = $self->content;
22 0           for my $key ( keys %$content ) {
23 0 0         Carp::croak "key '$key' must be a hashref" unless ref $content->{$key} eq 'HASH';
24             }
25             }
26              
27             # XXX do we want content_metadata? -- dagolden, 2009-03-30
28              
29             1;
30              
31             __END__