CPAN-Testers-ParseReport
view release on metacpan or search on metacpan
which goes to --dumpfile's option (default: ./ctgetreports.out)
* XML::LibXML parser object now has a catalog and is being cached.
* new option --quiet to suppress all output
* we have a real test now (but not many individual tests)
* env state was not turned off correctly, fixed.
* entities are now decoded
0.0.11 2008-09-29 Andreas J. Koenig <andreas.koenig.7os6VVqR@franz.ak.mind.de>
* packaging issues: remove the overly clever idea to get the version into
the manpage. It screws the enduser who is using MM->parse_version.
* Since Barbie has switched to XHTML, drop HTML::TreeBuilder and parse
directly with XML::LibXML, set the default downloaded file back to html
because it is easier to debug and generally gets more attention.
lib/CPAN/Testers/ParseReport.pm view on Meta::CPAN
=head2 $extract = parse_report($target,$dumpvars,%Opt)
Reads one report. $target is the local filename to read (but see below
for option 'article'). $dumpvars is a hashref which gets filled with
descriptive stats about PASS/FAIL/etc. %Opt are the options as
described in the C<ctgetreports> manpage. $extract is a hashref
containing the found variables.
Note: this parsing is a bit dirty but as it seems good enough I'm not
inclined to change it. We parse HTML with regexps only, not an HTML
parser. Only the entities are decoded.
In %Opt you can use
article => $some_full_article_as_scalar
to use this function to parse one full article as text. When this is
given, the argument $target is not read, but its basename is taken to
be the id of the article. (OMG, hackers!)
=cut
( run in 0.255 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )