-package Test::Valgrind::Tool::SuppressionsParser;
+package Test::Valgrind::Parser::Suppressions::Text;
use strict;
use warnings;
=head1 NAME
-Test::Valgrind::Tool::SuppressionsParser - Mock Test::Valgrind::Tool for parsing valgrind suppressions.
+Test::Valgrind::Parser::Suppressions::Text - Parse valgrind suppressions output as text blocks.
=head1 VERSION
sub new { shift->_croak('This mock tool isn\'t meant to be used directly') }
-=head2 C<report_class_suppressions $session>
+=head2 C<report_class>
Generated reports are C<Test::Valgrind::Report::Suppressions> objects.
Their C<data> member contains the raw text of the suppression.
=cut
-sub report_class_suppressions { 'Test::Valgrind::Report::Suppressions' }
+sub report_class { 'Test::Valgrind::Report::Suppressions' }
-=head2 C<parse_suppressions $session, $fh>
+=head2 C<parse $session, $fh>
Parses the filehandle C<$fh> fed with the output of F<valgrind --gen-suppressions=all> and sends a report to the session C<$session> for each suppression.
=cut
-sub parse_suppressions {
+sub parse {
my ($self, $sess, $fh) = @_;
my ($s, $in) = ('', 0);
You can find documentation for this module with the perldoc command.
- perldoc Test::Valgrind::Tool::SuppressionsParser
+ perldoc Test::Valgrind::Parser::Suppressions::Text
=head1 COPYRIGHT & LICENSE
=cut
-# End of Test::Valgrind::Tool::SuppressionsParser
+# End of Test::Valgrind::Parser::Suppressions::Text
package Test::Valgrind::Report::Suppressions;
=cut
-use base qw/Test::Valgrind::Tool::SuppressionsParser Test::Valgrind::Tool/;
+use base qw/Test::Valgrind::Tool/;
=head1 METHODS
-This class inherits L<Test::Valgrind::Tool> and L<Test::Valgrind::Tool::SuppressionsParser>.
+This class inherits L<Test::Valgrind::Tool>.
=head2 C<requires_version>
=head1 SEE ALSO
-L<Test::Valgrind>, L<Test::Valgrind::Tool>, L<Test::Valgrind::Tool::SuppressionsParser>.
+L<Test::Valgrind>, L<Test::Valgrind::Tool>.
L<XML::Twig>.
pod_coverage_ok('Test::Valgrind::Command::Perl', $trustparents);
pod_coverage_ok('Test::Valgrind::Command::PerlScript', $trustparents);
+pod_coverage_ok('Test::Valgrind::Parser::Suppressions::Text');
+
pod_coverage_ok('Test::Valgrind::Report');
pod_coverage_ok('Test::Valgrind::Session');
pod_coverage_ok('Test::Valgrind::Suppressions');
pod_coverage_ok('Test::Valgrind::Tool');
-pod_coverage_ok('Test::Valgrind::Tool::SuppressionsParser');
pod_coverage_ok('Test::Valgrind::Tool::memcheck', $trustparents);