Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

/var/sites/help-site.com/auto/tmp/CPAN/9677/File-AnySpec-0.06/t/File/AnySpec.pm

/var/sites/help-site.com/auto/tmp/CPAN/9677/File-AnySpec-0.06/t/File/AnySpec.pm


SCOPE

This detail STD and the General Perl Program Module (PM) STD establishes the tests to verify the requirements of Perl Program Module (PM) File::AnySpec

The format of this STD is a tailored 2167A STD DID. in accordance with Detail STD Format.

####### # # 4. TEST DESCRIPTIONS # # 4.1 Test 001 # # .. # # 4.x Test x # #


TEST DESCRIPTIONS

The test descriptions uses a legend to identify different aspects of a test description in accordance with STD FormDB Test Description Fields.

Test Plan


 T: 8^

ok: 1




  C:

     use File::Spec;

     use File::Package;

     my $fp = 'File::Package';

     my $as = 'File::AnySpec';

     my $loaded = '';

     my @drivers;

     my @files;

 ^

 VO: ^

  N: UUT not loaded^

  A: $loaded = $fp->is_package_loaded($as)^

  E:  ''^

 ok: 1^

ok: 2


  N: Load UUT^

  R: L<DataPort::DataFile/general [1] - load>^

  S: $loaded^

  C: my $errors = $fp->load_package( $as)^

  A: $errors^

 SE: ''^

 ok: 2^

ok: 3


  N: fspec2fspec^

  A: $as->fspec2fspec( 'Unix', 'MSWin32', 'File/FileUtil.pm')^

  E: 'File\\FileUtil.pm'^

 ok: 3^

ok: 4


  N: fspec2os os2fspec 1^

  A: $as->os2fspec( 'Unix', ($as->fspec2os( 'Unix', 'File/FileUtil.pm')))^

  E: 'File/FileUtil.pm'^

 ok: 4^

ok: 5


  N: fspec2os os2fspec 2^

  A: $as->os2fspec( 'MSWin32', ($as->fspec2os( 'MSWin32', 'Test\\TestUtil.pm')))^

  E: 'Test\\TestUtil.pm'^

 ok: 5^

ok: 6


  N: fspec_glob Unix^

  C: @drivers = sort $as->fspec_glob('Unix','Drivers/G*.pm')^

  A: join (', ', @drivers)^

  E: File::Spec->catfile('Drivers', 'Generate.pm')^

 ok: 6^

ok: 7


  N: fspec2pm^

  A: $as->fspec2pm('Unix', 'File/AnySpec.pm')^

  E: "$as"^

 ok: 7^

ok: 8


 DO: ^

  N: pm2fspec^

  A: $as->pm2fspec( 'Unix', 'File::Basename')^

 VO: ^

  N: pm2fspec^

  C: @files = $as->pm2fspec( 'Unix', 'File::Basename')^

  A: $files[-1]^

  E: 'File/Basename.pm'^

 ok: 8^

####### # # 5. REQUIREMENTS TRACEABILITY # #


REQUIREMENTS TRACEABILITY


  Requirement                                                      Test

 ---------------------------------------------------------------- ----------------------------------------------------------------

 L<DataPort::DataFile/general [1] - load>                         L<t::File::AnySpec/ok: 2>



  Test                                                             Requirement

 ---------------------------------------------------------------- ----------------------------------------------------------------

 L<t::File::AnySpec/ok: 2>                                        L<DataPort::DataFile/general [1] - load>



=cut

####### # # 6. NOTES # #


NOTES

copyright 2003 Software Diamonds.

Software Diamonds permits the redistribution and use in source and binary forms, with or without modification, provided that the following conditions are met:

/=over 4

/=item 1

Redistributions of source code, modified or unmodified must retain the above copyright notice, this list of conditions and the following disclaimer.

/=item 2

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

/=back

SOFTWARE DIAMONDS, http://www.SoftwareDiamonds.com, PROVIDES THIS SOFTWARE 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SOFTWARE DIAMONDS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING USE OF THIS SOFTWARE, EVEN IF ADVISED OF NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE POSSIBILITY OF SUCH DAMAGE.

####### # # 2. REFERENCED DOCUMENTS # # #


SEE ALSO

the File::AnySpec manpage







Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy