Test::AutoBuild::Group - Simple grouping of modules
use Test::AutoBuild::Group my $group = Test::AutoBuild::Group->new(name => $name, label => $label, modules => \@modules, options => \%options); my $name = $group->name([$newname]); my $label = $group->label([$newlabel]); my $admin = $group->admin([$newadmin]); my \@modules = $group->modules([\@modules]); my $value = $group->option($name[, $newvalue]);
The Test::AutoBuild::Group module provides for simple grouping of modules. Its primary purpose is to allow the list of modules in HTML status pages to be split up into groups for easy browsing.
The valid configuration options for the groups block are
groups
Creates a new group object. modules is an array ref of Test::AutoBUild::Module objects representing the members of the group. name is a short alphanumeric token for the name of the group. label is a free text title for the group. admin is the name/contact details of the group administrator. options is a hash ref of arbitrary options for the group.
modules
name
label
admin
options
Gets the name of the group. The name is a short alphanumeric token. If the newname parameter is supplied then the name is updated.
newname
Gets the label of the group. The label is a free text title for the group. If the newlabel parameter is supplied then the label is updated.
newlabel
Gets the admin of the group. The admin property is free text representing the group admin name and contact details. If the newadmin parameter is supplied then the admin property is updated.
newadmin
Gets an array ref representing the members of the group. Each element in the array is an instance of the Test::AutoBuild::Module class. If the newmodules array ref is supplied, then the members of the group are updated.
newmodules
Gets the value corresponding to the option name. If the second newvalue parameter is specified then the value for the option is updated.
newvalue
Daniel Berrange <dan@berrange.com>
Copyright (C) 2002-2004 Daniel Berrange <dan@berrange.com>
perl(1)
To install Test::AutoBuild, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::AutoBuild
CPAN shell
perl -MCPAN -e shell install Test::AutoBuild
For more information on module installation, please visit the detailed CPAN module installation guide.