From: Vincent Pit Date: Sat, 26 Sep 2009 19:15:17 +0000 (+0200) Subject: Add a ->parser_class method to the session that forwards to ->tool->parser_class X-Git-Tag: v1.11~9 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FTest-Valgrind.git;a=commitdiff_plain;h=7a0d14b4934af9bd1d79b8ea1f753a00b497dafd Add a ->parser_class method to the session that forwards to ->tool->parser_class --- diff --git a/lib/Test/Valgrind/Session.pm b/lib/Test/Valgrind/Session.pm index 4b731fc..93218ac 100644 --- a/lib/Test/Valgrind/Session.pm +++ b/lib/Test/Valgrind/Session.pm @@ -304,6 +304,14 @@ Forwards to C<< ->action->do_suppressions >>. sub do_suppressions { $_[0]->action->do_suppressions } +=head2 C + +Calls C<< ->tool->parser_class >> with the current session object as the unique argument. + +=cut + +sub parser_class { $_[0]->tool->parser_class($_[0]) } + =head2 C Calls C<< ->action->report_class >> with the current session object as the unique argument. @@ -385,7 +393,7 @@ sub start { delete @{$self}{qw/last_status exit_code/}; $self->tool->start($self); - $self->parser($self->tool->parser_class($self)->new)->start($self); + $self->parser($self->parser_class->new)->start($self); $self->action->start($self); return;