File-Package
view release on metacpan or search on metacpan
t/File/Package.pm view on Meta::CPAN
########
# The Test::STDmaker module uses the data after the __DATA__
# token to automatically generate the this file.
#
# Don't edit anything before __DATA_. Edit instead
# the data after the __DATA__ token.
#
# ANY CHANGES MADE BEFORE the __DATA__ token WILL BE LOST
#
# the next time Test::STDmaker generates this file.
#
#
=head1 TITLE PAGE
Detailed Software Test Description (STD)
for
Perl File::Package Program Module
Revision: -
Version:
Date: 2004/04/10
Prepared for: General Public
Prepared by: http://www.SoftwareDiamonds.com support@SoftwareDiamonds.com
Classification: None
=head1 SCOPE
This detail STD and the
L<General Perl Program Module (PM) STD|Test::STD::PerlSTD>
establishes the tests to verify the
requirements of Perl Program Module (PM) L<File::Package|File::Package>
The format of this STD is a tailored L<2167A STD DID|Docs::US_DOD::STD>.
in accordance with
L<Detail STD Format|Test::STDmaker/Detail STD Format>.
#######
#
# 4. TEST DESCRIPTIONS
#
# 4.1 Test 001
#
# ..
#
# 4.x Test x
#
#
=head1 TEST DESCRIPTIONS
The test descriptions uses a legend to
identify different aspects of a test description
in accordance with
L<STD FormDB Test Description Fields|Test::STDmaker/STD FormDB Test Description Fields>.
=head2 Test Plan
T: 14^
=head2 ok: 1
C:
use File::Package;
my $uut = 'File::Package';
^
VO: ^
N: UUT loaded^
A: my $loaded = $uut->is_package_loaded('File::Package')^
E: '1'^
ok: 1^
=head2 ok: 2
N: Good Load^
A: my $error = $uut->load_package( 'File::Basename' )^
E: ''^
ok: 2^
=head2 ok: 3
DO: ^
A: $error = $uut->load_package( '_File_::BadLoad' )^
VO: ^
N: Bad Load^
C: $error = $uut->load_package( '_File_::BadLoad' )^
DM: $error^
A: $error =~ /^^Cannot load _File_::BadLoad/ ? 1 : 0^
E: 1^
ok: 3^
=head2 ok: 4
DO: ^
A: $uut->load_package( '_File_::BadPackage' )^
VO: ^
N: File Loads, Package absent^
C: $error = $uut->load_package( '_File_::BadPackage' )^
DM: $error^
A: $error =~ /_File_::BadPackage absent./ ? 1 : 0^
E: 1^
ok: 4^
=head2 ok: 5
DO: ^
A: $uut->load_package( '_File_::Multi' )^
VO: ^
N: Multiple Package Load^
A:
( run in 2.641 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )