The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

MyCPAN::Indexer::BackPANstats - Collect various stats about BackPAN activity

SYNOPSIS

        use MyCPAN::Indexer;

DESCRIPTION

This module implements the indexer_class and reporter_class components to allow backpan_indexer.pl to collect stats on BackPAN.

It runs through the indexing and prints a report at the end of the run.

Indexer class

get_indexer()

A stand in for run_components later on.

setup_run_info

Like setup_run_info in MyCPAN::Indexer, but it remembers fewer things. The test census really just cares about statements in the test files, so the details about the run aren't as interesting.

examine_dist_steps

Given a distribution, unpack it, look at it, and report the findings. It does everything except the looking right now, so it merely croaks. Most of this needs to move out of run and into this method.

check_dist_size

We don't care about 0 byte dists, so we always return true so setup_dist_info doesn't bail out.

collect_info

Given a distribution, unpack it, look at it, and report the findings. It does everything except the looking right now, so it merely croaks. Most of this needs to move out of run and into this method.

Reporter class

get_reporter( $Notes )

get_reporter sets the reporter key in the $Notes hash reference. The value is a code reference that takes the information collected about a distribution and counts the modules used in the test files.

See MyCPAN::Indexer::Tutorial for details about what get_reporter expects and should do.

$VAR1 = { 'dist_date' => 1207928766, 'dist_basename' => 'cpan-script-1.54.tar.gz', 'maturity' => 'released', 'dist_file' => '/Volumes/iPod/BackPAN/authors/id/B/BD/BDFOY/cpan-script-1.54.tar.gz', 'dist_size' => 6281, 'dist_author' => 'BDFOY', 'dist_name' => 'cpan-script', 'dist_md5' => '8053fa43edcdce9a90f78f878cbf6caf', 'dist_version' => '1.54' };

TO DO

Count the lines in the files
Code stats? Lines of code, lines of pod, lines of comments

SOURCE AVAILABILITY

This code is in Github:

        git://github.com/briandfoy/mycpan-indexer.git

AUTHOR

brian d foy, <bdfoy@cpan.org>

COPYRIGHT AND LICENSE

Copyright © 2010-2018, brian d foy <bdfoy@cpan.org>. All rights reserved.

You may redistribute this under the terms of the Artistic License 2.0.