X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FTest%2FValgrind%2FCommand.pm;h=0a649d65afeab3ffbf7f063c359bc4d9b183bd2d;hb=195f0244c01e942307e13d693f196156b9263444;hp=75dfae9e4471ee57f8d355b5b3dc245a0842e8cd;hpb=b41c498738a3a4ccb8742883a42e6ea5addb1afd;p=perl%2Fmodules%2FTest-Valgrind.git diff --git a/lib/Test/Valgrind/Command.pm b/lib/Test/Valgrind/Command.pm index 75dfae9..0a649d6 100644 --- a/lib/Test/Valgrind/Command.pm +++ b/lib/Test/Valgrind/Command.pm @@ -9,11 +9,11 @@ Test::Valgrind::Command - Base class for Test::Valgrind commands. =head1 VERSION -Version 1.00 +Version 1.11 =cut -our $VERSION = '1.00'; +our $VERSION = '1.11'; =head1 DESCRIPTION @@ -50,7 +50,7 @@ sub new { } my $args = delete $args{args}; - $class->_croak('Invalid argument list') unless $args and ref $args eq 'ARRAY'; + $class->_croak('Invalid argument list') if $args and ref $args ne 'ARRAY'; bless { args => $args, @@ -98,6 +98,17 @@ This method must be implemented when subclassing. sub suppressions_tag; +=head2 C + +The C<$session> calls this method after receiving a report from the tool and before forwarding it to the action. +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] } + =head1 SEE ALSO L, L.