X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FTest%2FValgrind%2FTool.pm;h=dc7ba2f0f2376cda4a042dc38c7a484c4de1a217;hb=refs%2Ftags%2Fv1.11;hp=8a0675fa8b6d2084ed5281354d2a1a029e12f854;hpb=732d824a6020c1bc4db54f069e64a112b616dff3;p=perl%2Fmodules%2FTest-Valgrind.git diff --git a/lib/Test/Valgrind/Tool.pm b/lib/Test/Valgrind/Tool.pm index 8a0675f..dc7ba2f 100644 --- a/lib/Test/Valgrind/Tool.pm +++ b/lib/Test/Valgrind/Tool.pm @@ -9,11 +9,11 @@ Test::Valgrind::Tool - Base class for Test::Valgrind tools. =head1 VERSION -Version 1.02 +Version 1.11 =cut -our $VERSION = '1.02'; +our $VERSION = '1.11'; =head1 DESCRIPTION @@ -118,6 +118,17 @@ Called when the C<$session> starts. Defaults to set L. +=head2 C + +The C<$session> calls this method after receiving a report from the parser and before letting the command filter it. +You can either return a mangled C<$report> (which does not need to be a clone of the original) or C if you want the action to ignore it completely. + +Defaults to the identity function. + +=cut + +sub filter { $_[2] } + =head2 C Called when the C<$session> finishes.