NAME
STD::Testit - functions that support scripts generated by STD::TestGen
SYNOPSIS
use STD::TestUtil
$data = STD::TestUtil->fin( $file_name )
$success = STD::TestUtil->fout($file_name, $data)
$require = STD::TestUtil->package2require( $package )
$package = STD::TestUtil->is_package_loaded($package)
$error = STD::TestUtil->load_package($package)
$errors = STD::TestUtil->pod_errors($module)
$scrub_script = STD::TestUtil->scrub_date_version($script)
$date = STD::TestUtil->get_date( )
$table = STD::TestUtil->format_hash_table($hash_p, $width_p, $header_p)
$table = STD::TestUtil->format_array_table($array_p, $width_p, $header_p)
$file = STD::TestUtil->fspec2fspec($from_fspec, $to_fspec $fspec_file, $nofile)
$os_file = STD::TestUtil->fspec2os($fspec, $file, [$no_file])
$fspec_file = STD::TestUtil->os2fspec($fspec, $file, [$no_file])
($file, $path) = STD::TestUtil->find_in_path($fspec, $file, [\@os_path])
$pm_file = STD::TestUtil->fspec2pm( $fpec, $file )
$success = STD::TestUtil->replace_variables( $template_p, $variable_hash_p, $variable_p)
@drivers = STD::TestUtil->drivers($base_file, @dirs)
$driver = STD::TestUtil->is_driver($driver, @drivers)
@globed_files = STD::TestUtil->fspec_glob($fspec, @files)
@globed_files = STD::TestUtil->path_glob($fspec, @files)
DESCRIPTION
The STD::Testit
functions are designed to be used in test scripts generated by STD::Testgen
(Testgen) module. The Teset::Testit
functions shall[1] isolated the actual and expected Perl statements so they may be easily index for use in automatically generated test documents and hide the intermediate variables used to pass the acutal and expected values to the verification routine. The Teset::Testit
functions shall[2] use the functions from the Test (Test) module so that the results of the test scripts generated by the STD::Testgen module may be used with the currently developed Perl test tools.
QUALITY
The STD::Tester functions are a integral part of the STD::Testgen module. The tests performed for the STD::Testgen
module, ("QUALITY" in Testgen), ("testgen_p) by testgen_t.pl verifies all the requirements for the STD::Tester module."
AUTHOR
The holder of the copyright and maintainer is
<support@SoftwareDiamonds.com>
COPYRIGHT NOTICE
Copyrighted (c) 2002 Software Diamonds
All Rights Reserved
BINDING REQUIREMENTS NOTICE
Binding requirements are indexed with the pharse 'shall[dd]' where dd is an unique number for each header section. This conforms to standard federal government practices, 490A ("3.2.3.6" in STD490A). In accordance with the License, Software Diamonds is not liable for any requirement, binding or otherwise.
LICENSE
Software Diamonds permits the redistribution and use in source and binary forms, with or without modification, provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
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.
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.
SEE ALSO
Test "QUALITY" in Testgen testgen_p testgen_t
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 695:
Unterminated L<...> sequence