X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FTest%2FValgrind%2FParser%2FXML%2FTwig.pm;h=8b6d29baf32931745b5b2342208effcf8ee5dace;hb=90b6c795c9fab6343c3501923aacc8f43f7a82ea;hp=f3e268fd3af28822c266f6cd4d2ec16a95a2d037;hpb=d44c95e8e9820ee69e76506bde7c2c5fbe37b568;p=perl%2Fmodules%2FTest-Valgrind.git diff --git a/lib/Test/Valgrind/Parser/XML/Twig.pm b/lib/Test/Valgrind/Parser/XML/Twig.pm index f3e268f..8b6d29b 100644 --- a/lib/Test/Valgrind/Parser/XML/Twig.pm +++ b/lib/Test/Valgrind/Parser/XML/Twig.pm @@ -9,11 +9,18 @@ Test::Valgrind::Parser::XML::Twig - Parse valgrind XML output with XML::Twig. =head1 VERSION -Version 1.10 +Version 1.12 =cut -our $VERSION = '1.10'; +our $VERSION = '1.12'; + +=head1 DESCRIPTION + +This subclass of L and L encapsulates an L parser inside the L framework. +It is able to parse the XML output from C up to protocol version 4 and to generate the appropriate reports accordingly. + +=cut use Scalar::Util (); @@ -49,7 +56,8 @@ sub stash { shift->{Stash} } =head2 C -The version of the protocol that the stream is currently conforming to. +The version of the protocol that the current stream is conforming to. +It is reset before and after the parsing phase, so it's effectively only available from inside L. =cut @@ -71,9 +79,13 @@ sub start { sub parse { my ($self, $sess, $fh) = @_; + $self->protocol_version(undef); + $self->XML::Twig::parse($fh); $self->purge; + $self->protocol_version(undef); + return; } @@ -178,7 +190,7 @@ This program is free software; you can redistribute it and/or modify it under th package Test::Valgrind::Parser::XML::Twig::Elt; -our $VERSION = '1.10'; +our $VERSION = '1.12'; BEGIN { require XML::Twig; }