SmokeRunner::Multi::Validate - Wrapper around Params::Validate for SmokeRunner::Multi
use SmokeRunner::Multi::Validate qw( validate DIR_TYPE TEST_SET_TYPE ); my $spec = { dir => DIR_TYPE, set => TEST_SET_TYPE( optional => 1 ), }; sub foo { my %p = validate( @_, $spec ); ... }
This module provides a wrapper around Params::Validate. It basically consists of type-generating subroutines which can be used to easily create a validation spec for Params::Validate::validate().
Params::Validate
Params::Validate::validate()
This module optionally exports all of the exported constants and subroutines provided by Params::Validate. In addition, it offers a number of higher-level type-generating subroutines. Most of these are wrappers around the Params::Validate types.
These are all wrappers around the standard type parameters provided by Params::Validate.
This is a scalar which must be a valid directory path.
This is an object of the SmokeRunner::Multi::TestSet class.
SmokeRunner::Multi::TestSet
This is an object of the SmokeRunner::Multi::Runner class.
SmokeRunner::Multi::Runner
When you want to use one of the types exported by this module, you use it as the entire definition for a named or position parameter. If you want to further qualify the type with a default, pass this as a parameter to the type generator subroutine:
my $spec = { size => SCALAR_TYPE( default => 5 ), };
See the other classes in this distribution for more information: SmokeRunner::Multi::TestSet, SmokeRunner::Multi::Runner, SmokeRunner::Multi::Reporter, and SmokeRunner::Multi::Config.
Dave Rolsky, <autarch@urth.org>
Please report any bugs or feature requests to bug-smokerunner-multi@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-smokerunner-multi@rt.cpan.org
Copyright 2007 LiveText, Inc., 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 SmokeRunner::Multi, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SmokeRunner::Multi
CPAN shell
perl -MCPAN -e shell install SmokeRunner::Multi
For more information on module installation, please visit the detailed CPAN module installation guide.