App-CamelPKI
view release on metacpan or search on metacpan
inc/My/Tests/Below.pm view on Meta::CPAN
#warn "Inhibiting load of $1";
$INC{$1} = $self->{packfilename}; last;
}
};
=item I<%ENV is standardized>
When running under C<require My::Tests::Below>, %ENV is reset to a
sane value to avoid freaky side effects when something weird is in the
PATH or in the locales and this influences some shell tool fired up by
the test suite. The original contents of %ENV is stashed away in
%main::ENVorig in case it is actually needed.
=cut
local %main::ENVorig; %main::ENVorig = %ENV;
local %ENV = (
"PATH" => "/usr/bin:/bin:/usr/local/bin:/usr/sbin:/sbin:".
"/usr/local/sbin",
"DEBUG" => $ENV{"DEBUG"} ? 1 : 0,
lib/App/CamelPKI/Error.pm view on Meta::CPAN
=for My::Tests::Below "App::CamelPKI::Error::IO" begin
throw App::CamelPKI::Error::IO("cannot open file",
-IOfile => $file);
=for My::Tests::Below "App::CamelPKI::Error::IO" end
The ->{-errorcode} field will be automatically set with the numerical
value of $! (see L</perlvar>) when the error is thrown. The
->{-error} field will be automatically set whith the textual value of
this same variable; note that this value depends on the active locale
and therefore should not be tested by error catching code.
=cut
package App::CamelPKI::Error::IO;
use vars qw(@ISA); @ISA=qw(App::CamelPKI::Error);
sub new {
my $class = shift;
local $Error::Depth = $Error::Depth + 1;
( run in 2.314 seconds using v1.01-cache-2.11-cpan-ceb78f64989 )