Test::Proto::Series - Container for test prototypes.
This is a container for test prototypes and is used to create groups, repetition, and options in DTD-like validation methods such as
Test::Proto::ArrayRef::contains_only. To validate arrays/lists, consider using Test::Proto::ArrayRef.
Constructor. Arguments become contents.
my $remainder = $series->validate_many(['ONION', 'TURNIP', 'SALT']);
Tries to match all the elements in the argumnent withe the contents previously specified. It will return the remaining elements, or the first failure it runs into.
my $remainder = $series->validate('ONION');
validate_many, but wraps the first argument in an arrayref.
new is called,
initialise is called on the object just before it is returned. This mostly exists so that subclasses wishing to add initial tests do not have to overload
Sets the minimum and maximum repeats allowed.
Sets the contents allowed in the series. Returns the series.
my $series = pSeries($valid_key, $integer)->repeat(1,10); $series->clone->repeat(1,20)->validate_many($long_key_list);
Creates a copy of the series. Individual contents remain references.
For author, version, bug reports, support, etc, please see Test::Proto.