1 package Test::Valgrind::Parser::XML;
8 Test::Valgrind::Parser::XML - Parse valgrind output as an XML stream.
16 our $VERSION = '1.12';
20 This is a base class for L<Test::Valgrind::Parser> objects that can parse C<valgrind>'s XML output.
24 use base qw<Test::Valgrind::Parser>;
28 =head2 C<args $session, $fh>
30 Returns the arguments needed to tell C<valgrind> to print in XML to the filehandle C<$fh>.
36 my ($session, $fh) = @_;
38 my $fd_opt = $session->version ge '3.5.0' ? '--xml-fd=' : '--log-fd=';
41 $self->SUPER::args(@_),
43 $fd_opt . fileno($fh),
49 L<Test::Valgrind>, L<Test::Valgrind::Parser>.
53 Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.
55 You can contact me by mail or on C<irc.perl.org> (vincent).
59 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>.
60 I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
64 You can find documentation for this module with the perldoc command.
66 perldoc Test::Valgrind::Parser::XML
68 =head1 COPYRIGHT & LICENSE
70 Copyright 2009,2010,2011 Vincent Pit, all rights reserved.
72 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
76 1; # End of Test::Valgrind::Parser::XML