X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FTest%2FValgrind%2FSession.pm;h=b1710e2947acf86b0bf17922ce713fd86dd4462e;hb=5d34ea42cbf8c01f49b45a894ded6c312bbae87e;hp=e674ebab58a6957c4fe4c7bd0687cf95c62ac9e7;hpb=f30a358c3d5a56b548e756968096975aada21d5f;p=perl%2Fmodules%2FTest-Valgrind.git diff --git a/lib/Test/Valgrind/Session.pm b/lib/Test/Valgrind/Session.pm index e674eba..b1710e2 100644 --- a/lib/Test/Valgrind/Session.pm +++ b/lib/Test/Valgrind/Session.pm @@ -9,11 +9,11 @@ Test::Valgrind::Session - Test::Valgrind session object. =head1 VERSION -Version 1.02 +Version 1.11 =cut -our $VERSION = '1.02'; +our $VERSION = '1.11'; =head1 DESCRIPTION @@ -83,7 +83,7 @@ sub new { my %args = @_; my @paths; - my $vg = delete $args{vg}; + my $vg = delete $args{valgrind}; if (defined $vg and not ref $vg) { @paths = ($vg); } else { @@ -304,9 +304,17 @@ 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. +Calls C<< ->tool->report_class >> with the current session object as the unique argument. =cut @@ -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;