X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FTest%2FValgrind%2FParser%2FXML%2FTwig.pm;h=7d5bf66e01c91029a1e836892ed9647d49983b53;hb=93bdd32c84466f212aded61d70219e82cb538620;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..7d5bf66 100644 --- a/lib/Test/Valgrind/Parser/XML/Twig.pm +++ b/lib/Test/Valgrind/Parser/XML/Twig.pm @@ -15,6 +15,13 @@ Version 1.10 our $VERSION = '1.10'; +=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 (); use base qw/Test::Valgrind::Parser::XML Test::Valgrind::Carp XML::Twig/; @@ -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; }