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
24 modules. Its primary purpose is to allow the list of modules in HTML
25 status 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
51 representing the group admin name and contact details. If the
52 "newadmin" parameter is supplied then the admin property is
53 updated.
54
55 my \@modules = $group->modules([\@newmodules]);
56 Gets an array ref representing the members of the group. Each
57 element in the array is an instance of the Test::AutoBuild::Module
58 class. If the "newmodules" array ref is supplied, then the members
59 of the group are updated.
60
61 my $value = $group->option($name, [$newvalue]);
62 Gets the value corresponding to the option "name". If the second
63 "newvalue" parameter is specified then the value for the option is
64 updated.
65
67 Daniel Berrange <dan@berrange.com>
68
70 Copyright (C) 2002-2004 Daniel Berrange <dan@berrange.com>
71
73 perl(1)
74
75
76
77perl v5.12.1 2007-12-08 Test::AutoBuild::Group(3)