Test::Inline::Handler::File - Test::Inline IO Handler for Version Control Systems
This class implements a Test::Inline 2 IO Handler for outputing test files into trees of directories checkout out from a version control system.
The new constructor takes a root path of the checkout module and creates an IO handler for that location.
new
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.
Test::Inline::Handler::File::VCS
undef
The VCS accessor returns the code for the version control system.
VCS
Currently, this is 'CVS' for CVS, or 'SVN' for Subversion.
'CVS'
'SVN'
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.
write
- Support additional Version Control Systems
See the main SUPPORT section.
Adam Kennedy (Maintainer), http://ali.as/, cpan@ali.as
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.
To install Test::Inline, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Inline
CPAN shell
perl -MCPAN -e shell install Test::Inline
For more information on module installation, please visit the detailed CPAN module installation guide.