App-CamelPKI
view release on metacpan or search on metacpan
t/lib/App/CamelPKI/Test.pm view on Meta::CPAN
This module is a library which aims at simplifying App-PKI test writing.
It started as a raw copy of I<Crypt::OpenSSL::CA:Test> you can find in
the C<t/lib> directory of the source L<Crypt::OpenSSL::CA> CPAN source
package.
=head1 EXPORTED FUNCTIONS
All functions described in this section factor some useful test
tactics and are exported by default. The L</SAMPLE INPUTS> may also
be exported upon request.
=over
=cut
use Test::Builder;
use Test::More;
use Test::Group;
use File::Find;
t/lib/App/CamelPKI/Test.pm view on Meta::CPAN
sub tempdir {
return My::Tests::Below->tempdir if
(My::Tests::Below->can("tempdir"));
return $cached if defined $cached;
return ($cached = File::Temp::tempdir
("perl-Camel-PKI-Test-XXXXXX",
TMPDIR => 1, ($ENV{DEBUG} ? () : (CLEANUP => 1))));
}
}
=head1 SAMPLE INPUTS
I<App::CamelPKI::Test> also provides a couple of constants and
class methods to serve as inputs for tests. All such symbols are
exportable, but not exported by default (see L</SYNOPSIS>) and they
start with I<test_>, so as to be clearly identified as sample data in
the test code.
=over
=item I<test_simple_utf8()>
( run in 0.353 second using v1.01-cache-2.11-cpan-4e96b696675 )