| CPAN-Testers-Report documentation | Contained in the CPAN-Testers-Report distribution. |
CPAN::Testers::Fact::TestEnvironment - Environment vars and other local context during a CPAN Testers report
version 1.999001
my $fact = CPAN::Testers::Fact::TestEnvironment>new(
resource => 'cpan:///distfile/RJBS/CPAN-Metabase-Fact-0.001.tar.gz',
content => {
environment_vars => {
PERL5LIB => $ENV{PERL5LIB},
TEMP => $ENV{TEMP},
},
special_vars => {
'EXECUTABLE_NAME' => $^X,
'UID' => $<,
},
},
);
Describes aspects of the environment during a CPAN Testers run.
See Metabase::Fact.
Please report any bugs or feature using the CPAN Request Tracker. Bugs can be submitted through the web interface at http://rt.cpan.org/Dist/Display.html?Queue=CPAN-Testers-Report
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
David Golden <dagolden@cpan.org>
This software is Copyright (c) 2010 by David Golden.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
| CPAN-Testers-Report documentation | Contained in the CPAN-Testers-Report distribution. |
# # This file is part of CPAN-Testers-Report # # This software is Copyright (c) 2010 by David Golden. # # This is free software, licensed under: # # The Apache License, Version 2.0, January 2004 # use 5.006; use strict; use warnings; package CPAN::Testers::Fact::TestEnvironment; BEGIN { $CPAN::Testers::Fact::TestEnvironment::VERSION = '1.999001'; } # ABSTRACT: Environment vars and other local context during a CPAN Testers report use Carp (); use Metabase::Fact::Hash 0.016; our @ISA = qw/Metabase::Fact::Hash/; # special_vars: $^X, UID/EID, GID/EGID, win32 stuff from CPAN::Reporter # -- dagolden, 2009-03-30 sub optional_keys { qw/environment_vars special_vars/ } sub validate_content { my ($self) = @_; $self->SUPER::validate_content; my $content = $self->content; for my $key ( keys %$content ) { Carp::croak "key '$key' must be a hashref" unless ref $content->{$key} eq 'HASH'; } } # XXX do we want content_metadata? -- dagolden, 2009-03-30 1;
__END__