]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/blob - lib/Test/Valgrind/Parser/Text.pm
cbe4478ba42c7ea685bb166908a21ce9c16038c3
[perl/modules/Test-Valgrind.git] / lib / Test / Valgrind / Parser / Text.pm
1 package Test::Valgrind::Parser::Text;
2
3 use strict;
4 use warnings;
5
6 =head1 NAME
7
8 Test::Valgrind::Parser::Text - Parse valgrind output as a text stream.
9
10 =head1 VERSION
11
12 Version 1.18
13
14 =cut
15
16 our $VERSION = '1.18';
17
18 =head1 DESCRIPTION
19
20 This is a L<Test::Valgrind::Parser> object that can extract suppressions from C<valgrind>'s text output.
21
22 =cut
23
24 use base qw<Test::Valgrind::Parser>;
25
26 =head1 METHODS
27
28 =head2 C<args>
29
30     my @args = $tvp->args($session, $fh);
31
32 Returns the arguments needed to tell C<valgrind> to print in text to the filehandle C<$fh>.
33
34 =cut
35
36 sub args {
37  my $self = shift;
38  my ($session, $fh) = @_;
39
40  return (
41   $self->SUPER::args(@_),
42   '--log-fd=' . fileno($fh),
43  );
44 }
45
46 =head1 SEE ALSO
47
48 L<Test::Valgrind>, L<Test::Valgrind::Parser>.
49
50 =head1 AUTHOR
51
52 Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.
53
54 You can contact me by mail or on C<irc.perl.org> (vincent).
55
56 =head1 BUGS
57
58 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>.
59 I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
60
61 =head1 SUPPORT
62
63 You can find documentation for this module with the perldoc command.
64
65     perldoc Test::Valgrind::Parser::Text
66
67 =head1 COPYRIGHT & LICENSE
68
69 Copyright 2009,2010,2011,2013,2015,2016 Vincent Pit, all rights reserved.
70
71 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
72
73 =cut
74
75 1; # End of Test::Valgrind::Parser::Text