1Test::AutoBuild::Group(U3s)er Contributed Perl DocumentatTieosnt::AutoBuild::Group(3)
2
3
4
6 Test::AutoBuild::Group - Simple grouping of modules
7
9 use Test::AutoBuild::Group
10
11 my $group = Test::AutoBuild::Group->new(name => $name,
12 label => $label,
13 modules => \@modules,
14 options => \%options);
15
16 my $name = $group->name([$newname]);
17 my $label = $group->label([$newlabel]);
18 my $admin = $group->admin([$newadmin]);
19 my \@modules = $group->modules([\@modules]);
20 my $value = $group->option($name[, $newvalue]);
21
23 The Test::AutoBuild::Group module provides for simple grouping of mod‐
24 ules. Its primary purpose is to allow the list of modules in HTML sta‐
25 tus pages to be split up into groups for easy browsing.
26
28 The valid configuration options for the "groups" block are
29
31 my $group = Test::AutoBuild::Group->new(name => $name, label => $label,
32 [modules => \@modules,] [admin => $admin,] [options => \%options]);
33 Creates a new group object. "modules" is an array ref of
34 Test::AutoBUild::Module objects representing the members of the
35 group. "name" is a short alphanumeric token for the name of the
36 group. "label" is a free text title for the group. "admin" is the
37 name/contact details of the group administrator. "options" is a
38 hash ref of arbitrary options for the group.
39
40 my $name = $group->name([$newname]);
41 Gets the name of the group. The name is a short alphanumeric token.
42 If the "newname" parameter is supplied then the name is updated.
43
44 my $label = $group->label([$newlabel]);
45 Gets the label of the group. The label is a free text title for the
46 group. If the "newlabel" parameter is supplied then the label is
47 updated.
48
49 my $admin = $group->admin([$newadmin]);
50 Gets the admin of the group. The admin property is free text repre‐
51 senting the group admin name and contact details. If the "newadmin"
52 parameter is supplied then the admin property is updated.
53
54 my \@modules = $group->modules([\@newmodules]);
55 Gets an array ref representing the members of the group. Each ele‐
56 ment in the array is an instance of the Test::AutoBuild::Module
57 class. If the "newmodules" array ref is supplied, then the members
58 of the group are updated.
59
60 my $value = $group->option($name, [$newvalue]);
61 Gets the value corresponding to the option "name". If the second
62 "newvalue" parameter is specified then the value for the option is
63 updated.
64
66 Daniel Berrange <dan@berrange.com>
67
69 Copyright (C) 2002-2004 Daniel Berrange <dan@berrange.com>
70
72 perl(1)
73
74
75
76perl v5.8.8 2007-12-09 Test::AutoBuild::Group(3)