
File::System::Test - Module for testing file system drivers

This suite of test subroutines will test if a file system object is internally consistent and can be used to test other features of the object.
The following tests are available:
Checks to make sure the root file object is generally sane. It tests the following:
This test performs the following:
Runs additional container specific tests. It tests the following:
has_children?children_paths?children?child?has_children,
does children_paths return '.' and '..' only?
Does children return an empty list?has_children,
does children_paths return '.' and '..' and more?
Does children return a non-empty list?has_children,
does each child return an object for the same path as lookup.Runs additional content specific tests. It tests the following:
Checks to see if the given file object is writable and confirms that writing works as expected.
Checks to see if the container $obj can be renamed (to 'renamed_container' and back),
moved to the given container $dest (and moved back),
and copied to the given container (and the copy removed).
Checks to make sure that after each of these operations that the entire subtree is preserved.
Checks to see if the content $obj can be renamed (to 'renamed_content' and back),
moved to the given container $dest (and moved back),
and copied to the given container (and the copy removed).
Checks several different glob patterns on the object to see if the glob patterns find the same set of objects that a similar find operation returns. The object passed can be a root object or any other object in the tree.
This method also tests to see that the various different ways of calling glob and find are self-consistent.
That is,
$obj->find(\&test) === $root->find(\&test, $obj)
$obj->glob($test) === $root->glob("$obj/$test")


Andrew Sterling Hanenkamp, <hanenkamp@users.sourceforge.net>

Copyright 2005 Andrew Sterling Hanenkamp. All Rights Reserved.
This library is licensed and distributed under the same terms as Perl itself.