CPAN::Reporter::History(3pm) | User Contributed Perl Documentation | CPAN::Reporter::History(3pm) |
CPAN::Reporter::History - Read or write a CPAN::Reporter history log
version 1.2018
use CPAN::Reporter::History 'have_tested'; @results = have_tested( dist => 'Dist-Name-1.23' );
Interface for interacting with the CPAN::Reporter history file. Most methods are private for use only within CPAN::Reporter itself. However, a public function is provided to query the history file for results.
The following function is available. It is not exported by default.
# all reports for Foo-Bar-1.23 @results = have_tested( dist => 'Foo-Bar-1.23' ); # all NA reports @results = have_tested( grade => 'NA' ); # all reports on the current Perl/platform @results = have_tested();
Searches the CPAN::Reporter history file for records exactly matching search criteria, given as pairs of field-names and desired values.
Ordinary search criteria include:
Without additional criteria, a search will be limited to the current version of Perl and the current architecture and OS version. Additional criteria may be specified explicitly or, by specifying the empty string, "q{}", will match that field for any record.
# all reports for Foo-Bar-1.23 on any version of perl # on the current architecture and OS version @results = have_tested( dist => 'Foo-Bar-1.23', perl => q{} );
These additional criteria include:
The function returns an array of hashes representing each test result, with all of the fields listed above.
David Golden <dagolden@cpan.org>
This software is Copyright (c) 2006 by David Golden.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
2022-06-12 | perl v5.34.0 |