Test::Valgrind::Parser::XML - Parse valgrind output as an XML stream.


Test-Valgrind documentation Contained in the Test-Valgrind distribution.

Index


Code Index:

NAME

Top

Test::Valgrind::Parser::XML - Parse valgrind output as an XML stream.

VERSION

Top

Version 1.12

DESCRIPTION

Top

This is a base class for Test::Valgrind::Parser objects that can parse valgrind's XML output.

METHODS

Top

args $session, $fh

Returns the arguments needed to tell valgrind to print in XML to the filehandle $fh.

SEE ALSO

Top

Test::Valgrind, Test::Valgrind::Parser.

AUTHOR

Top

Vincent Pit, <perl at profvince.com>, http://www.profvince.com.

You can contact me by mail or on irc.perl.org (vincent).

BUGS

Top

Please report any bugs or feature requests to bug-test-valgrind at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Valgrind. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

Top

You can find documentation for this module with the perldoc command.

    perldoc Test::Valgrind::Parser::XML

COPYRIGHT & LICENSE

Top


Test-Valgrind documentation Contained in the Test-Valgrind distribution.
package Test::Valgrind::Parser::XML;

use strict;
use warnings;

our $VERSION = '1.12';

use base qw/Test::Valgrind::Parser/;

sub args {
 my $self = shift;
 my ($session, $fh) = @_;

 my $fd_opt = $session->version ge '3.5.0' ? '--xml-fd=' : '--log-fd=';

 return (
  $self->SUPER::args(@_),
  '--xml=yes',
  $fd_opt . fileno($fh),
 );
}

1; # End of Test::Valgrind::Parser::XML