]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/blobdiff - lib/Test/Valgrind/Tool.pm
Remove ->parse() from Tool.pm
[perl/modules/Test-Valgrind.git] / lib / Test / Valgrind / Tool.pm
index 147ee1109b00dc25851b6b8492f1d9d4c3ab50dd..8a0675fa8b6d2084ed5281354d2a1a029e12f854 100644 (file)
@@ -71,6 +71,16 @@ Defaults to return C<undef>, which skips suppression generation.
 
 sub new_trainer { }
 
+=head2 C<parser_class $session>
+
+Returns the class from which the parser for this tool output will be instanciated.
+
+This method must be implemented when subclassing.
+
+=cut
+
+sub parser_class;
+
 =head2 C<report_class $session>
 
 Returns the class in which suppression reports generated by this tool will be blessed.
@@ -108,45 +118,6 @@ Called when the C<$session> starts.
 
 Defaults to set L<Test::Valgrind::Component/started>.
 
-=head2 C<parse $session, $fh>
-
-Wraps around either L</parse_suppressions> or L</parse_analysis> depending on the running mode of the C<$session>.
-Croaks if the tool isn't started.
-
-=cut
-
-sub parse {
- my ($self, $sess, $fh) = @_;
-
- $self->_croak('Tool isn\'t started') unless $self->started;
-
- if ($sess->do_suppressions) {
-  $self->parse_suppressions($sess, $fh);
- } else {
-  $self->parse_analysis($sess, $fh);
- }
-}
-
-=head2 C<parse_suppressions $sesssion, $fh>
-
-Parse the suppression reports that the C<valgrind> process attached to the session C<$session> send through the filehandle C<$fh>.
-
-This method must be implemented when subclassing.
-
-=cut
-
-sub parse_suppressions;
-
-=head2 C<parse_analysis $sesssion, $fh>
-
-Parse the error reports sent by the C<valgrind> process attached to the session C<$session> through the filehandle C<$fh>.
-
-This method must be implemented when subclassing.
-
-=cut
-
-sub parse_analysis;
-
 =head2 C<finish $session>
 
 Called when the C<$session> finishes.