From: Vincent Pit Date: Sat, 26 Sep 2009 20:11:54 +0000 (+0200) Subject: Miscellanous doc nits X-Git-Tag: v1.11~6 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=93bdd32c84466f212aded61d70219e82cb538620;p=perl%2Fmodules%2FTest-Valgrind.git Miscellanous doc nits --- diff --git a/lib/Test/Valgrind/Command.pm b/lib/Test/Valgrind/Command.pm index 2afa4b0..158d4a3 100644 --- a/lib/Test/Valgrind/Command.pm +++ b/lib/Test/Valgrind/Command.pm @@ -100,7 +100,7 @@ sub suppressions_tag; =head2 C -The <$session> calls this method after receiving a report from the tool and before forwarding it to the action. +The C<$session> calls this method after receiving a report from the tool and before forwarding it to the action. You can either return a mangled C<$report> (which does not need to be a clone of the original) or C if you want the action to ignore it completely. Defaults to the identity function. diff --git a/lib/Test/Valgrind/Parser.pm b/lib/Test/Valgrind/Parser.pm index 3489ae5..0f4985d 100644 --- a/lib/Test/Valgrind/Parser.pm +++ b/lib/Test/Valgrind/Parser.pm @@ -31,9 +31,15 @@ The parser constructor, called without arguments. Defaults to L. +=head2 C + +Called when the C<$session> starts. + +Defaults to set L. + =head2 C -Returns the list of parser-specific arguments that are to be passed to C. +Returns the list of parser-specific arguments that are to be passed to the C process spawned by the session C<$session> and whose output will be captured by the filehandle C<$fh>. Defaults to the empty list. @@ -43,18 +49,14 @@ sub args { } =head2 C +Parse the output of the C process attached to the session C<$session> received through the filehandle C<$fh>. + This method must be implemented when subclassing. =cut sub parse; -=head2 C - -Called when the C<$session> starts. - -Defaults to set L. - =head2 C Called when the C<$session> finishes. diff --git a/lib/Test/Valgrind/Parser/Suppressions/Text.pm b/lib/Test/Valgrind/Parser/Suppressions/Text.pm index 03a9556..7a91d5f 100644 --- a/lib/Test/Valgrind/Parser/Suppressions/Text.pm +++ b/lib/Test/Valgrind/Parser/Suppressions/Text.pm @@ -17,7 +17,7 @@ our $VERSION = '1.10'; =head1 DESCRIPTION -This is a L object that can extract suppressions from C's text output. +This is a L object that can extract suppressions from C's text output. =cut @@ -34,12 +34,6 @@ Their C member contains the raw text of the suppression. sub report_class { 'Test::Valgrind::Report::Suppressions' } -=head2 C - -Parses the filehandle C<$fh> fed with the output of F and sends a report to the session C<$session> for each suppression. - -=cut - sub parse { my ($self, $sess, $fh) = @_; diff --git a/lib/Test/Valgrind/Parser/Text.pm b/lib/Test/Valgrind/Parser/Text.pm index 81c8f70..0fb3ab6 100644 --- a/lib/Test/Valgrind/Parser/Text.pm +++ b/lib/Test/Valgrind/Parser/Text.pm @@ -27,7 +27,7 @@ use base qw/Test::Valgrind::Parser/; =head2 C -Returns the arguments needed to tell C to print to the filehandle C<$fh>. +Returns the arguments needed to tell C to print in text to the filehandle C<$fh>. =cut diff --git a/lib/Test/Valgrind/Parser/XML/Twig.pm b/lib/Test/Valgrind/Parser/XML/Twig.pm index 09311db..7d5bf66 100644 --- a/lib/Test/Valgrind/Parser/XML/Twig.pm +++ b/lib/Test/Valgrind/Parser/XML/Twig.pm @@ -17,7 +17,7 @@ our $VERSION = '1.10'; =head1 DESCRIPTION -This subclass of L encapsulates an L parser inside the L framework. +This subclass of L and L encapsulates an L parser inside the L framework. It is able to parse the XML output from C up to protocol version 4 and to generate the appropriate reports accordingly. =cut diff --git a/lib/Test/Valgrind/Tool.pm b/lib/Test/Valgrind/Tool.pm index 7560d52..7e0e712 100644 --- a/lib/Test/Valgrind/Tool.pm +++ b/lib/Test/Valgrind/Tool.pm @@ -120,7 +120,7 @@ Defaults to set L. =head2 C -The <$session> calls this method after receiving a report from the parser and before letting the command filter it. +The C<$session> calls this method after receiving a report from the parser and before letting the command filter it. You can either return a mangled C<$report> (which does not need to be a clone of the original) or C if you want the action to ignore it completely. Defaults to the identity function. diff --git a/lib/Test/Valgrind/Tool/memcheck.pm b/lib/Test/Valgrind/Tool/memcheck.pm index 1213b7b..3600937 100644 --- a/lib/Test/Valgrind/Tool/memcheck.pm +++ b/lib/Test/Valgrind/Tool/memcheck.pm @@ -75,7 +75,7 @@ sub suppressions_tag { 'memcheck-' . $_[1]->version } =head2 C -This tool uses a C parser in analysis mode, and a C parser in suppressions mode. +This tool uses a L parser in analysis mode, and a L parser in suppressions mode. =cut @@ -94,7 +94,7 @@ sub parser_class { =head2 C -This tool emits C object reports in analysis mode. +This tool emits C object reports in analysis mode, and C object reports in suppressions mode. =cut