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


NAME

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

Back to Top


DESCRIPTION

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:

is_root_sane($obj, $name)

Checks to make sure the root file object is generally sane. It tests the following:

is_object_sane($obj, $name)

This test performs the following:

is_container_sane($obj, $name)

Runs additional container specific tests. It tests the following:

is_content_sane($obj, $name)

Runs additional content specific tests. It tests the following:

is_content_writable($obj, $name)

Checks to see if the given file object is writable and confirms that writing works as expected.

is_container_mobile($obj, $dest, $name)

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.

is_container_mobile($obj, $dest, $name)

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).

is_glob_and_find_consistent($obj, $name)

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")

Back to Top


SEE ALSO

the File::System::Object manpage

Back to Top


AUTHOR

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

Back to Top


COPYRIGHT AND LICENSE

Copyright 2005 Andrew Sterling Hanenkamp. All Rights Reserved.

This library is licensed and distributed under the same terms as Perl itself.

Back to Top

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