1Test::AutoBuild::ResultU(s3e)r Contributed Perl DocumentaTteisotn::AutoBuild::Result(3)
2
3
4
6 Test::AutoBuild::Result - represents results of an action
7
9 use Test::AutoBuild::Result;
10
12 This module provides a representation of the results from an
13 'interesting' action of the build process. The results current include
14 a key identifying the action, status string identifying the outcome of
15 the action, a log of command output, and start and end times.
16
18 my $resule = Test::AutoBuild::Result->new(%params);
19 Creates a new result object.
20
21 my $name = $result->name();
22 Retrieves the name associated with the result, which is typically
23 an alpha numeric string.
24
25 my $label = $result->label();
26 Retrieves the label associated with the result, which can be free
27 format text.
28
29 my $log = $result->log();
30 Retrieves the log of the output of the action
31
32 my $status = $result->status();
33 Retrieves the status of the result, one of 'pending', 'success',
34 'failed', 'aborted', or 'skipped'.
35
36 my $time = $result->start_time();
37 Retrieves the time at which the action began execution, or
38 undefined if it is yet to run
39
40 my $time = $result->end_time();
41 Retrieves the time at which the action completed execution, or
42 undefined if it is yet to complete
43
44 $result->add_result($sub_result);
45 Adds a nested result to this result. The $sub_result parameter
46 should be another instance of the Test::AutoBuild::Result class.
47
48 @results = $result->results
49 Retrieves a list of all nested results, previously added with the
50 "add_result" method.
51
52 $boolean = $result->has_results
53 Returns a true value if there are nested results
54
56 Daniel Berrange <dan@berrange.com>
57
59 Copyright (C) 2005 Daniel Berrange <dan@berrange.com>
60
62 perl(1), Test::AutoBuild::Module
63
64
65
66perl v5.12.1 2007-12-08 Test::AutoBuild::Result(3)