X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FTest%2FValgrind%2FParser%2FSuppressions%2FText.pm;h=19ef138de0171552e26ddf6b289c81b5c3e0417a;hb=195f0244c01e942307e13d693f196156b9263444;hp=4a1db955a5b71bb5c897858cb773de73dbd0962f;hpb=91e50cd9ec30efd628f6221947d7a523eebb2248;p=perl%2Fmodules%2FTest-Valgrind.git diff --git a/lib/Test/Valgrind/Parser/Suppressions/Text.pm b/lib/Test/Valgrind/Parser/Suppressions/Text.pm index 4a1db95..19ef138 100644 --- a/lib/Test/Valgrind/Parser/Suppressions/Text.pm +++ b/lib/Test/Valgrind/Parser/Suppressions/Text.pm @@ -9,35 +9,22 @@ Test::Valgrind::Parser::Suppressions::Text - Parse valgrind suppressions output =head1 VERSION -Version 1.02 +Version 1.11 =cut -our $VERSION = '1.02'; +our $VERSION = '1.11'; =head1 DESCRIPTION -This class provides a default C method, so that real tools for which suppressions are meaningful can exploit it by inheriting. - -It's not meant to be used directly as a tool. +This is a L object that can extract suppressions from C's text output. =cut -use base qw/Test::Valgrind::Carp/; +use base qw/Test::Valgrind::Parser::Text Test::Valgrind::Carp/; =head1 METHODS -=head2 C - -Just a croaking stub to remind you not to use this class as a real tool. - -If your tool both inherit from this class and from C, and that you want to dispatch the call to your C to its ancestors', be careful with C which may end up calling this dieing version of C. -The solution is to either put C first in the C<@ISA> list or to explicitely call C instead of C. - -=cut - -sub new { shift->_croak('This mock tool isn\'t meant to be used directly') } - =head2 C Generated reports are C objects. @@ -47,12 +34,6 @@ Their C member contains the raw text of the suppression. sub report_class { 'Test::Valgrind::Report::Suppressions' } -=head2 C - -Parses the filehandle C<$fh> fed with the output of F and sends a report to the session C<$session> for each suppression. - -=cut - sub parse { my ($self, $sess, $fh) = @_; @@ -124,7 +105,7 @@ sub parse { =head1 SEE ALSO -L, L. +L, L. =head1 AUTHOR