The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Test::Inline::Handler::File - Test::Inline IO Handler for Version Control Systems

DESCRIPTION

This class implements a Test::Inline 2 IO Handler for outputing test files into trees of directories checkout out from a version control system.

METHODS

new $path

The new constructor takes a root path of the checkout module and creates an IO handler for that location.

If not passed a param, it will assume the current directory as the root of the module. If set to a subdirectory, this should not be fatal, as long as the directory is added to the repository.

The constructor will automatically detect the type of version control system in use, and should act accordindly.

Initially, this class support CVS and Subversion.

Returns a new Test::Inline::Handler::File::VCS, or undef if it cannot determine the VCS type.

VCS

The VCS accessor returns the code for the version control system.

Currently, this is 'CVS' for CVS, or 'SVN' for Subversion.

write $file, $content

The write method works as for the parent Test::Inline::Handler::File class, except that if the file does not yet exist, it will be additionally added to the version control system.

TO DO

- Support additional Version Control Systems

SUPPORT

See the main SUPPORT section.

AUTHOR

Adam Kennedy (Maintainer), http://ali.as/, cpan@ali.as

COPYRIGHT

Copyright (c) 2004 - 2005 Phase N Austalia. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.