Test::Valgrind::Report - Base class for Test::Valgrind error reports.
Version 1.19
This class provides a generic API for messages (the so-called reports) generated by the parser, filtered by the tool and the command, and handled by the action. The tool has authority for deciding in which subclass of this one reports should be blessed.
Reports are classified by kinds. The Diag kind is reserved for diagnostics.
Diag
new
my $tvr = Test::Valgrind::Report->new( kind => $kind, id => $id, data => $data, );
Your usual constructor.
All options are mandatory :
kind is the category of the report.
kind
id is an unique identifier for the report.
id
data is the content.
data
new_diag
my $diag_report = Test::Valgrind::Report->new_diag($data);
Constructs a report with kind 'Diag', an auto-incremented identifier and the given $data.
'Diag'
$data
my $kind = $tvr->kind;
Read-only accessor for the kind option.
my $id = $tvr->id;
Read-only accessor for the id option.
my $data = $tvr->data;
Read-only accessor for the data option.
is_diag
$tvr->is_diag;
Tells if a report has the 'Diag' kind, i.e. is a diagnostic.
kinds
my @kinds = $tvr->kinds;
Returns the list of valid kinds for this report class.
Defaults to 'Diag'.
valid_kind
$tvr->valid_kind($kind);
Tells whether $kind is a valid kind for this report class.
$kind
Defaults to true iff $kind eq 'Diag'.
$kind eq 'Diag'
Test::Valgrind.
Vincent Pit, <perl at profvince.com>, http://www.profvince.com.
<perl at profvince.com>
You can contact me by mail or on irc.perl.org (vincent).
irc.perl.org
Please report any bugs or feature requests to bug-test-valgrind at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Valgrind. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-test-valgrind at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Test::Valgrind::Report
Copyright 2009,2010,2011,2013,2015,2016 Vincent Pit, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Test::Valgrind, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Valgrind
CPAN shell
perl -MCPAN -e shell install Test::Valgrind
For more information on module installation, please visit the detailed CPAN module installation guide.