]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/blob - lib/Test/Valgrind/Parser.pm
c02d77f541e53db90d81c1fb393cf6ddea8802a5
[perl/modules/Test-Valgrind.git] / lib / Test / Valgrind / Parser.pm
1 package Test::Valgrind::Parser;
2
3 use strict;
4 use warnings;
5
6 =head1 NAME
7
8 Test::Valgrind::Parser - Base class for Test::Valgrind parsers.
9
10 =head1 VERSION
11
12 Version 1.10
13
14 =cut
15
16 our $VERSION = '1.10';
17
18 =head1 DESCRIPTION
19
20 This class is the base for L<Test::Valgrind> parsers.
21
22 =cut
23
24 use base qw/Test::Valgrind::Component Test::Valgrind::Carp/;
25
26 =head1 METHODS
27
28 =head2 C<new>
29
30 =head2 C<args $session, $fh>
31
32 Returns the list of parser-specific arguments that are to be passed to C<valgrind>.
33
34 Defaults to the empty list.
35
36 =cut
37
38 sub args { }
39
40 =head2 C<parse $session, $fh>
41
42 This method must be implemented when subclassing.
43
44 =cut
45
46 sub parse;
47
48 =head2 C<start $session>
49
50 Called when the C<$session> starts.
51
52 Defaults to set L<Test::Valgrind::Component/started>.
53
54 =head2 C<finish $session>
55
56 Called when the C<$session> finishes.
57
58 Defaults to clear L<Test::Valgrind::Component/started>.
59
60 =head1 SEE ALSO
61
62 L<Test::Valgrind>, L<Test::Valgrind::Component>, L<Test::Valgrind::Session>.
63
64 =head1 AUTHOR
65
66 Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.
67
68 You can contact me by mail or on C<irc.perl.org> (vincent).
69
70 =head1 BUGS
71
72 Please report any bugs or feature requests to C<bug-test-valgrind at rt.cpan.org>, or through the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Valgrind>.
73 I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
74
75 =head1 SUPPORT
76
77 You can find documentation for this module with the perldoc command.
78
79     perldoc Test::Valgrind::Parser
80
81 =head1 COPYRIGHT & LICENSE
82
83 Copyright 2009 Vincent Pit, all rights reserved.
84
85 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
86
87 =cut
88
89 1; # End of Test::Valgrind::Parser