1Test::Valgrind::Action(U3s)er Contributed Perl DocumentatTieosnt::Valgrind::Action(3)
2
3
4
6 Test::Valgrind::Action - Base class for Test::Valgrind actions.
7
9 Version 1.19
10
12 This class is the base for Test::Valgrind actions.
13
14 Actions are called each time a tool encounter an error and decide what
15 to do with it (for example passing or failing tests).
16
18 "new"
19 my $tva = Test::Valgrind::Action->new(action => $action);
20
21 Creates a new action object of type $action by requiring and
22 redispatching the method call to the module named $action if it
23 contains '::' or to "Test::Valgrind::Action::$action" otherwise. The
24 class represented by $action must inherit this class.
25
26 "do_suppressions"
27 Indicates if the action wants "valgrind" to run in suppression-
28 generating mode or in analysis mode.
29
30 "start"
31 $tva->start($session);
32
33 Called when the $session starts.
34
35 Defaults to set "started" in Test::Valgrind::Component.
36
37 "report"
38 $tva->report($session, $report);
39
40 Invoked each time the "valgrind" process attached to the $session spots
41 an error. $report is a Test::Valgrind::Report object describing the
42 error.
43
44 Defaults to check "started" in Test::Valgrind::Component.
45
46 "abort"
47 $tva->abort($session, $msg);
48
49 Triggered when the $session has to interrupt the action.
50
51 Defaults to croak.
52
53 "finish"
54 $tva->finish($session);
55
56 Called when the $session finishes.
57
58 Defaults to clear "started" in Test::Valgrind::Component.
59
60 "status"
61 $tva->status($session);
62
63 Returns the status code corresponding to the last run of the action.
64
66 Test::Valgrind, Test::Valgrind::Component, Test::Valgrind::Session.
67
69 Vincent Pit, "<perl at profvince.com>", <http://www.profvince.com>.
70
71 You can contact me by mail or on "irc.perl.org" (vincent).
72
74 Please report any bugs or feature requests to "bug-test-valgrind at
75 rt.cpan.org", or through the web interface at
76 <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Valgrind>. I will
77 be notified, and then you'll automatically be notified of progress on
78 your bug as I make changes.
79
81 You can find documentation for this module with the perldoc command.
82
83 perldoc Test::Valgrind::Action
84
86 Copyright 2009,2010,2011,2013,2015,2016 Vincent Pit, all rights
87 reserved.
88
89 This program is free software; you can redistribute it and/or modify it
90 under the same terms as Perl itself.
91
92
93
94perl v5.32.0 2020-07-28 Test::Valgrind::Action(3)