]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/commitdiff
Add a ->parser_class method to the session that forwards to ->tool->parser_class
authorVincent Pit <vince@profvince.com>
Sat, 26 Sep 2009 19:15:17 +0000 (21:15 +0200)
committerVincent Pit <vince@profvince.com>
Sat, 26 Sep 2009 19:15:17 +0000 (21:15 +0200)
lib/Test/Valgrind/Session.pm

index 4b731fca2b769e137bdd9eea6b3e611dfbce1fc4..93218ac714c8f774d3e9c5f4b5c0051df379af88 100644 (file)
@@ -304,6 +304,14 @@ Forwards to C<< ->action->do_suppressions >>.
 
 sub do_suppressions { $_[0]->action->do_suppressions }
 
+=head2 C<parser_class>
+
+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<report_class>
 
 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;