@@ -9,11+9,11 @@ Test::Valgrind::Tool::memcheck - Run an analysis through the memcheck tool.
=head1 VERSION
=head1 VERSION
-Version 1.10
+Version 1.14
=cut
=cut
-our $VERSION = '1.10';
+our $VERSION = '1.14';
=head1 DESCRIPTION
=head1 DESCRIPTION
@@ -21,7+21,7 @@ This class contains the information required by the session for running the C<me
=cut
=cut
-use base qw/Test::Valgrind::Tool/;
+use base qw<Test::Valgrind::Tool>;
=head1 METHODS
=head1 METHODS
@@ -29,13+29,20 @@ This class inherits L<Test::Valgrind::Tool>.
=head2 C<requires_version>
=head2 C<requires_version>
+ my $required_version = $tvt->requires_version;
+
This tool requires C<valgrind> C<3.1.0>.
=cut
sub requires_version { '3.1.0' }
This tool requires C<valgrind> C<3.1.0>.
=cut
sub requires_version { '3.1.0' }
-=head2 C<< new callers => $callers, ... >>
+=head2 C<new>
+
+ my $tvtm = Test::Valgrind::Tool::memcheck->new(
+ callers => $callers,
+ %extra_args,
+ );
Your usual constructor.
Your usual constructor.
@@ -65,6+72,8 @@ sub new_trainer { shift->new(callers => 50) }
=head2 C<callers>
=head2 C<callers>
+ my $callers = $tvtm->callers;
+
Read-only accessor for the C<callers> option.
=cut
Read-only accessor for the C<callers> option.
=cut
@@ -73,9+82,11 @@ sub callers { $_[0]->{callers} }
sub suppressions_tag { 'memcheck-' . $_[1]->version }
sub suppressions_tag { 'memcheck-' . $_[1]->version }
-=head2 C<parser_class $session>
+=head2 C<parser_class>
-This tool uses a C<Test::Valgrind::Parser::XML::Twig> parser in analysis mode, and a C<Test::Valgrind::Parser::Suppressions::Text> parser in suppressions mode.
+ my $parser_class = $tvtm->parser_class($session);
+
+This tool uses a L<Test::Valgrind::Parser::XML::Twig> parser in analysis mode, and a L<Test::Valgrind::Parser::Suppressions::Text> parser in suppressions mode.