1 package Test::Valgrind::Parser::XML;
8 Test::Valgrind::Parser::XML - Parse valgrind output as an XML stream.
16 our $VERSION = '1.10';
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(@_),
42 $fd_opt . fileno($fh),
48 L<Test::Valgrind>, L<Test::Valgrind::Parser>.
52 Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.
54 You can contact me by mail or on C<irc.perl.org> (vincent).
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.
63 You can find documentation for this module with the perldoc command.
65 perldoc Test::Valgrind::Parser::XML
67 =head1 COPYRIGHT & LICENSE
69 Copyright 2009 Vincent Pit, all rights reserved.
71 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
75 1; # End of Test::Valgrind::Parser::XML