CPANPL...:Report(3pm)
π CPANPLUS::Internals::Report β the tea β
okay bestie, so this is CPANPLUS::Internals::Report, from the CPANPL...:Report(3pm) corner of your friendly neighbourhood Perl docs (User Contributed Perl Documentation, if we're being formal, which we are not π
).
β¨ NAME β¨
CPANPLUS::Internals::Report β internals for sending test reports π§
πΈ SYNOPSIS πΈ
### enable test reporting
$cb->configure_object->set_conf( cpantest => 1 );
### set custom mx host, shouldn't normally be needed
$cb->configure_object->set_conf( cpantest_mx => 'smtp.example.com' );
π¦ DESCRIPTION π¦
This module is literally the whole entire girlboss toolkit for sending test reports over to http://testers.cpan.org, and it does it by using the Test::Reporter module. π«Ά
And here's the cute part: every single method in here gets called automatically if you've got CPANPLUS configured to enable test reporting (peep the SYNOPSIS above, it's giving instructions β¨).
π METHODS π
$bool = $cb->_have_query_report_modules
Checks if all the required modules are actually here for querying reports. If they are, it returns true and loads them up for you. If not? Returns false, no drama. π
$bool = $cb->_have_send_report_modules
Same vibe, different job β checks if all the required modules are here for sending reports. True means it loads them, false means nope. π
$cb->_query_report
@list = $cb->_query_report( module => $modobj, [all_versions => BOOL,
verbose => BOOL] )
This one queries the CPAN testers database at http://testers.cpan.org/ for test results of whatever module objects, module names or distributions you hand it. π
The optional argument all_versions controls whether all versions of a given distribution get grabbed. It defaults to false β meaning it only fetches reports for the current version, bestie. β
On success it returns a list with the following data structures (for CPANPLUS version 0.042), or false on failure. What's actually inside depends on what http://testers.cpan.org hands back, but generally it looks like this:
{
'grade' => 'PASS',
'dist' => 'CPANPLUS-0.042',
'platform' => 'i686-pld-linux-thread-multi'
'details' => 'http://nntp.x.perl.org/group/perl.cpan.testers/98316'
...
},
{
'grade' => 'PASS',
'dist' => 'CPANPLUS-0.042',
'platform' => 'i686-linux-thread-multi'
'details' => 'http://nntp.x.perl.org/group/perl.cpan.testers/99416'
...
},
{
'grade' => 'FAIL',
'dist' => 'CPANPLUS-0.042',
'platform' => 'cygwin-multi-64int',
'details' => 'http://nntp.x.perl.org/group/perl.cpan.testers/99371'
...
},
{
'grade' => 'FAIL',
'dist' => 'CPANPLUS-0.042',
'platform' => 'i586-linux',
'details' => 'http://nntp.x.perl.org/group/perl.cpan.testers/99396'
...
},
The status of the test can be one of the following: UNKNOWN, PASS, FAIL or NA (not applicable). π
$cb->_send_report
$bool = $cb->_send_report( module => $modobj, buffer => $make_output, failed
=> BOOL, [save => BOOL, address => $email_to, verbose => BOOL, force =>
BOOL]);
This function sends a testers report to cpan-testers@perl.org for a particular distribution. Returns true on success, false on failure. Periodt. π
It takes the following options:
moduleβ the module object of this particular distribution πbufferβ the output buffer from the 'make/make test' processfailedβ boolean indicating if the 'make/make test' went wrong πsaveβ boolean indicating if the report should be saved locally instead of mailed out. If you pass it, this function returns the location the report was saved to, rather than a simple boolean 'TRUE'. Defaults to false.addressβ the email address to mail the report for. You should never need to override this, but it might be useful for debugging purposes. Defaults tocpan-testers@perl.org.verboseβ boolean indicating on whether or not to be verbose. Defaults to your configuration settings.forceβ boolean indicating whether to force the sending, even if the max amount of reports for fails have already been reached, or if you may already have sent it before. Defaults to your configuration settings.
π that's the whole page, bestie. go forth and report those tests.
kisses, this was CPANPL...:Report(3pm) as documented for perl v5.40.1, dated 2025-03-01. iykyk β¨π¦π
π¦ where this page comes from
- debian trixie: libcpanplus-perl 0.9916-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcpanplus-perl 0.9916-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcpanplus-perl 0.9916-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms