Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

redesigned test data and loader

  • Loading branch information...
commit f024b023100113089ac9710e7d3d2def944d6592 1 parent 2bae0e4
@barbie authored
View
14 MANIFEST
@@ -24,12 +24,16 @@ t/91podcover.t
t/94metatest.t
t/95changedate.t
t/96metatest.t
-t/data/a58945f6-3510-11df-89c9-1bb9c3681c0d.json
t/data/ad3189d0-3510-11df-89c9-1bb9c3681c0d.json
-t/data/af820e12-3510-11df-89c9-1bb9c3681c0d.json
-t/data/b248f71e-3510-11df-89c9-1bb9c3681c0d.json
-t/data/b77e7132-3510-11df-89c9-1bb9c3681c0d.json
-t/data/testers.csv
+t/data/4f976d00-08d2-11e3-bc0a-b75d6d822b3f.dat
+t/data/7af15cf4-0a80-11e3-ab4d-dce3f09adca3.dat
+t/data/8fd1b4e0-0e48-11e3-8d27-d505f19adca3.dat
+t/data/c9bb8cac-109c-11e3-9d5d-466d772db441.dat
+t/data/fbc49036-08ea-11e3-b8b2-96b61dda783b.dat
+t/data/cpanstats.sql
+t/data/metabase.sql
+t/data/testers_email.sql
+t/lib/Fake/Loader.pm
t/test-config.ini
templates/mail-bad-reports.eml
templates/mail-bad-uploads.eml
View
119 t/10internals.t
@@ -18,32 +18,17 @@ use CPAN::Testers::Metabase::AWS;
use File::Path;
use IO::File;
use JSON;
-use Test::More tests => 23;
+use Test::More tests => 22;
+
+use lib qw(t/lib);
+use Fake::Loader;
#----------------------------------------------------------------------------
# Test Variables
-my (%options,$meta);
my $config = 't/_DBDIR/test-config.ini';
-#----------------------------------------------------------------------------
-# Test Data
-
-my @test_stat_rows = (
-[ '1', '2', 'a58945f6-3510-11df-89c9-1bb9c3681c0d', 'pass', '201003', 'chris@bingosnet.co.uk', 'Sub-Exporter-ForMethods', '0.100050', 'i686-linux-thread-multi-64int', '5.8.8', 'Linux', '2.6.28-11-generic', '201003211739' ],
-[ '2', '2', 'ad3189d0-3510-11df-89c9-1bb9c3681c0d', 'pass', '201003', 'chris@bingosnet.co.uk', 'Algorithm-Diff', '1.1902', 'i686-linux-thread-multi-64int', '5.8.8', 'Linux', '2.6.28-11-generic', '201003211739' ],
-[ '3', '2', 'af820e12-3510-11df-89c9-1bb9c3681c0d', 'pass', '201003', 'chris@bingosnet.co.uk', 'Text-Diff', '1.37', 'i686-linux-thread-multi-64int', '5.8.8', 'Linux', '2.6.28-11-generic', '201003211739' ],
-[ '4', '2', 'b248f71e-3510-11df-89c9-1bb9c3681c0d', 'pass', '201003', 'chris@bingosnet.co.uk', 'Test-Differences', '0.500', 'i686-linux-thread-multi-64int', '5.8.8', 'Linux', '2.6.28-11-generic', '201003211739' ],
-[ '5', '2', 'b77e7132-3510-11df-89c9-1bb9c3681c0d', 'pass', '201003', 'chris@bingosnet.co.uk', 'namespace-autoclean', '0.09', 'i686-linux-thread-multi-64int', '5.8.8', 'Linux', '2.6.28-11-generic', '201003211739' ]
-);
-
-my @test_meta_rows = (
-[ 1, 'a58945f6-3510-11df-89c9-1bb9c3681c0d', '2010-03-21T17:39:05Z' ],
-[ 2, 'ad3189d0-3510-11df-89c9-1bb9c3681c0d', '2010-03-21T17:39:18Z' ],
-[ 3, 'af820e12-3510-11df-89c9-1bb9c3681c0d', '2010-03-21T17:39:22Z' ],
-[ 4, 'b248f71e-3510-11df-89c9-1bb9c3681c0d', '2010-03-21T17:39:27Z' ],
-[ 5, 'b77e7132-3510-11df-89c9-1bb9c3681c0d', '2010-03-21T17:39:35Z' ]
-);
+my $loader = Fake::Loader->new();
#----------------------------------------------------------------------------
# Test Main
@@ -51,18 +36,15 @@ my @test_meta_rows = (
# TEST INTERNALS
SKIP: {
- skip "Test::Database required for DB testing", 23 unless(-f $config);
+ skip "Test::Database required for DB testing", 22 unless($loader);
# prep test directory
my $directory = './test';
rmtree($directory);
mkpath($directory) or die "cannot create directory";
- testCpanstatsRecords();
- testMetabaseRecords();
-
- my $c1 = getMetabaseCount();
- is($c1,5,'Internal Tests, metabase contains 5 reports');
+ is($loader->count_cpanstats(),5,'Internal Tests, metabase contains 5 reports');
+ is($loader->count_metabase(),5,'Internal Tests, metabase contains 5 reports');
my $t;
eval {
@@ -83,22 +65,21 @@ SKIP: {
[ undef, '', 'xxx' ],
[ '2000-01-01T00:00:00Z', '', '2000-01-01T00:00:00Z' ],
[ '2010-09-13T03:20:00Z', undef, '2010-09-13T03:20:00Z' ],
- [ '2010-03-21T17:39:05Z', 'a58945f6-3510-11df-89c9-1bb9c3681c0d', '' ],
+ [ '2013-08-18T10:22:13Z', '0cbce1be-07f0-11e3-9db1-878205732d18', '' ],
);
for my $test (@test_dates) {
is($t->_get_createdate($test->[1],$test->[2]),$test->[0], ".. test date [".($test->[0]||'undef')."]");
}
- is($t->already_saved('a58945f7-3510-11df-89c9-1bb9c3681c0d'),0,'.. missing metabase guid');
- is($t->already_saved('a58945f6-3510-11df-89c9-1bb9c3681c0d'),'2010-03-21T17:39:05Z','.. found metabase guid');
+ is($t->already_saved('5ad79194-6cdc-1014-b4e3-38f2223f278c'),0,'.. missing metabase guid');
+ is($t->already_saved('5ad79194-6cdc-1014-b4e3-38f2223f278b'),'2013-08-18T10:34:33Z','.. found metabase guid');
is($t->retrieve_report('a58945f7-3510-11df-89c9-1bb9c3681c0d'),undef,'.. missing cpanstats guid');
- my $r = $t->retrieve_report('a58945f6-3510-11df-89c9-1bb9c3681c0d');
- is($r->{guid},'a58945f6-3510-11df-89c9-1bb9c3681c0d','.. found cpanstats guid');
+ my $r = $t->retrieve_report('5ad79194-6cdc-1014-b4e3-38f2223f278b');
+ is($r->{guid},'5ad79194-6cdc-1014-b4e3-38f2223f278b','.. found cpanstats guid');
- $options{CPANSTATS} ||= config_db('CPANSTATS');
- my @rows = $options{CPANSTATS}->{dbh}->get_query('array','SELECT count(id) FROM osname');
+ my @rows = $loader->{CPANSTATS}{dbh}->get_query('array','SELECT count(id) FROM osname');
is($rows[0]->[0],25,'.. all OS names');
is($t->_platform_to_osname('linux'),'linux', '.. known OS');
@@ -120,75 +101,3 @@ SKIP: {
is($t->{report}{osname},'linux','.. set OS');
is($t->{report}{platform},'i686-linux-thread-multi-64int','.. set platform');
}
-
-#----------------------------------------------------------------------------
-# Test Functions
-
-sub config_db {
- # Loads Test::Database instances
-
- my $db = shift;
-
- # load config file
- my $cfg = Config::IniFiles->new( -file => $config );
-
- # configure databases
- die "No configuration for $db database\n" unless($cfg->SectionExists($db));
- my %opts = map {$_ => ($cfg->val($db,$_)||undef);} qw(driver database dbfile dbhost dbport dbuser dbpass);
- unlink $opts{database} if($opts{driver} eq 'SQLite' && -f $opts{database});
-
- # need to store new configuration details here
-
- my $dbh = CPAN::Testers::Common::DBUtils->new(%opts);
- die "Cannot configure $db database\n" unless($dbh);
-
- my %hash = ( opts => \%opts, dbh => $dbh );
- return \%hash;
-}
-
-sub testCpanstatsRecords {
- $options{CPANSTATS} ||= config_db('CPANSTATS');
- my @rows = $options{CPANSTATS}->{dbh}->get_query('array','SELECT * FROM cpanstats');
- is_deeply(\@rows,\@test_stat_rows,'.. test cpanstats rows');
-}
-
-sub testMetabaseRecords {
- $options{METABASE} ||= config_db('METABASE');
- my @rows = $options{METABASE}->{dbh}->get_query('array','SELECT id,guid,updated FROM metabase');
- is_deeply(\@rows,\@test_meta_rows,'.. test metabase rows');
-}
-
-sub getMetabaseCount {
- $options{METABASE} ||= config_db('METABASE');
- my @rows = $options{METABASE}->{dbh}->get_query('array','SELECT count(id) FROM metabase');
- return 0 unless(@rows);
- return $rows[0]->[0] || 0;
-}
-
-sub deleteMetabase {
- my $id = shift;
- $options{METABASE} ||= config_db('METABASE');
- my @rows = $options{METABASE}->{dbh}->get_query('array','SELECT * FROM metabase WHERE id = ?',$id);
- $options{METABASE}->{dbh}->do_query('DELETE FROM metabase WHERE id = ?',$id) if(@rows);
-}
-
-sub countRequests {
- $options{CPANSTATS} ||= config_db('CPANSTATS');
- my @rows = $options{CPANSTATS}->{dbh}->get_query('array','SELECT * FROM page_requests');
-# diag(Dumper($_)) for(@rows);
- return scalar(@rows);
-}
-
-sub countSummaries {
- $options{CPANSTATS} ||= config_db('CPANSTATS');
- my @rows = $options{CPANSTATS}->{dbh}->get_query('array','SELECT * FROM release_summary');
-# diag(Dumper($_)) for(@rows);
- return scalar(@rows);
-}
-
-sub countReleases {
- $options{CPANSTATS} ||= config_db('CPANSTATS');
- my @rows = $options{CPANSTATS}->{dbh}->get_query('array','SELECT * FROM release_data');
-# diag(Dumper($_)) for(@rows);
- return scalar(@rows);
-}
View
BIN  t/data/4f976d00-08d2-11e3-bc0a-b75d6d822b3f.dat
Binary file not shown
View
BIN  t/data/7af15cf4-0a80-11e3-ab4d-dce3f09adca3.dat
Binary file not shown
View
BIN  t/data/8fd1b4e0-0e48-11e3-8d27-d505f19adca3.dat
Binary file not shown
View
BIN  t/data/c9bb8cac-109c-11e3-9d5d-466d772db441.dat
Binary file not shown
View
5 t/data/cpanstats.sql
@@ -0,0 +1,5 @@
+INSERT INTO `cpanstats` (id,guid,state,postdate,tester,dist,version,platform,perl,osname,osvers,fulldate,type) VALUES (33578672,'0cbce1be-07f0-11e3-9db1-878205732d18','pass','201308','srezic@iconmobile.net (Slaven Rezic)','CPAN-Testers-WWW-Statistics','1.06','i386-freebsd','5.8.9','freebsd','8.0-release','201308181022',2);
+INSERT INTO `cpanstats` (id,guid,state,postdate,tester,dist,version,platform,perl,osname,osvers,fulldate,type) VALUES (33578876,'5ad79194-6cdc-1014-b4e3-38f2223f278b','na','201308','mithaldu@yahoo.de (\"Christian Walde\")','CPAN-Testers-WWW-Statistics','1.06','MSWin32-x86-multi-thread','5.16.0','MSWin32','5.2','201308181034',2);
+INSERT INTO `cpanstats` (id,guid,state,postdate,tester,dist,version,platform,perl,osname,osvers,fulldate,type) VALUES (33579060,'66261f56-07f3-11e3-ac5a-df7f19362e69','pass','201308','srezic@iconmobile.net (Slaven Rezic)','CPAN-Testers-WWW-Statistics','1.06','i386-freebsd','5.12.3','freebsd','8.0-release','201308181046',2);
+INSERT INTO `cpanstats` (id,guid,state,postdate,tester,dist,version,platform,perl,osname,osvers,fulldate,type) VALUES (33578988,'b35d7c0c-07f2-11e3-afab-ccf1a108922b','pass','201308','srezic@iconmobile.net (Slaven Rezic)','CPAN-Testers-WWW-Statistics','1.06','i386-freebsd','5.14.0','freebsd','8.0-release','201308181041',2);
+INSERT INTO `cpanstats` (id,guid,state,postdate,tester,dist,version,platform,perl,osname,osvers,fulldate,type) VALUES (33578912,'ffdb8ffc-07f1-11e3-a0a5-bfc8c70fa3a9','pass','201308','srezic@iconmobile.net (Slaven Rezic)','CPAN-Testers-WWW-Statistics','1.06','i386-freebsd','5.16.0 RC0','freebsd','8.0-release-p4','201308181036',2);
View
BIN  t/data/fbc49036-08ea-11e3-b8b2-96b61dda783b.dat
Binary file not shown
View
5 t/data/metabase.sql
@@ -0,0 +1,5 @@
+INSERT INTO `metabase` (guid,id,updated,report) VALUES ('0cbce1be-07f0-11e3-9db1-878205732d18',33578672,'2013-08-18T10:22:13Z','{\"CPAN::Testers::Fact::LegacyReport\":{\"content\":\"{\\\"osversion\\\":\\\"8.0-release\\\",\\\"archname\\\":\\\"i386-freebsd\\\",\\\"textreport\\\":\\\"This distribution has been tested as part of the CPAN Testers\\\\nproject, supporting the Perl programming language. See\\\\nhttp://wiki.cpantesters.org/ for more information or email\\\\nquestions to cpan-testers-discuss@perl.org\\\\n\\\\n\\\\n--\\\\nDear Barbie,\\\\n\\\\nThis is a computer-generated report for CPAN-Testers-WWW-Statistics-1.06\\\\non perl 5.8.9, created by CPAN-Reporter-1.2006.\\\\n\\\\nThank you for uploading your work to CPAN. Congratulations!\\\\nAll tests were successful.\\\\n\\\\nSections of this report:\\\\n\\\\n * Tester comments\\\\n * Program output\\\\n * Prerequisites\\\\n * Environment and other context\\\\n\\\\n------------------------------\\\\nTESTER COMMENTS\\\\n------------------------------\\\\n\\\\nAdditional comments from tester:\\\\n\\\\nnone provided\\\\n\\\\n------------------------------\\\\nPROGRAM OUTPUT\\\\n------------------------------\\\\n\\\\nOutput from \'/usr/bin/make test\':\\\\n\\\\nPERL_DL_NONLAZY=1 /usr/perl5.8.9/bin/perl5.8.9 \\\\\\\"-MExtUtils::Command::MM\\\\\\\" \\\\\\\"-e\\\\\\\" \\\\\\\"test_harness(0, \'blib/lib\', \'blib/arch\')\\\\\\\" t/*.t\\\\nSubroutine File::Slurp::O_CREAT redefined at /usr/perl5.8.9/lib/site_perl/5.8.9/File/Slurp.pm line 89.\\\\nSubroutine File::Slurp::O_EXCL redefined at /usr/perl5.8.9/lib/site_perl/5.8.9/File/Slurp.pm line 90.\\\\nt/01base.t ...................... ok\\\\nt/05setup_db-cpanstats.t ........ ok\\\\nt/05setup_db-ixlatest.t ......... ok\\\\nt/05setup_db-leaderboard.t ...... ok\\\\nt/05setup_db-osname.t ........... ok\\\\nt/05setup_db-release_summary.t .. ok\\\\nt/05setup_db-uploads.t .......... ok\\\\nSubroutine File::Slurp::O_CREAT redefined at /usr/perl5.8.9/lib/site_perl/5.8.9/File/Slurp.pm line 89.\\\\nSubroutine File::Slurp::O_EXCL redefined at /usr/perl5.8.9/lib/site_perl/5.8.9/File/Slurp.pm line 90.\\\\nt/20attributes.t ................ ok\\\\nSubroutine File::Slurp::O_CREAT redefined at /usr/perl5.8.9/lib/site_perl/5.8.9/File/Slurp.pm line 89.\\\\nSubroutine File::Slurp::O_EXCL redefined at /usr/perl5.8.9/lib/site_perl/5.8.9/File/Slurp.pm line 90.\\\\nt/21dies.t ...................... ok\\\\nSubroutine File::Slurp::O_CREAT redefined at /usr/perl5.8.9/lib/site_perl/5.8.9/File/Slurp.pm line 89.\\\\nSubroutine File::Slurp::O_EXCL redefined at /usr/perl5.8.9/lib/site_perl/5.8.9/File/Slurp.pm line 90.\\\\nt/30setdates.t .................. ok\\\\nt/50logging.t ................... ok\\\\nSubroutine File::Slurp::O_CREAT redefined at /usr/perl5.8.9/lib/site_perl/5.8.9/File/Slurp.pm line 89.\\\\nSubroutine File::Slurp::O_EXCL redefined at /usr/perl5.8.9/lib/site_perl/5.8.9/File/Slurp.pm line 90.\\\\nt/51init.t ...................... ok\\\\nt/52methods-graphs.t ............ ok\\\\nSubroutine File::Slurp::O_CREAT redefined at /usr/perl5.8.9/lib/site_perl/5.8.9/File/Slurp.pm line 89.\\\\nSubroutine File::Slurp::O_EXCL redefined at /usr/perl5.8.9/lib/site_perl/5.8.9/File/Slurp.pm line 90.\\\\nt/52methods-leaderboard.t ....... ok\\\\nt/52methods-pages.t ............. ok\\\\nSubroutine File::Slurp::O_CREAT redefined at /usr/perl5.8.9/lib/site_perl/5.8.9/File/Slurp.pm line 89.\\\\nSubroutine File::Slurp::O_EXCL redefined at /usr/perl5.8.9/lib/site_perl/5.8.9/File/Slurp.pm line 90.\\\\nt/52methods-stats.t ............. ok\\\\nt/56writes.t .................... ok\\\\nSubroutine File::Slurp::O_CREAT redefined at /usr/perl5.8.9/lib/site_perl/5.8.9/File/Slurp.pm line 89.\\\\nSubroutine File::Slurp::O_EXCL redefined at /usr/perl5.8.9/lib/site_perl/5.8.9/File/Slurp.pm line 90.\\\\nt/59cleanup.t ................... ok\\\\nt/90podtest.t ................... skipped: Author tests not required for installation\\\\nt/91podcover.t .................. skipped: Author tests not required for installation\\\\nSubroutine File::Slurp::O_CREAT redefined at /usr/perl5.8.9/lib/site_perl/5.8.9/File/Slurp.pm line 89.\\\\nSubroutine File::Slurp::O_EXCL redefined at /usr/perl5.8.9/lib/site_perl/5.8.9/File/Slurp.pm line 90.\\\\nt/94metatest.t .................. skipped: Author tests not required for installation\\\\nSubroutine File::Slurp::O_CREAT redefined at /usr/perl5.8.9/lib/site_perl/5.8.9/File/Slurp.pm line 89.\\\\nSubroutine File::Slurp::O_EXCL redefined at /usr/perl5.8.9/lib/site_perl/5.8.9/File/Slurp.pm line 90.\\\\nt/95changedate.t ................ skipped: Author tests not required for installation\\\\nSubroutine File::Slurp::O_CREAT redefined at /usr/perl5.8.9/lib/site_perl/5.8.9/File/Slurp.pm line 89.\\\\nSubroutine File::Slurp::O_EXCL redefined at /usr/perl5.8.9/lib/site_perl/5.8.9/File/Slurp.pm line 90.\\\\nt/96metatest.t .................. skipped: Author tests not required for installation\\\\nAll tests successful.\\\\nFiles=23, Tests=501, 24 wallclock secs ( 0.16 usr 0.08 sys + 10.96 cusr 1.11 csys = 12.31 CPU)\\\\nResult: PASS\\\\n\\\\n------------------------------\\\\nPREREQUISITES\\\\n------------------------------\\\\n\\\\nPrerequisite modules loaded:\\\\n\\\\nrequires:\\\\n\\\\n Module Need Have \\\\n ------------------------------ ---- -------\\\\n Archive::Extract 0 0.68 \\\\n Archive::Zip 0 1.30 \\\\n CGI 0 3.63 \\\\n Class::Accessor::Fast 0 0.34 \\\\n Config::IniFiles 0 2.73 \\\\n CPAN::Testers::Common::DBUtils 0.03 0.08 \\\\n Cwd 0 3.40 \\\\n Data::Dumper 0 2.145 \\\\n DBD::mysql 0 4.023 \\\\n DBD::SQLite 0 1.40 \\\\n DBI 0 1.628 \\\\n File::Basename 0 2.77 \\\\n File::Copy 0 2.13 \\\\n File::Path 0 2.09 \\\\n File::Slurp 0 9999.19\\\\n File::Spec 0 3.40 \\\\n GD::Graph::lines 0 1.15 \\\\n Getopt::ArgvFile 0 1.11 \\\\n Getopt::Long 0 2.41 \\\\n HTML::Entities 0 3.69 \\\\n HTTP::Request 0 6.00 \\\\n IO::File 0 1.14 \\\\n JSON 0 2.53 \\\\n LWP::UserAgent 0 6.04 \\\\n Regexp::Assemble 0 0.35 \\\\n Sort::Versions 0 1.5 \\\\n Template 2.19 2.24 \\\\n Test::Differences 0 0.61 \\\\n Test::More 0.7 0.98 \\\\n Time::Piece 0 1.20 \\\\n WWW::Mechanize 0 1.71 \\\\n\\\\nbuild_requires:\\\\n\\\\n Module Need Have \\\\n ------------------------------ ---- -------\\\\n Archive::Extract 0 0.68 \\\\n Archive::Zip 0 1.30 \\\\n Cwd 0 3.40 \\\\n ExtUtils::MakeMaker 0 6.72 \\\\n File::Spec 0 3.40 \\\\n Test::Differences 0 0.61 \\\\n Test::More 0.70 0.98 \\\\n\\\\n\\\\n------------------------------\\\\nENVIRONMENT AND OTHER CONTEXT\\\\n------------------------------\\\\n\\\\nEnvironment variables:\\\\n\\\\n DBIC_NO_WARN_BAD_PERL = 1\\\\n PATH = /usr/local/bin:/usr/X11R6/bin:/usr/X11/bin:/usr/perl5.8.0/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/pilot/bin:/home2/cpansand/bin/freebsd8.0:/home2/cpansand/bin/sh:/home2/cpansand/bin:/usr/X386/bin:/usr/games:/home2/cpansand/devel:/usr/home/e/eserte/work/srezic-misc/scripts\\\\n PERL5LIB = \\\\n PERL5OPT = \\\\n PERL5_CPANPLUS_IS_RUNNING = 88256\\\\n PERL5_CPAN_IS_RUNNING = 88256\\\\n PERL5_CPAN_IS_RUNNING_IN_RECURSION = 87834,88256\\\\n PERL_BATCH = yes\\\\n PERL_CPAN_REPORTER_CONFIG = /var/tmp/cpansmoker-1023/AkJe4y8_8c_config.ini\\\\n PERL_EXTUTILS_AUTOINSTALL = --defaultdeps\\\\n PERL_HTML_DISPLAY_CLASS = HTML::Display::Mozilla\\\\n SHELL = /usr/local/bin/zsh\\\\n TERM = screen\\\\n TMPDIR = /var/tmp/cpansmoker-1023\\\\n\\\\nPerl special variables (and OS-specific diagnostics, for MSWin32):\\\\n\\\\n $^X = /usr/perl5.8.9/bin/perl5.8.9\\\\n $UID/$EUID = 1023 / 1023\\\\n $GID = 1023 1023\\\\n $EGID = 1023 1023\\\\n\\\\nPerl module toolchain versions installed:\\\\n\\\\n Module Have \\\\n ------------------- --------\\\\n CPAN 2.00 \\\\n CPAN::Meta 2.120351\\\\n Cwd 3.40 \\\\n ExtUtils::CBuilder 0.280205\\\\n ExtUtils::Command 1.16 \\\\n ExtUtils::Install 1.54 \\\\n ExtUtils::MakeMaker 6.72 \\\\n ExtUtils::Manifest 1.60 \\\\n ExtUtils::ParseXS 3.18 \\\\n File::Spec 3.40 \\\\n JSON 2.53 \\\\n JSON::PP 2.27200 \\\\n Module::Build 0.4005 \\\\n Module::Signature 0.73 \\\\n Parse::CPAN::Meta 1.4404 \\\\n Test::Harness 3.28 \\\\n Test::More 0.98 \\\\n YAML 0.84 \\\\n YAML::Syck 1.27 \\\\n version 0.9901 \\\\n\\\\n\\\\n--\\\\n\\\\nSummary of my perl5 (revision 5 version 8 subversion 9) configuration:\\\\n Platform:\\\\n osname=freebsd, osvers=8.0-release, archname=i386-freebsd\\\\n uname=\'freebsd biokovo.herceg.de 8.0-release freebsd 8.0-release #0: sat nov 21 15:48:17 utc 2009 root@almeida.cse.buffalo.edu:usrobjusrsrcsysgeneric i386 \'\\\\n config_args=\'-Dprefix=/usr/perl5.8.9 -Dusemymalloc=n -D cc=ccache cc -Dgccansipedantic -Duse64bit -de -D hintfile=myfreebsd\'\\\\n hint=recommended, useposix=true, d_sigaction=define\\\\n usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef\\\\n useperlio=define d_sfio=undef uselargefiles=define usesocks=undef\\\\n use64bitint=undef use64bitall=undef uselongdouble=undef\\\\n usemymalloc=n, bincompat5005=undef\\\\n Compiler:\\\\n cc=\'ccache cc\', ccflags =\'-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include\',\\\\n optimize=\'-O2 -mtune=athlon64 -pipe\',\\\\n cppflags=\'-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include\'\\\\n ccversion=\'\', gccversion=\'4.2.1 20070719 [FreeBSD]\', gccosandvers=\'\'\\\\n intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234\\\\n d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12\\\\n ivtype=\'long\', ivsize=4, nvtype=\'double\', nvsize=8, Off_t=\'off_t\', lseeksize=8\\\\n alignbytes=4, prototype=define\\\\n Linker and Libraries:\\\\n ld=\'ccache cc\', ldflags =\'-Wl,-E -L/usr/local/lib\'\\\\n libpth=/usr/lib /usr/local/lib\\\\n libs=-lgdbm -lm -lcrypt -lutil -lc\\\\n perllibs=-lm -lcrypt -lutil -lc\\\\n libc=, so=so, useshrplib=false, libperl=libperl.a\\\\n gnulibc_version=\'\'\\\\n Dynamic Linking:\\\\n dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=\' \'\\\\n cccdlflags=\'-DPIC -fPIC\', lddlflags=\'-shared -L/usr/local/lib\'\\\\n\\\\n\\\\nCharacteristics of this binary (from libperl): \\\\n Compile-time options: PERL_MALLOC_WRAP USE_FAST_STDIO USE_LARGE_FILES\\\\n USE_PERLIO\\\\n Built under freebsd\\\\n Compiled at Jan 28 2011 08:40:05\\\\n %ENV:\\\\n PERL5LIB=\\\\\\\"\\\\\\\"\\\\n PERL5OPT=\\\\\\\"\\\\\\\"\\\\n PERL5_CPANPLUS_IS_RUNNING=\\\\\\\"88256\\\\\\\"\\\\n PERL5_CPAN_IS_RUNNING=\\\\\\\"88256\\\\\\\"\\\\n PERL5_CPAN_IS_RUNNING_IN_RECURSION=\\\\\\\"87834,88256\\\\\\\"\\\\n PERL_BATCH=\\\\\\\"yes\\\\\\\"\\\\n PERL_CPAN_REPORTER_CONFIG=\\\\\\\"/var/tmp/cpansmoker-1023/AkJe4y8_8c_config.ini\\\\\\\"\\\\n PERL_EXTUTILS_AUTOINSTALL=\\\\\\\"--defaultdeps\\\\\\\"\\\\n PERL_HTML_DISPLAY_CLASS=\\\\\\\"HTML::Display::Mozilla\\\\\\\"\\\\n @INC:\\\\n /usr/perl5.8.9/lib/5.8.9/i386-freebsd\\\\n /usr/perl5.8.9/lib/5.8.9\\\\n /usr/perl5.8.9/lib/site_perl/5.8.9/i386-freebsd\\\\n /usr/perl5.8.9/lib/site_perl/5.8.9\\\\n .\\\",\\\"osname\\\":\\\"freebsd\\\",\\\"perl_version\\\":\\\"v5.8.9\\\",\\\"grade\\\":\\\"pass\\\"}\",\"metadata\":{\"core\":{\"resource\":\"cpan:///distfile/BARBIE/CPAN-Testers-WWW-Statistics-1.06.tar.gz\",\"update_time\":\"2013-08-18T10:22:13Z\",\"creator\":\"metabase:user:314402c4-2aae-11df-837a-5e0a49663a4f\",\"type\":\"CPAN-Testers-Fact-LegacyReport\",\"creation_time\":\"2013-08-18T10:22:13Z\",\"guid\":\"0cbd57fc-07f0-11e3-9db1-878205732d18\",\"schema_version\":1,\"valid\":1}}},\"CPAN::Testers::Fact::TestSummary\":{\"content\":\"{\\\"osversion\\\":\\\"8.0-release\\\",\\\"archname\\\":\\\"i386-freebsd\\\",\\\"osname\\\":\\\"freebsd\\\",\\\"perl_version\\\":\\\"v5.8.9\\\",\\\"grade\\\":\\\"pass\\\"}\",\"metadata\":{\"core\":{\"resource\":\"cpan:///distfile/BARBIE/CPAN-Testers-WWW-Statistics-1.06.tar.gz\",\"update_time\":\"2013-08-18T10:22:13Z\",\"creator\":\"metabase:user:314402c4-2aae-11df-837a-5e0a49663a4f\",\"type\":\"CPAN-Testers-Fact-TestSummary\",\"creation_time\":\"2013-08-18T10:22:13Z\",\"guid\":\"0cbd723c-07f0-11e3-9db1-878205732d18\",\"schema_version\":1,\"valid\":1}}}}');
+INSERT INTO `metabase` (guid,id,updated,report) VALUES ('5ad79194-6cdc-1014-b4e3-38f2223f278b',33578876,'2013-08-18T10:34:33Z','{\"CPAN::Testers::Fact::LegacyReport\":{\"content\":\"{\\\"osversion\\\":\\\"5.2\\\",\\\"archname\\\":\\\"MSWin32-x86-multi-thread\\\",\\\"textreport\\\":\\\"This distribution has been tested as part of the CPAN Testers\\\\nproject, supporting the Perl programming language. See\\\\nhttp://wiki.cpantesters.org/ for more information or email\\\\nquestions to cpan-testers-discuss@perl.org\\\\n\\\\n\\\\n--\\\\nDear Barbie,\\\\n\\\\nThis is a computer-generated report for CPAN-Testers-WWW-Statistics-1.06\\\\non perl 5.16.0, created by CPAN-Reporter-1.2006.\\\\n\\\\nThank you for uploading your work to CPAN. While attempting to build or test\\\\nthis distribution, the distribution signaled that support is not available\\\\neither for this operating system or this version of Perl. Nevertheless, any\\\\ndiagnostic output produced is provided below for reference. If this is not\\\\nwhat you expect, you may wish to consult the CPAN Testers Wiki:\\\\n\\\\nhttp://wiki.cpantesters.org/wiki/CPANAuthorNotes\\\\n\\\\nSections of this report:\\\\n\\\\n * Tester comments\\\\n * Program output\\\\n * Prerequisites\\\\n * Environment and other context\\\\n\\\\n------------------------------\\\\nTESTER COMMENTS\\\\n------------------------------\\\\n\\\\nAdditional comments from tester:\\\\n\\\\nthis report is from an automated smoke testing program\\\\nand was not reviewed by a human for accuracy\\\\n\\\\n------------------------------\\\\nPROGRAM OUTPUT\\\\n------------------------------\\\\n\\\\nOutput from \'C:\\\\\\\\Perl16\\\\\\\\bin\\\\\\\\perl.exe Makefile.PL INSTALLDIRS=site\':\\\\n\\\\nOS unsupported at Makefile.PL line 9.\\\\n\\\\n------------------------------\\\\nPREREQUISITES\\\\n------------------------------\\\\n\\\\nPrerequisite modules loaded:\\\\n\\\\n No requirements found\\\\n\\\\n------------------------------\\\\nENVIRONMENT AND OTHER CONTEXT\\\\n------------------------------\\\\n\\\\nEnvironment variables:\\\\n\\\\n ACTIVEPERL_CONFIG_SILENT = 1\\\\n AUTOMATED_TESTING = 1\\\\n COMSPEC = C:\\\\\\\\Windows\\\\\\\\system32\\\\\\\\cmd.exe\\\\n NUMBER_OF_PROCESSORS = 2\\\\n PATH = C:\\\\\\\\Perl16\\\\\\\\site\\\\\\\\bin;C:\\\\\\\\Perl16\\\\\\\\bin;C:\\\\\\\\Program Files (x86)\\\\\\\\NVIDIA Corporation\\\\\\\\PhysX\\\\\\\\Common;C:\\\\\\\\Program Files\\\\\\\\Common Files\\\\\\\\Microsoft Shared\\\\\\\\Windows Live;C:\\\\\\\\Program Files (x86)\\\\\\\\ActiveState Komodo IDE 6\\\\\\\\;C:\\\\\\\\Program Files (x86)\\\\\\\\PC Connectivity Solution\\\\\\\\;C:\\\\\\\\Windows\\\\\\\\system32;C:\\\\\\\\Windows;C:\\\\\\\\Windows\\\\\\\\System32\\\\\\\\Wbem;C:\\\\\\\\Windows\\\\\\\\System32\\\\\\\\WindowsPowerShell\\\\\\\\v1.0\\\\\\\\;C:\\\\\\\\Program Files\\\\\\\\TortoiseSVN\\\\\\\\bin;C:\\\\\\\\Program Files (x86)\\\\\\\\Git\\\\\\\\cmd;C:\\\\\\\\Program Files\\\\\\\\TortoiseGit\\\\\\\\bin;C:\\\\\\\\Program Files (x86)\\\\\\\\OpenVPN\\\\\\\\bin\\\\n PERL5LIB = \\\\n PERL5OPT = -IC:\\\\\\\\Users\\\\\\\\Mithaldu\\\\\\\\AppData\\\\\\\\Local\\\\\\\\Temp\\\\\\\\CPAN-Reporter-lib-touY -MDevel::Autoflush\\\\n PERL5_CPANPLUS_IS_RUNNING = 3432\\\\n PERL5_CPAN_IS_EXECUTING = C:\\\\\\\\Perl16\\\\\\\\cpan\\\\\\\\build\\\\\\\\CPAN-Testers-WWW-Statistics-1.06-j_LqK7\\\\\\\\Makefile.PL\\\\n PERL5_CPAN_IS_RUNNING = 3432\\\\n PERL5_CPAN_IS_RUNNING_IN_RECURSION = 5100,3432\\\\n PERL_AUTOINSTALL = --defaultdeps\\\\n PERL_CR_SMOKER_CURRENT = CPAN-Testers-WWW-Statistics-1.06\\\\n PERL_EXTUTILS_AUTOINSTALL = --defaultdeps\\\\n PERL_MM_USE_DEFAULT = 1\\\\n PROCESSOR_IDENTIFIER = AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD\\\\n TEMP = C:\\\\\\\\Users\\\\\\\\Mithaldu\\\\\\\\AppData\\\\\\\\Local\\\\\\\\Temp\\\\n TERM = dumb\\\\n\\\\nPerl special variables (and OS-specific diagnostics, for MSWin32):\\\\n\\\\n $^X = C:\\\\\\\\Perl16\\\\\\\\bin\\\\\\\\perl.exe\\\\n $UID/$EUID = 0 / 0\\\\n $GID = 0\\\\n $EGID = 0\\\\n Win32::GetOSName = Win7\\\\n Win32::GetOSVersion = Service Pack 1, 6, 1, 7601, 2, 1, 0, 256, 1\\\\n Win32::FsType = NTFS\\\\n Win32::IsAdminUser = 0\\\\n\\\\nPerl module toolchain versions installed:\\\\n\\\\n Module Have \\\\n ------------------- --------\\\\n CPAN 1.9800 \\\\n CPAN::Meta 2.120921\\\\n Cwd 3.39_02 \\\\n ExtUtils::CBuilder 0.280206\\\\n ExtUtils::Command 1.17 \\\\n ExtUtils::Install 1.54 \\\\n ExtUtils::MakeMaker 6.63_02 \\\\n ExtUtils::Manifest 1.61 \\\\n ExtUtils::ParseXS 3.16 \\\\n File::Spec 3.39_02 \\\\n JSON 2.53 \\\\n JSON::PP 2.27200 \\\\n Module::Build 0.39_01 \\\\n Module::Signature n/a \\\\n Parse::CPAN::Meta 1.4404 \\\\n Test::Harness 3.23 \\\\n Test::More 0.98 \\\\n YAML n/a \\\\n YAML::Syck n/a \\\\n version 0.99 \\\\n\\\\n\\\\n--\\\\n\\\\nSummary of my perl5 (revision 5 version 16 subversion 0) configuration:\\\\n \\\\n Platform:\\\\n osname=MSWin32, osvers=5.2, archname=MSWin32-x86-multi-thread\\\\n uname=\'\'\\\\n config_args=\'undef\'\\\\n hint=recommended, useposix=true, d_sigaction=undef\\\\n useithreads=define, usemultiplicity=define\\\\n useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef\\\\n use64bitint=undef, use64bitall=undef, uselongdouble=undef\\\\n usemymalloc=n, bincompat5005=undef\\\\n Compiler:\\\\n cc=\'C:/Perl16/site/bin/gcc.exe\', ccflags =\'-DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -D_USE_32BIT_TIME_T -DHASATTRIBUTE -fno-strict-aliasing -mms-bitfields\',\\\\n optimize=\'-O2\',\\\\n cppflags=\'-DWIN32\'\\\\n ccversion=\'\', gccversion=\'3.4.5 (mingw-vista special r3)\', gccosandvers=\'\'\\\\n intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234\\\\n d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=8\\\\n ivtype=\'long\', ivsize=4, nvtype=\'double\', nvsize=8, Off_t=\'__int64\', lseeksize=8\\\\n alignbytes=8, prototype=define\\\\n Linker and Libraries:\\\\n ld=\'C:\\\\\\\\Perl16\\\\\\\\site\\\\\\\\bin\\\\\\\\g++.exe\', ldflags =\'-L\\\\\\\"C:\\\\\\\\Perl16\\\\\\\\lib\\\\\\\\CORE\\\\\\\"\'\\\\n libpth=\\\\\\\\lib\\\\n libs=-lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 -lmsvcrt\\\\n perllibs=-lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 -lmsvcrt\\\\n libc=msvcrt.lib, so=dll, useshrplib=true, libperl=perl516.lib\\\\n gnulibc_version=\'\'\\\\n Dynamic Linking:\\\\n dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=\' \'\\\\n cccdlflags=\' \', lddlflags=\'-mdll -L\\\\\\\"C:\\\\\\\\Perl16\\\\\\\\lib\\\\\\\\CORE\\\\\\\"\'\\\\n\\\\n\\\\nCharacteristics of this binary (from libperl): \\\\n Compile-time options: HAS_TIMES HAVE_INTERP_INTERN MULTIPLICITY\\\\n PERLIO_LAYERS PERL_DONT_CREATE_GVSV\\\\n PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS\\\\n PERL_MALLOC_WRAP PERL_PRESERVE_IVUV PL_OP_SLAB_ALLOC\\\\n USE_ITHREADS USE_LARGE_FILES USE_LOCALE\\\\n USE_LOCALE_COLLATE USE_LOCALE_CTYPE\\\\n USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF\\\\n USE_SITECUSTOMIZE\\\\n Locally applied patches:\\\\n\\\\tActivePerl Build 1600 [295879]\\\\n Built under MSWin32\\\\n Compiled at Jun 11 2012 12:43:38\\\\n %ENV:\\\\n PERL5_CPANPLUS_IS_RUNNING=\\\\\\\"3432\\\\\\\"\\\\n PERL5_CPAN_IS_EXECUTING=\\\\\\\"C:\\\\\\\\Perl16\\\\\\\\cpan\\\\\\\\build\\\\\\\\CPAN-Testers-WWW-Statistics-1.06-j_LqK7\\\\\\\\Makefile.PL\\\\\\\"\\\\n PERL5_CPAN_IS_RUNNING=\\\\\\\"3432\\\\\\\"\\\\n PERL5_CPAN_IS_RUNNING_IN_RECURSION=\\\\\\\"5100,3432\\\\\\\"\\\\n PERL_AUTOINSTALL=\\\\\\\"--defaultdeps\\\\\\\"\\\\n PERL_CR_SMOKER_CURRENT=\\\\\\\"CPAN-Testers-WWW-Statistics-1.06\\\\\\\"\\\\n PERL_EXTUTILS_AUTOINSTALL=\\\\\\\"--defaultdeps\\\\\\\"\\\\n PERL_MM_USE_DEFAULT=\\\\\\\"1\\\\\\\"\\\\n @INC:\\\\n C:/Perl16/site/lib\\\\n C:/Perl16/lib\\\\n .\\\",\\\"osname\\\":\\\"MSWin32\\\",\\\"perl_version\\\":\\\"v5.16.0\\\",\\\"grade\\\":\\\"na\\\"}\",\"metadata\":{\"core\":{\"resource\":\"cpan:///distfile/BARBIE/CPAN-Testers-WWW-Statistics-1.06.tar.gz\",\"update_time\":\"2013-08-18T10:34:33Z\",\"creator\":\"metabase:user:31dd1d2e-2aae-11df-837a-5e0a49663a4f\",\"type\":\"CPAN-Testers-Fact-LegacyReport\",\"creation_time\":\"2013-08-18T10:34:33Z\",\"guid\":\"5ad7ae89-6cdc-1014-b4e3-38f2223f278b\",\"schema_version\":1,\"valid\":1}}},\"CPAN::Testers::Fact::TestSummary\":{\"content\":\"{\\\"osversion\\\":\\\"5.2\\\",\\\"archname\\\":\\\"MSWin32-x86-multi-thread\\\",\\\"osname\\\":\\\"MSWin32\\\",\\\"perl_version\\\":\\\"v5.16.0\\\",\\\"grade\\\":\\\"na\\\"}\",\"metadata\":{\"core\":{\"resource\":\"cpan:///distfile/BARBIE/CPAN-Testers-WWW-Statistics-1.06.tar.gz\",\"update_time\":\"2013-08-18T10:34:33Z\",\"creator\":\"metabase:user:31dd1d2e-2aae-11df-837a-5e0a49663a4f\",\"type\":\"CPAN-Testers-Fact-TestSummary\",\"creation_time\":\"2013-08-18T10:34:33Z\",\"guid\":\"5ad7b2f7-6cdc-1014-b4e3-38f2223f278b\",\"schema_version\":1,\"valid\":1}}}}');
+INSERT INTO `metabase` (guid,id,updated,report) VALUES ('66261f56-07f3-11e3-ac5a-df7f19362e69',33579060,'2013-08-18T10:46:12Z','{\"CPAN::Testers::Fact::LegacyReport\":{\"content\":\"{\\\"osversion\\\":\\\"8.0-release\\\",\\\"archname\\\":\\\"i386-freebsd\\\",\\\"textreport\\\":\\\"This distribution has been tested as part of the CPAN Testers\\\\nproject, supporting the Perl programming language. See\\\\nhttp://wiki.cpantesters.org/ for more information or email\\\\nquestions to cpan-testers-discuss@perl.org\\\\n\\\\n\\\\n--\\\\nDear Barbie,\\\\n\\\\nThis is a computer-generated report for CPAN-Testers-WWW-Statistics-1.06\\\\non perl 5.12.3, created by CPAN-Reporter-1.2007.\\\\n\\\\nThank you for uploading your work to CPAN. Congratulations!\\\\nAll tests were successful.\\\\n\\\\nSections of this report:\\\\n\\\\n * Tester comments\\\\n * Program output\\\\n * Prerequisites\\\\n * Environment and other context\\\\n\\\\n------------------------------\\\\nTESTER COMMENTS\\\\n------------------------------\\\\n\\\\nAdditional comments from tester:\\\\n\\\\nnone provided\\\\n\\\\n------------------------------\\\\nPROGRAM OUTPUT\\\\n------------------------------\\\\n\\\\nOutput from \'/usr/bin/make test\':\\\\n\\\\nPERL_DL_NONLAZY=1 /usr/perl5.12.3/bin/perl5.12.3 \\\\\\\"-MExtUtils::Command::MM\\\\\\\" \\\\\\\"-e\\\\\\\" \\\\\\\"test_harness(0, \'blib/lib\', \'blib/arch\')\\\\\\\" t/*.t\\\\nt/01base.t ...................... ok\\\\nt/05setup_db-cpanstats.t ........ ok\\\\nt/05setup_db-ixlatest.t ......... ok\\\\nt/05setup_db-leaderboard.t ...... ok\\\\nt/05setup_db-osname.t ........... ok\\\\nt/05setup_db-release_summary.t .. ok\\\\nt/05setup_db-uploads.t .......... ok\\\\nt/20attributes.t ................ ok\\\\nt/21dies.t ...................... ok\\\\nt/30setdates.t .................. ok\\\\nt/50logging.t ................... ok\\\\nt/51init.t ...................... ok\\\\nt/52methods-graphs.t ............ ok\\\\nt/52methods-leaderboard.t ....... ok\\\\nt/52methods-pages.t ............. ok\\\\nt/52methods-stats.t ............. ok\\\\nName \\\\\\\"Win32::Locale::Lexicon\\\\\\\" used only once: possible typo at /usr/perl5.12.3/lib/5.12.3/I18N/LangTags/Detect.pm line 140.\\\\nt/56writes.t .................... ok\\\\nt/59cleanup.t ................... ok\\\\nt/90podtest.t ................... skipped: Author tests not required for installation\\\\nt/91podcover.t .................. skipped: Author tests not required for installation\\\\nt/94metatest.t .................. skipped: Author tests not required for installation\\\\nt/95changedate.t ................ skipped: Author tests not required for installation\\\\nt/96metatest.t .................. skipped: Author tests not required for installation\\\\nAll tests successful.\\\\nFiles=23, Tests=501, 24 wallclock secs ( 0.16 usr 0.07 sys + 12.01 cusr 1.31 csys = 13.55 CPU)\\\\nResult: PASS\\\\n\\\\n------------------------------\\\\nPREREQUISITES\\\\n------------------------------\\\\n\\\\nPrerequisite modules loaded:\\\\n\\\\nrequires:\\\\n\\\\n Module Need Have \\\\n ------------------------------ ---- -------\\\\n Archive::Extract 0 0.68 \\\\n Archive::Zip 0 1.30 \\\\n CGI 0 3.63 \\\\n Class::Accessor::Fast 0 0.34 \\\\n Config::IniFiles 0 2.82 \\\\n CPAN::Testers::Common::DBUtils 0.03 0.08 \\\\n Cwd 0 3.40 \\\\n Data::Dumper 0 2.145 \\\\n DBD::mysql 0 4.023 \\\\n DBD::SQLite 0 1.40 \\\\n DBI 0 1.628 \\\\n File::Basename 0 2.78 \\\\n File::Copy 0 2.18 \\\\n File::Path 0 2.09 \\\\n File::Slurp 0 9999.19\\\\n File::Spec 0 3.40 \\\\n GD::Graph::lines 0 1.15 \\\\n Getopt::ArgvFile 0 1.11 \\\\n Getopt::Long 0 2.41 \\\\n HTML::Entities 0 3.69 \\\\n HTTP::Request 0 6.00 \\\\n IO::File 0 1.14 \\\\n JSON 0 2.59 \\\\n LWP::UserAgent 0 6.05 \\\\n Regexp::Assemble 0 0.35 \\\\n Sort::Versions 0 1.5 \\\\n Template 2.19 2.25 \\\\n Test::Differences 0 0.61 \\\\n Test::More 0.7 0.98 \\\\n Time::Piece 0 1.20 \\\\n WWW::Mechanize 0 1.72 \\\\n\\\\nbuild_requires:\\\\n\\\\n Module Need Have \\\\n ------------------------------ ---- -------\\\\n Archive::Extract 0 0.68 \\\\n Archive::Zip 0 1.30 \\\\n Cwd 0 3.40 \\\\n ExtUtils::MakeMaker 0 6.72 \\\\n File::Spec 0 3.40 \\\\n Test::Differences 0 0.61 \\\\n Test::More 0.70 0.98 \\\\n\\\\n\\\\n------------------------------\\\\nENVIRONMENT AND OTHER CONTEXT\\\\n------------------------------\\\\n\\\\nEnvironment variables:\\\\n\\\\n DBIC_NO_WARN_BAD_PERL = 1\\\\n PATH = /usr/local/bin:/usr/X11R6/bin:/usr/X11/bin:/usr/perl5.8.0/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/pilot/bin:/home2/cpansand/bin/freebsd8.0:/home2/cpansand/bin/sh:/home2/cpansand/bin:/usr/X386/bin:/usr/games:/home2/cpansand/devel:/usr/home/e/eserte/work/srezic-misc/scripts\\\\n PERL5LIB = /usr/local/src/CPAN/build/POSIX-RT-Timer-0.015-NFgf1H/blib/arch:/usr/local/src/CPAN/build/POSIX-RT-Timer-0.015-NFgf1H/blib/lib:/usr/local/src/CPAN/build/Net-SNMPTrapd-0.12-bah6mv/blib/arch:/usr/local/src/CPAN/build/Net-SNMPTrapd-0.12-bah6mv/blib/lib\\\\n PERL5OPT = \\\\n PERL5_CPANPLUS_IS_RUNNING = 94545\\\\n PERL5_CPAN_IS_RUNNING = 94545\\\\n PERL5_CPAN_IS_RUNNING_IN_RECURSION = 94524,94545\\\\n PERL_BATCH = yes\\\\n PERL_CPAN_REPORTER_CONFIG = /var/tmp/cpansmoker-1023/5HTIXGlRHt_config.ini\\\\n PERL_EXTUTILS_AUTOINSTALL = --defaultdeps\\\\n PERL_HTML_DISPLAY_CLASS = HTML::Display::Mozilla\\\\n SHELL = /usr/local/bin/zsh\\\\n TERM = screen\\\\n TMPDIR = /var/tmp/cpansmoker-1023\\\\n\\\\nPerl special variables (and OS-specific diagnostics, for MSWin32):\\\\n\\\\n $^X = /usr/perl5.12.3/bin/perl5.12.3\\\\n $UID/$EUID = 1023 / 1023\\\\n $GID = 1023 1023\\\\n $EGID = 1023 1023\\\\n\\\\nPerl module toolchain versions installed:\\\\n\\\\n Module Have \\\\n ------------------- --------\\\\n CPAN 2.00 \\\\n CPAN::Meta 2.131560\\\\n Cwd 3.40 \\\\n ExtUtils::CBuilder 0.280205\\\\n ExtUtils::Command 1.17 \\\\n ExtUtils::Install 1.55 \\\\n ExtUtils::MakeMaker 6.72 \\\\n ExtUtils::Manifest 1.60 \\\\n ExtUtils::ParseXS 3.18 \\\\n File::Spec 3.40 \\\\n JSON 2.59 \\\\n JSON::PP 2.27200 \\\\n Module::Build 0.4007 \\\\n Module::Signature 0.73 \\\\n Parse::CPAN::Meta 1.4404 \\\\n Test::Harness 3.23 \\\\n Test::More 0.98 \\\\n YAML 0.84 \\\\n YAML::Syck 1.27 \\\\n version 0.9902 \\\\n\\\\n\\\\n--\\\\n\\\\nSummary of my perl5 (revision 5 version 12 subversion 3) configuration:\\\\n \\\\n Platform:\\\\n osname=freebsd, osvers=8.0-release, archname=i386-freebsd\\\\n uname=\'freebsd biokovo.herceg.de 8.0-release freebsd 8.0-release #0: sat nov 21 15:48:17 utc 2009 root@almeida.cse.buffalo.edu:usrobjusrsrcsysgeneric i386 \'\\\\n config_args=\'-Dprefix=/usr/perl5.12.3 -Dusemymalloc=n -D cc=ccache cc -Dgccansipedantic -Duse64bit -de -D hintfile=myfreebsd\'\\\\n hint=recommended, useposix=true, d_sigaction=define\\\\n useithreads=undef, usemultiplicity=undef\\\\n useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef\\\\n use64bitint=undef, use64bitall=undef, uselongdouble=undef\\\\n usemymalloc=n, bincompat5005=undef\\\\n Compiler:\\\\n cc=\'ccache cc\', ccflags =\'-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include\',\\\\n optimize=\'-O2 -mtune=athlon64 -pipe\',\\\\n cppflags=\'-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include\'\\\\n ccversion=\'\', gccversion=\'4.2.1 20070719 [FreeBSD]\', gccosandvers=\'\'\\\\n intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234\\\\n d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12\\\\n ivtype=\'long\', ivsize=4, nvtype=\'double\', nvsize=8, Off_t=\'off_t\', lseeksize=8\\\\n alignbytes=4, prototype=define\\\\n Linker and Libraries:\\\\n ld=\'ccache cc\', ldflags =\'-Wl,-E -fstack-protector -L/usr/local/lib\'\\\\n libpth=/usr/lib /usr/local/lib\\\\n libs=-lgdbm -lm -lcrypt -lutil -lc\\\\n perllibs=-lm -lcrypt -lutil -lc\\\\n libc=, so=so, useshrplib=false, libperl=libperl.a\\\\n gnulibc_version=\'\'\\\\n Dynamic Linking:\\\\n dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=\' \'\\\\n cccdlflags=\'-DPIC -fPIC\', lddlflags=\'-shared -L/usr/local/lib -fstack-protector\'\\\\n\\\\n\\\\nCharacteristics of this binary (from libperl): \\\\n Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP PERL_USE_DEVEL\\\\n USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF\\\\n Built under freebsd\\\\n Compiled at Jan 25 2011 22:50:03\\\\n %ENV:\\\\n PERL5LIB=\\\\\\\"/usr/local/src/CPAN/build/POSIX-RT-Timer-0.015-NFgf1H/blib/arch:/usr/local/src/CPAN/build/POSIX-RT-Timer-0.015-NFgf1H/blib/lib:/usr/local/src/CPAN/build/Net-SNMPTrapd-0.12-bah6mv/blib/arch:/usr/local/src/CPAN/build/Net-SNMPTrapd-0.12-bah6mv/blib/lib\\\\\\\"\\\\n PERL5OPT=\\\\\\\"\\\\\\\"\\\\n PERL5_CPANPLUS_IS_RUNNING=\\\\\\\"94545\\\\\\\"\\\\n PERL5_CPAN_IS_RUNNING=\\\\\\\"94545\\\\\\\"\\\\n PERL5_CPAN_IS_RUNNING_IN_RECURSION=\\\\\\\"94524,94545\\\\\\\"\\\\n PERL_BATCH=\\\\\\\"yes\\\\\\\"\\\\n PERL_CPAN_REPORTER_CONFIG=\\\\\\\"/var/tmp/cpansmoker-1023/5HTIXGlRHt_config.ini\\\\\\\"\\\\n PERL_EXTUTILS_AUTOINSTALL=\\\\\\\"--defaultdeps\\\\\\\"\\\\n PERL_HTML_DISPLAY_CLASS=\\\\\\\"HTML::Display::Mozilla\\\\\\\"\\\\n @INC:\\\\n /usr/local/src/CPAN/build/POSIX-RT-Timer-0.015-NFgf1H/blib/arch\\\\n /usr/local/src/CPAN/build/POSIX-RT-Timer-0.015-NFgf1H/blib/lib\\\\n /usr/local/src/CPAN/build/Net-SNMPTrapd-0.12-bah6mv/blib/arch\\\\n /usr/local/src/CPAN/build/Net-SNMPTrapd-0.12-bah6mv/blib/lib\\\\n /usr/perl5.12.3/lib/site_perl/5.12.3/i386-freebsd\\\\n /usr/perl5.12.3/lib/site_perl/5.12.3\\\\n /usr/perl5.12.3/lib/5.12.3/i386-freebsd\\\\n /usr/perl5.12.3/lib/5.12.3\\\\n .\\\",\\\"osname\\\":\\\"freebsd\\\",\\\"perl_version\\\":\\\"v5.12.3\\\",\\\"grade\\\":\\\"pass\\\"}\",\"metadata\":{\"core\":{\"resource\":\"cpan:///distfile/BARBIE/CPAN-Testers-WWW-Statistics-1.06.tar.gz\",\"update_time\":\"2013-08-18T10:46:12Z\",\"creator\":\"metabase:user:314402c4-2aae-11df-837a-5e0a49663a4f\",\"type\":\"CPAN-Testers-Fact-LegacyReport\",\"creation_time\":\"2013-08-18T10:46:12Z\",\"guid\":\"6626956c-07f3-11e3-ac5a-df7f19362e69\",\"schema_version\":1,\"valid\":1}}},\"CPAN::Testers::Fact::TestSummary\":{\"content\":\"{\\\"osversion\\\":\\\"8.0-release\\\",\\\"archname\\\":\\\"i386-freebsd\\\",\\\"osname\\\":\\\"freebsd\\\",\\\"perl_version\\\":\\\"v5.12.3\\\",\\\"grade\\\":\\\"pass\\\"}\",\"metadata\":{\"core\":{\"resource\":\"cpan:///distfile/BARBIE/CPAN-Testers-WWW-Statistics-1.06.tar.gz\",\"update_time\":\"2013-08-18T10:46:12Z\",\"creator\":\"metabase:user:314402c4-2aae-11df-837a-5e0a49663a4f\",\"type\":\"CPAN-Testers-Fact-TestSummary\",\"creation_time\":\"2013-08-18T10:46:12Z\",\"guid\":\"6626be0c-07f3-11e3-ac5a-df7f19362e69\",\"schema_version\":1,\"valid\":1}}}}');
+INSERT INTO `metabase` (guid,id,updated,report) VALUES ('b35d7c0c-07f2-11e3-afab-ccf1a108922b',33578988,'2013-08-18T10:41:12Z','{\"CPAN::Testers::Fact::LegacyReport\":{\"content\":\"{\\\"osversion\\\":\\\"8.0-release\\\",\\\"archname\\\":\\\"i386-freebsd\\\",\\\"textreport\\\":\\\"This distribution has been tested as part of the CPAN Testers\\\\nproject, supporting the Perl programming language. See\\\\nhttp://wiki.cpantesters.org/ for more information or email\\\\nquestions to cpan-testers-discuss@perl.org\\\\n\\\\n\\\\n--\\\\nDear Barbie,\\\\n\\\\nThis is a computer-generated report for CPAN-Testers-WWW-Statistics-1.06\\\\non perl 5.14.0, created by CPAN-Reporter-1.2007.\\\\n\\\\nThank you for uploading your work to CPAN. Congratulations!\\\\nAll tests were successful.\\\\n\\\\nSections of this report:\\\\n\\\\n * Tester comments\\\\n * Program output\\\\n * Prerequisites\\\\n * Environment and other context\\\\n\\\\n------------------------------\\\\nTESTER COMMENTS\\\\n------------------------------\\\\n\\\\nAdditional comments from tester:\\\\n\\\\nnone provided\\\\n\\\\n------------------------------\\\\nPROGRAM OUTPUT\\\\n------------------------------\\\\n\\\\nOutput from \'/usr/bin/make test\':\\\\n\\\\nPERL_DL_NONLAZY=1 /home2/cpansand/var/ctps/5140_1/install/perl-5.14.0/bin/perl5.14.0 \\\\\\\"-MExtUtils::Command::MM\\\\\\\" \\\\\\\"-e\\\\\\\" \\\\\\\"test_harness(0, \'blib/lib\', \'blib/arch\')\\\\\\\" t/*.t\\\\nt/01base.t ...................... ok\\\\nt/05setup_db-cpanstats.t ........ ok\\\\nt/05setup_db-ixlatest.t ......... ok\\\\nt/05setup_db-leaderboard.t ...... ok\\\\nt/05setup_db-osname.t ........... ok\\\\nt/05setup_db-release_summary.t .. ok\\\\nt/05setup_db-uploads.t .......... ok\\\\nt/20attributes.t ................ ok\\\\nt/21dies.t ...................... ok\\\\nt/30setdates.t .................. ok\\\\nt/50logging.t ................... ok\\\\nt/51init.t ...................... ok\\\\nt/52methods-graphs.t ............ ok\\\\nt/52methods-leaderboard.t ....... ok\\\\nt/52methods-pages.t ............. ok\\\\nt/52methods-stats.t ............. ok\\\\nt/56writes.t .................... ok\\\\nt/59cleanup.t ................... ok\\\\nt/90podtest.t ................... skipped: Author tests not required for installation\\\\nt/91podcover.t .................. skipped: Author tests not required for installation\\\\nt/94metatest.t .................. skipped: Author tests not required for installation\\\\nt/95changedate.t ................ skipped: Author tests not required for installation\\\\nt/96metatest.t .................. skipped: Author tests not required for installation\\\\nAll tests successful.\\\\nFiles=23, Tests=501, 26 wallclock secs ( 0.20 usr 0.03 sys + 12.10 cusr 1.59 csys = 13.92 CPU)\\\\nResult: PASS\\\\n\\\\n------------------------------\\\\nPREREQUISITES\\\\n------------------------------\\\\n\\\\nPrerequisite modules loaded:\\\\n\\\\nrequires:\\\\n\\\\n Module Need Have \\\\n ------------------------------ ---- -------\\\\n Archive::Extract 0 0.68 \\\\n Archive::Zip 0 1.30 \\\\n CGI 0 3.63 \\\\n Class::Accessor::Fast 0 0.34 \\\\n Config::IniFiles 0 2.82 \\\\n CPAN::Testers::Common::DBUtils 0.03 0.05 \\\\n Cwd 0 3.40 \\\\n Data::Dumper 0 2.143 \\\\n DBD::mysql 0 4.023 \\\\n DBD::SQLite 0 1.40 \\\\n DBI 0 1.628 \\\\n File::Basename 0 2.82 \\\\n File::Copy 0 2.21 \\\\n File::Path 0 2.09 \\\\n File::Slurp 0 9999.19\\\\n File::Spec 0 3.40 \\\\n GD::Graph::lines 0 1.15 \\\\n Getopt::ArgvFile 0 1.11 \\\\n Getopt::Long 0 2.41 \\\\n HTML::Entities 0 3.69 \\\\n HTTP::Request 0 6.00 \\\\n IO::File 0 1.15 \\\\n JSON 0 2.59 \\\\n LWP::UserAgent 0 6.05 \\\\n Regexp::Assemble 0 0.35 \\\\n Sort::Versions 0 1.5 \\\\n Template 2.19 2.25 \\\\n Test::Differences 0 0.61 \\\\n Test::More 0.7 0.98 \\\\n Time::Piece 0 1.20_01\\\\n WWW::Mechanize 0 1.72 \\\\n\\\\nbuild_requires:\\\\n\\\\n Module Need Have \\\\n ------------------------------ ---- -------\\\\n Archive::Extract 0 0.68 \\\\n Archive::Zip 0 1.30 \\\\n Cwd 0 3.40 \\\\n ExtUtils::MakeMaker 0 6.72 \\\\n File::Spec 0 3.40 \\\\n Test::Differences 0 0.61 \\\\n Test::More 0.70 0.98 \\\\n\\\\n\\\\n------------------------------\\\\nENVIRONMENT AND OTHER CONTEXT\\\\n------------------------------\\\\n\\\\nEnvironment variables:\\\\n\\\\n DBIC_NO_WARN_BAD_PERL = 1\\\\n PATH = /usr/local/bin:/usr/X11R6/bin:/usr/X11/bin:/usr/perl5.8.0/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/pilot/bin:/home2/cpansand/bin/freebsd8.0:/home2/cpansand/bin/sh:/home2/cpansand/bin:/usr/X386/bin:/usr/games:/home2/cpansand/devel:/usr/home/e/eserte/work/srezic-misc/scripts\\\\n PERL5LIB = /usr/local/src/CPAN/build/POSIX-RT-Timer-0.015-PcDY7h/blib/arch:/usr/local/src/CPAN/build/POSIX-RT-Timer-0.015-PcDY7h/blib/lib:/usr/local/src/CPAN/build/Net-SNMPTrapd-0.12-o05xHg/blib/arch:/usr/local/src/CPAN/build/Net-SNMPTrapd-0.12-o05xHg/blib/lib\\\\n PERL5OPT = \\\\n PERL5_CPANPLUS_IS_RUNNING = 93620\\\\n PERL5_CPAN_IS_RUNNING = 93620\\\\n PERL5_CPAN_IS_RUNNING_IN_RECURSION = 93598,93620\\\\n PERL_BATCH = yes\\\\n PERL_CPAN_REPORTER_CONFIG = /var/tmp/cpansmoker-1023/5fnRUJE4RH_config.ini\\\\n PERL_CPAN_REPORTER_DIR = /home/cpansand/var/ctps/5140_1/config/perl-5.14.0/cpanreporter\\\\n PERL_EXTUTILS_AUTOINSTALL = --defaultdeps\\\\n PERL_HTML_DISPLAY_CLASS = HTML::Display::Mozilla\\\\n SHELL = /usr/local/bin/zsh\\\\n TERM = screen\\\\n TMPDIR = /var/tmp/cpansmoker-1023\\\\n\\\\nPerl special variables (and OS-specific diagnostics, for MSWin32):\\\\n\\\\n $^X = /home2/cpansand/var/ctps/5140_1/install/perl-5.14.0/bin/perl5.14.0\\\\n $UID/$EUID = 1023 / 1023\\\\n $GID = 1023 1023\\\\n $EGID = 1023 1023\\\\n\\\\nPerl module toolchain versions installed:\\\\n\\\\n Module Have \\\\n ------------------- --------\\\\n CPAN 2.00 \\\\n CPAN::Meta 2.131560\\\\n Cwd 3.40 \\\\n ExtUtils::CBuilder 0.280205\\\\n ExtUtils::Command 1.17 \\\\n ExtUtils::Install 1.56 \\\\n ExtUtils::MakeMaker 6.72 \\\\n ExtUtils::Manifest 1.60 \\\\n ExtUtils::ParseXS 3.18 \\\\n File::Spec 3.40 \\\\n JSON 2.59 \\\\n JSON::PP 2.27200 \\\\n Module::Build 0.4007 \\\\n Module::Signature 0.73 \\\\n Parse::CPAN::Meta 1.4404 \\\\n Test::Harness 3.28 \\\\n Test::More 0.98 \\\\n YAML 0.84 \\\\n YAML::Syck 1.27 \\\\n version 0.9902 \\\\n\\\\n\\\\n--\\\\n\\\\nSummary of my perl5 (revision 5 version 14 subversion 0) configuration:\\\\n \\\\n Platform:\\\\n osname=freebsd, osvers=8.0-release, archname=i386-freebsd\\\\n uname=\'freebsd biokovo.herceg.de 8.0-release freebsd 8.0-release #0: sat nov 21 15:48:17 utc 2009 root@almeida.cse.buffalo.edu:usrobjusrsrcsysgeneric i386 \'\\\\n config_args=\'-ds -e -Uversiononly -Dinstallusrbinperl=n -Dusedevel -Dprefix=/home/cpansand/var/ctps/5140_1/install/perl-5.14.0\'\\\\n hint=recommended, useposix=true, d_sigaction=define\\\\n useithreads=undef, usemultiplicity=undef\\\\n useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef\\\\n use64bitint=undef, use64bitall=undef, uselongdouble=undef\\\\n usemymalloc=n, bincompat5005=undef\\\\n Compiler:\\\\n cc=\'cc\', ccflags =\'-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include\',\\\\n optimize=\'-O\',\\\\n cppflags=\'-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include\'\\\\n ccversion=\'\', gccversion=\'4.2.1 20070719 [FreeBSD]\', gccosandvers=\'\'\\\\n intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234\\\\n d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12\\\\n ivtype=\'long\', ivsize=4, nvtype=\'double\', nvsize=8, Off_t=\'off_t\', lseeksize=8\\\\n alignbytes=4, prototype=define\\\\n Linker and Libraries:\\\\n ld=\'cc\', ldflags =\'-Wl,-E -fstack-protector -L/usr/local/lib\'\\\\n libpth=/usr/lib /usr/local/lib\\\\n libs=-lgdbm -lm -lcrypt -lutil -lc\\\\n perllibs=-lm -lcrypt -lutil -lc\\\\n libc=, so=so, useshrplib=false, libperl=libperl.a\\\\n gnulibc_version=\'\'\\\\n Dynamic Linking:\\\\n dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=\' \'\\\\n cccdlflags=\'-DPIC -fPIC\', lddlflags=\'-shared -L/usr/local/lib -fstack-protector\'\\\\n\\\\n\\\\nCharacteristics of this binary (from libperl): \\\\n Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP\\\\n PERL_PRESERVE_IVUV PERL_USE_DEVEL USE_LARGE_FILES\\\\n USE_PERLIO USE_PERL_ATOF\\\\n Built under freebsd\\\\n Compiled at May 16 2011 22:19:43\\\\n %ENV:\\\\n PERL5LIB=\\\\\\\"/usr/local/src/CPAN/build/POSIX-RT-Timer-0.015-PcDY7h/blib/arch:/usr/local/src/CPAN/build/POSIX-RT-Timer-0.015-PcDY7h/blib/lib:/usr/local/src/CPAN/build/Net-SNMPTrapd-0.12-o05xHg/blib/arch:/usr/local/src/CPAN/build/Net-SNMPTrapd-0.12-o05xHg/blib/lib\\\\\\\"\\\\n PERL5OPT=\\\\\\\"\\\\\\\"\\\\n PERL5_CPANPLUS_IS_RUNNING=\\\\\\\"93620\\\\\\\"\\\\n PERL5_CPAN_IS_RUNNING=\\\\\\\"93620\\\\\\\"\\\\n PERL5_CPAN_IS_RUNNING_IN_RECURSION=\\\\\\\"93598,93620\\\\\\\"\\\\n PERL_BATCH=\\\\\\\"yes\\\\\\\"\\\\n PERL_CPAN_REPORTER_CONFIG=\\\\\\\"/var/tmp/cpansmoker-1023/5fnRUJE4RH_config.ini\\\\\\\"\\\\n PERL_CPAN_REPORTER_DIR=\\\\\\\"/home/cpansand/var/ctps/5140_1/config/perl-5.14.0/cpanreporter\\\\\\\"\\\\n PERL_EXTUTILS_AUTOINSTALL=\\\\\\\"--defaultdeps\\\\\\\"\\\\n PERL_HTML_DISPLAY_CLASS=\\\\\\\"HTML::Display::Mozilla\\\\\\\"\\\\n @INC:\\\\n /usr/local/src/CPAN/build/POSIX-RT-Timer-0.015-PcDY7h/blib/arch\\\\n /usr/local/src/CPAN/build/POSIX-RT-Timer-0.015-PcDY7h/blib/lib\\\\n /usr/local/src/CPAN/build/Net-SNMPTrapd-0.12-o05xHg/blib/arch\\\\n /usr/local/src/CPAN/build/Net-SNMPTrapd-0.12-o05xHg/blib/lib\\\\n /home/cpansand/var/ctps/5140_1/install/perl-5.14.0/lib/site_perl/5.14.0/i386-freebsd\\\\n /home/cpansand/var/ctps/5140_1/install/perl-5.14.0/lib/site_perl/5.14.0\\\\n /home/cpansand/var/ctps/5140_1/install/perl-5.14.0/lib/5.14.0/i386-freebsd\\\\n /home/cpansand/var/ctps/5140_1/install/perl-5.14.0/lib/5.14.0\\\\n .\\\",\\\"osname\\\":\\\"freebsd\\\",\\\"perl_version\\\":\\\"v5.14.0\\\",\\\"grade\\\":\\\"pass\\\"}\",\"metadata\":{\"core\":{\"resource\":\"cpan:///distfile/BARBIE/CPAN-Testers-WWW-Statistics-1.06.tar.gz\",\"update_time\":\"2013-08-18T10:41:12Z\",\"creator\":\"metabase:user:314402c4-2aae-11df-837a-5e0a49663a4f\",\"type\":\"CPAN-Testers-Fact-LegacyReport\",\"creation_time\":\"2013-08-18T10:41:12Z\",\"guid\":\"b35df04c-07f2-11e3-afab-ccf1a108922b\",\"schema_version\":1,\"valid\":1}}},\"CPAN::Testers::Fact::TestSummary\":{\"content\":\"{\\\"osversion\\\":\\\"8.0-release\\\",\\\"archname\\\":\\\"i386-freebsd\\\",\\\"osname\\\":\\\"freebsd\\\",\\\"perl_version\\\":\\\"v5.14.0\\\",\\\"grade\\\":\\\"pass\\\"}\",\"metadata\":{\"core\":{\"resource\":\"cpan:///distfile/BARBIE/CPAN-Testers-WWW-Statistics-1.06.tar.gz\",\"update_time\":\"2013-08-18T10:41:12Z\",\"creator\":\"metabase:user:314402c4-2aae-11df-837a-5e0a49663a4f\",\"type\":\"CPAN-Testers-Fact-TestSummary\",\"creation_time\":\"2013-08-18T10:41:12Z\",\"guid\":\"b35e0a0a-07f2-11e3-afab-ccf1a108922b\",\"schema_version\":1,\"valid\":1}}}}');
+INSERT INTO `metabase` (guid,id,updated,report) VALUES ('ffdb8ffc-07f1-11e3-a0a5-bfc8c70fa3a9',33578912,'2013-08-18T10:36:11Z','{\"CPAN::Testers::Fact::LegacyReport\":{\"content\":\"{\\\"osversion\\\":\\\"8.0-release-p4\\\",\\\"archname\\\":\\\"i386-freebsd\\\",\\\"textreport\\\":\\\"This distribution has been tested as part of the CPAN Testers\\\\nproject, supporting the Perl programming language. See\\\\nhttp://wiki.cpantesters.org/ for more information or email\\\\nquestions to cpan-testers-discuss@perl.org\\\\n\\\\n\\\\n--\\\\nDear Barbie,\\\\n\\\\nThis is a computer-generated report for CPAN-Testers-WWW-Statistics-1.06\\\\non perl 5.16.0, created by CPAN-Reporter-1.2006.\\\\n\\\\nThank you for uploading your work to CPAN. Congratulations!\\\\nAll tests were successful.\\\\n\\\\nSections of this report:\\\\n\\\\n * Tester comments\\\\n * Program output\\\\n * Prerequisites\\\\n * Environment and other context\\\\n\\\\n------------------------------\\\\nTESTER COMMENTS\\\\n------------------------------\\\\n\\\\nAdditional comments from tester:\\\\n\\\\nnone provided\\\\n\\\\n------------------------------\\\\nPROGRAM OUTPUT\\\\n------------------------------\\\\n\\\\nOutput from \'/usr/bin/make test\':\\\\n\\\\nPERL_DL_NONLAZY=1 /home2/cpansand/var/ctps/5160RC0/install/perl-5.16.0-RC0/bin/perl5.16.0 \\\\\\\"-MExtUtils::Command::MM\\\\\\\" \\\\\\\"-e\\\\\\\" \\\\\\\"test_harness(0, \'blib/lib\', \'blib/arch\')\\\\\\\" t/*.t\\\\nt/01base.t ...................... ok\\\\nt/05setup_db-cpanstats.t ........ ok\\\\nt/05setup_db-ixlatest.t ......... ok\\\\nt/05setup_db-leaderboard.t ...... ok\\\\nt/05setup_db-osname.t ........... ok\\\\nt/05setup_db-release_summary.t .. ok\\\\nt/05setup_db-uploads.t .......... ok\\\\nt/20attributes.t ................ ok\\\\nt/21dies.t ...................... ok\\\\nt/30setdates.t .................. ok\\\\nt/50logging.t ................... ok\\\\nt/51init.t ...................... ok\\\\nt/52methods-graphs.t ............ ok\\\\nt/52methods-leaderboard.t ....... ok\\\\nt/52methods-pages.t ............. ok\\\\nt/52methods-stats.t ............. ok\\\\nt/56writes.t .................... ok\\\\nt/59cleanup.t ................... ok\\\\nt/90podtest.t ................... skipped: Author tests not required for installation\\\\nt/91podcover.t .................. skipped: Author tests not required for installation\\\\nt/94metatest.t .................. skipped: Author tests not required for installation\\\\nt/95changedate.t ................ skipped: Author tests not required for installation\\\\nt/96metatest.t .................. skipped: Author tests not required for installation\\\\nAll tests successful.\\\\nFiles=23, Tests=501, 26 wallclock secs ( 0.16 usr 0.06 sys + 12.59 cusr 1.51 csys = 14.33 CPU)\\\\nResult: PASS\\\\n\\\\n------------------------------\\\\nPREREQUISITES\\\\n------------------------------\\\\n\\\\nPrerequisite modules loaded:\\\\n\\\\nrequires:\\\\n\\\\n Module Need Have \\\\n ------------------------------ ---- -------\\\\n Archive::Extract 0 0.62 \\\\n Archive::Zip 0 1.30 \\\\n CGI 0 3.63 \\\\n Class::Accessor::Fast 0 0.34 \\\\n Config::IniFiles 0 2.77 \\\\n CPAN::Testers::Common::DBUtils 0.03 0.08 \\\\n Cwd 0 3.40 \\\\n Data::Dumper 0 2.145 \\\\n DBD::mysql 0 4.021 \\\\n DBD::SQLite 0 1.40 \\\\n DBI 0 1.628 \\\\n File::Basename 0 2.84 \\\\n File::Copy 0 2.23 \\\\n File::Path 0 2.08_01\\\\n File::Slurp 0 9999.19\\\\n File::Spec 0 3.40 \\\\n GD::Graph::lines 0 1.15 \\\\n Getopt::ArgvFile 0 1.11 \\\\n Getopt::Long 0 2.41 \\\\n HTML::Entities 0 3.69 \\\\n HTTP::Request 0 6.00 \\\\n IO::File 0 1.16 \\\\n JSON 0 2.57 \\\\n LWP::UserAgent 0 6.05 \\\\n Regexp::Assemble 0 0.35 \\\\n Sort::Versions 0 1.5 \\\\n Template 2.19 2.24 \\\\n Test::Differences 0 0.61 \\\\n Test::More 0.7 0.98 \\\\n Time::Piece 0 1.20_01\\\\n WWW::Mechanize 0 1.72 \\\\n\\\\nbuild_requires:\\\\n\\\\n Module Need Have \\\\n ------------------------------ ---- -------\\\\n Archive::Extract 0 0.62 \\\\n Archive::Zip 0 1.30 \\\\n Cwd 0 3.40 \\\\n ExtUtils::MakeMaker 0 6.72 \\\\n File::Spec 0 3.40 \\\\n Test::Differences 0 0.61 \\\\n Test::More 0.70 0.98 \\\\n\\\\n\\\\n------------------------------\\\\nENVIRONMENT AND OTHER CONTEXT\\\\n------------------------------\\\\n\\\\nEnvironment variables:\\\\n\\\\n DBIC_NO_WARN_BAD_PERL = 1\\\\n PATH = /usr/local/bin:/usr/X11R6/bin:/usr/X11/bin:/usr/perl5.8.0/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/pilot/bin:/home2/cpansand/bin/freebsd8.0:/home2/cpansand/bin/sh:/home2/cpansand/bin:/usr/X386/bin:/usr/games:/home2/cpansand/devel:/usr/home/e/eserte/work/srezic-misc/scripts\\\\n PERL5LIB = /usr/local/src/CPAN/build/POSIX-RT-Timer-0.015-P6rBYN/blib/arch:/usr/local/src/CPAN/build/POSIX-RT-Timer-0.015-P6rBYN/blib/lib:/usr/local/src/CPAN/build/Net-SNMPTrapd-0.12-xS8YZS/blib/arch:/usr/local/src/CPAN/build/Net-SNMPTrapd-0.12-xS8YZS/blib/lib\\\\n PERL5OPT = \\\\n PERL5_CPANPLUS_IS_RUNNING = 91527\\\\n PERL5_CPAN_IS_RUNNING = 91527\\\\n PERL5_CPAN_IS_RUNNING_IN_RECURSION = 91503,91527\\\\n PERL_BATCH = yes\\\\n PERL_CPAN_REPORTER_CONFIG = /var/tmp/cpansmoker-1023/NZK55xq1Mp_config.ini\\\\n PERL_CPAN_REPORTER_DIR = /home/cpansand/var/ctps/5160RC0/config/perl-5.16.0-RC0/cpanreporter\\\\n PERL_EXTUTILS_AUTOINSTALL = --defaultdeps\\\\n PERL_HTML_DISPLAY_CLASS = HTML::Display::Mozilla\\\\n SHELL = /usr/local/bin/zsh\\\\n TERM = screen\\\\n TMPDIR = /var/tmp/cpansmoker-1023\\\\n\\\\nPerl special variables (and OS-specific diagnostics, for MSWin32):\\\\n\\\\n $^X = /home2/cpansand/var/ctps/5160RC0/install/perl-5.16.0-RC0/bin/perl5.16.0\\\\n $UID/$EUID = 1023 / 1023\\\\n $GID = 1023 1023\\\\n $EGID = 1023 1023\\\\n\\\\nPerl module toolchain versions installed:\\\\n\\\\n Module Have \\\\n ------------------- --------\\\\n CPAN 1.9800 \\\\n CPAN::Meta 2.130880\\\\n Cwd 3.40 \\\\n ExtUtils::CBuilder 0.280206\\\\n ExtUtils::Command 1.17 \\\\n ExtUtils::Install 1.58 \\\\n ExtUtils::MakeMaker 6.72 \\\\n ExtUtils::Manifest 1.61 \\\\n ExtUtils::ParseXS 3.16 \\\\n File::Spec 3.40 \\\\n JSON 2.57 \\\\n JSON::PP 2.27200 \\\\n Module::Build 0.4005 \\\\n Module::Signature 0.70 \\\\n Parse::CPAN::Meta 1.4404 \\\\n Test::Harness 3.23 \\\\n Test::More 0.98 \\\\n YAML 0.84 \\\\n YAML::Syck 1.22 \\\\n version 0.9902 \\\\n\\\\n\\\\n--\\\\n\\\\nSummary of my perl5 (revision 5 version 16 subversion 0) configuration:\\\\n \\\\n Platform:\\\\n osname=freebsd, osvers=8.0-release-p4, archname=i386-freebsd\\\\n uname=\'freebsd biokovo.herceg.de 8.0-release-p4 freebsd 8.0-release-p4 #0: mon jul 12 20:22:27 utc 2010 root@i386-builder.daemonology.net:usrobjusrsrcsysgeneric i386 \'\\\\n config_args=\'-ds -e -Uversiononly -Dinstallusrbinperl=n -Dusedevel -Dprefix=/home/cpansand/var/ctps/5160RC0/install/perl-5.16.0-RC0\'\\\\n hint=recommended, useposix=true, d_sigaction=define\\\\n useithreads=undef, usemultiplicity=undef\\\\n useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef\\\\n use64bitint=undef, use64bitall=undef, uselongdouble=undef\\\\n usemymalloc=n, bincompat5005=undef\\\\n Compiler:\\\\n cc=\'cc\', ccflags =\'-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include\',\\\\n optimize=\'-O\',\\\\n cppflags=\'-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include\'\\\\n ccversion=\'\', gccversion=\'4.2.1 20070719 [FreeBSD]\', gccosandvers=\'\'\\\\n intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234\\\\n d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12\\\\n ivtype=\'long\', ivsize=4, nvtype=\'double\', nvsize=8, Off_t=\'off_t\', lseeksize=8\\\\n alignbytes=4, prototype=define\\\\n Linker and Libraries:\\\\n ld=\'cc\', ldflags =\'-Wl,-E -fstack-protector -L/usr/local/lib\'\\\\n libpth=/usr/lib /usr/local/lib\\\\n libs=-lgdbm -lm -lcrypt -lutil -lc\\\\n perllibs=-lm -lcrypt -lutil -lc\\\\n libc=, so=so, useshrplib=false, libperl=libperl.a\\\\n gnulibc_version=\'\'\\\\n Dynamic Linking:\\\\n dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=\' \'\\\\n cccdlflags=\'-DPIC -fPIC\', lddlflags=\'-shared -L/usr/local/lib -fstack-protector\'\\\\n\\\\n\\\\nCharacteristics of this binary (from libperl): \\\\n Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV\\\\n PERL_MALLOC_WRAP PERL_PRESERVE_IVUV PERL_USE_DEVEL\\\\n USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE\\\\n USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_PERLIO\\\\n USE_PERL_ATOF\\\\n Locally applied patches:\\\\n\\\\tRC0\\\\n Built under freebsd\\\\n Compiled at May 11 2012 21:05:05\\\\n %ENV:\\\\n PERL5LIB=\\\\\\\"/usr/local/src/CPAN/build/POSIX-RT-Timer-0.015-P6rBYN/blib/arch:/usr/local/src/CPAN/build/POSIX-RT-Timer-0.015-P6rBYN/blib/lib:/usr/local/src/CPAN/build/Net-SNMPTrapd-0.12-xS8YZS/blib/arch:/usr/local/src/CPAN/build/Net-SNMPTrapd-0.12-xS8YZS/blib/lib\\\\\\\"\\\\n PERL5OPT=\\\\\\\"\\\\\\\"\\\\n PERL5_CPANPLUS_IS_RUNNING=\\\\\\\"91527\\\\\\\"\\\\n PERL5_CPAN_IS_RUNNING=\\\\\\\"91527\\\\\\\"\\\\n PERL5_CPAN_IS_RUNNING_IN_RECURSION=\\\\\\\"91503,91527\\\\\\\"\\\\n PERL_BATCH=\\\\\\\"yes\\\\\\\"\\\\n PERL_CPAN_REPORTER_CONFIG=\\\\\\\"/var/tmp/cpansmoker-1023/NZK55xq1Mp_config.ini\\\\\\\"\\\\n PERL_CPAN_REPORTER_DIR=\\\\\\\"/home/cpansand/var/ctps/5160RC0/config/perl-5.16.0-RC0/cpanreporter\\\\\\\"\\\\n PERL_EXTUTILS_AUTOINSTALL=\\\\\\\"--defaultdeps\\\\\\\"\\\\n PERL_HTML_DISPLAY_CLASS=\\\\\\\"HTML::Display::Mozilla\\\\\\\"\\\\n @INC:\\\\n /usr/local/src/CPAN/build/POSIX-RT-Timer-0.015-P6rBYN/blib/arch\\\\n /usr/local/src/CPAN/build/POSIX-RT-Timer-0.015-P6rBYN/blib/lib\\\\n /usr/local/src/CPAN/build/Net-SNMPTrapd-0.12-xS8YZS/blib/arch\\\\n /usr/local/src/CPAN/build/Net-SNMPTrapd-0.12-xS8YZS/blib/lib\\\\n /home/cpansand/var/ctps/5160RC0/install/perl-5.16.0-RC0/lib/site_perl/5.16.0/i386-freebsd\\\\n /home/cpansand/var/ctps/5160RC0/install/perl-5.16.0-RC0/lib/site_perl/5.16.0\\\\n /home/cpansand/var/ctps/5160RC0/install/perl-5.16.0-RC0/lib/5.16.0/i386-freebsd\\\\n /home/cpansand/var/ctps/5160RC0/install/perl-5.16.0-RC0/lib/5.16.0\\\\n .\\\",\\\"osname\\\":\\\"freebsd\\\",\\\"perl_version\\\":\\\"v5.16.0 RC0\\\",\\\"grade\\\":\\\"pass\\\"}\",\"metadata\":{\"core\":{\"resource\":\"cpan:///distfile/BARBIE/CPAN-Testers-WWW-Statistics-1.06.tar.gz\",\"update_time\":\"2013-08-18T10:36:11Z\",\"creator\":\"metabase:user:314402c4-2aae-11df-837a-5e0a49663a4f\",\"type\":\"CPAN-Testers-Fact-LegacyReport\",\"creation_time\":\"2013-08-18T10:36:11Z\",\"guid\":\"ffdc04be-07f1-11e3-a0a5-bfc8c70fa3a9\",\"schema_version\":1,\"valid\":1}}},\"CPAN::Testers::Fact::TestSummary\":{\"content\":\"{\\\"osversion\\\":\\\"8.0-release-p4\\\",\\\"archname\\\":\\\"i386-freebsd\\\",\\\"osname\\\":\\\"freebsd\\\",\\\"perl_version\\\":\\\"v5.16.0 RC0\\\",\\\"grade\\\":\\\"pass\\\"}\",\"metadata\":{\"core\":{\"resource\":\"cpan:///distfile/BARBIE/CPAN-Testers-WWW-Statistics-1.06.tar.gz\",\"update_time\":\"2013-08-18T10:36:11Z\",\"creator\":\"metabase:user:314402c4-2aae-11df-837a-5e0a49663a4f\",\"type\":\"CPAN-Testers-Fact-TestSummary\",\"creation_time\":\"2013-08-18T10:36:11Z\",\"guid\":\"ffdc336c-07f1-11e3-a0a5-bfc8c70fa3a9\",\"schema_version\":1,\"valid\":1}}}}');
View
38 t/data/testers_email.sql
@@ -0,0 +1,38 @@
+INSERT INTO `testers_email` VALUES (3,'metabase:user:322078bc-2aae-11df-837a-5e0a49663a4f','Chris Williams (BINGOS)','chris@bingosnet.co.uk');
+INSERT INTO `testers_email` VALUES (4,'metabase:user:322078bc-2aae-11df-837a-5e0a49663a4f','Chris Williams (BINGOS)','cpan-testers@perl.org (\"chris at bingosnet.co.uk\")');
+INSERT INTO `testers_email` VALUES (5,'metabase:user:322078bc-2aae-11df-837a-5e0a49663a4f','Chris Williams (BINGOS)','bingos@cpan.org');
+INSERT INTO `testers_email` VALUES (6,'metabase:user:322078bc-2aae-11df-837a-5e0a49663a4f','Chris Williams (BINGOS)','cpan@bingosnet.co.uk ((cpan))');
+INSERT INTO `testers_email` VALUES (7,'metabase:user:322078bc-2aae-11df-837a-5e0a49663a4f','Chris Williams (BINGOS)','root@klanker.bingosnet.co.uk ((Charlie &))');
+INSERT INTO `testers_email` VALUES (62,'metabase:user:30f4dfbe-2aae-11df-837a-5e0a49663a4f','Nigel Horne','njh@bandsman.co.uk');
+INSERT INTO `testers_email` VALUES (63,'metabase:user:30f4dfbe-2aae-11df-837a-5e0a49663a4f','Nigel Horne','njh@bandsman.co.uk (\"Nigel Horne\")');
+INSERT INTO `testers_email` VALUES (64,'metabase:user:30f4dfbe-2aae-11df-837a-5e0a49663a4f','Nigel Horne','njh@bandsman.co.uk (Nigel Horne)');
+INSERT INTO `testers_email` VALUES (65,'metabase:user:30f4dfbe-2aae-11df-837a-5e0a49663a4f','Nigel Horne','njh@despamed.com');
+INSERT INTO `testers_email` VALUES (66,'metabase:user:30f4dfbe-2aae-11df-837a-5e0a49663a4f','Nigel Horne','njh@despammed.com');
+INSERT INTO `testers_email` VALUES (67,'metabase:user:30f4dfbe-2aae-11df-837a-5e0a49663a4f','Nigel Horne','njh@bandsman.co.uk ((root))');
+INSERT INTO `testers_email` VALUES (75,'metabase:user:30ae4450-2aae-11df-837a-5e0a49663a4f','Alexandr Ciornii (CHORNY)','alexchorny@gmail.com (\"Alexandr Ciornii\")');
+INSERT INTO `testers_email` VALUES (76,'metabase:user:30ae4450-2aae-11df-837a-5e0a49663a4f','Alexandr Ciornii (CHORNY)','alexchorny@gmail.com (Alexandr Ciornii)');
+INSERT INTO `testers_email` VALUES (77,'metabase:user:30ae4450-2aae-11df-837a-5e0a49663a4f','Alexandr Ciornii (CHORNY)','alexchorny@gmail.com');
+INSERT INTO `testers_email` VALUES (78,'metabase:user:30ae4450-2aae-11df-837a-5e0a49663a4f','Alexandr Ciornii (CHORNY)','chorny@mail.ru');
+INSERT INTO `testers_email` VALUES (79,'metabase:user:30ae4450-2aae-11df-837a-5e0a49663a4f','Alexandr Ciornii (CHORNY)','root@chorny.net');
+INSERT INTO `testers_email` VALUES (80,'metabase:user:30ae4450-2aae-11df-837a-5e0a49663a4f','Alexandr Ciornii (CHORNY)','root@chorny.net ((root))');
+INSERT INTO `testers_email` VALUES (106,'metabase:user:314402c4-2aae-11df-837a-5e0a49663a4f','Slaven Rezić (SREZIC)','eserte@biokovo-amd64.herceg.de ((Slaven Rezic))');
+INSERT INTO `testers_email` VALUES (107,'metabase:user:314402c4-2aae-11df-837a-5e0a49663a4f','Slaven Rezić (SREZIC)','eserte@cs.tu-berlin.de (Slaven Rezic)');
+INSERT INTO `testers_email` VALUES (108,'metabase:user:314402c4-2aae-11df-837a-5e0a49663a4f','Slaven Rezić (SREZIC)','eserte@onlineoffice.de (Slaven Rezic)');
+INSERT INTO `testers_email` VALUES (109,'metabase:user:314402c4-2aae-11df-837a-5e0a49663a4f','Slaven Rezić (SREZIC)','eserte@vran.herceg.de (Slaven Rezic)');
+INSERT INTO `testers_email` VALUES (110,'metabase:user:314402c4-2aae-11df-837a-5e0a49663a4f','Slaven Rezić (SREZIC)','postmaster@SPIFF.intra.onlineoffice.de');
+INSERT INTO `testers_email` VALUES (111,'metabase:user:314402c4-2aae-11df-837a-5e0a49663a4f','Slaven Rezić (SREZIC)','rezic@onlineoffice.de ((Slaven Rezic))');
+INSERT INTO `testers_email` VALUES (112,'metabase:user:314402c4-2aae-11df-837a-5e0a49663a4f','Slaven Rezić (SREZIC)','rezic@onlineoffice.de (Slaven Rezic)');
+INSERT INTO `testers_email` VALUES (113,'metabase:user:314402c4-2aae-11df-837a-5e0a49663a4f','Slaven Rezić (SREZIC)','root@hobbes.intra.onlineoffice.de (root)');
+INSERT INTO `testers_email` VALUES (114,'metabase:user:314402c4-2aae-11df-837a-5e0a49663a4f','Slaven Rezić (SREZIC)','root@hobbes.intra.onlineoffice.de (Root)');
+INSERT INTO `testers_email` VALUES (115,'metabase:user:314402c4-2aae-11df-837a-5e0a49663a4f','Slaven Rezić (SREZIC)','slaven@rezic.de (Slaven Rezic)');
+INSERT INTO `testers_email` VALUES (116,'metabase:user:314402c4-2aae-11df-837a-5e0a49663a4f','Slaven Rezić (SREZIC)','slaven@rezic.de');
+INSERT INTO `testers_email` VALUES (117,'metabase:user:314402c4-2aae-11df-837a-5e0a49663a4f','Slaven Rezić (SREZIC)','srezic@cpan.org');
+INSERT INTO `testers_email` VALUES (118,'metabase:user:314402c4-2aae-11df-837a-5e0a49663a4f','Slaven Rezić (SREZIC)','srezic@iconmobile.com ((Slaven Rezic))');
+INSERT INTO `testers_email` VALUES (119,'metabase:user:314402c4-2aae-11df-837a-5e0a49663a4f','Slaven Rezić (SREZIC)','srezic@iconmobile.com (Slaven Rezic)');
+INSERT INTO `testers_email` VALUES (120,'metabase:user:314402c4-2aae-11df-837a-5e0a49663a4f','Slaven Rezić (SREZIC)','srezic@iconmobile.com');
+INSERT INTO `testers_email` VALUES (121,'metabase:user:314402c4-2aae-11df-837a-5e0a49663a4f','Slaven Rezić (SREZIC)','srezic@iconmobile.net ((slaven rezic))');
+INSERT INTO `testers_email` VALUES (122,'metabase:user:314402c4-2aae-11df-837a-5e0a49663a4f','Slaven Rezić (SREZIC)','srezic@iconmobile.net (Slaven Rezic)');
+INSERT INTO `testers_email` VALUES (158,'metabase:user:31d414ea-2aae-11df-837a-5e0a49663a4f','David Cantrell (DCANTRELL)','david@cantrell.org.uk (David Cantrell)');
+INSERT INTO `testers_email` VALUES (159,'metabase:user:31d414ea-2aae-11df-837a-5e0a49663a4f','David Cantrell (DCANTRELL)','david@cantrell.org.uk');
+INSERT INTO `testers_email` VALUES (276,'metabase:user:31dd1d2e-2aae-11df-837a-5e0a49663a4f','Christian Walde','mithaldu@yahoo.de (\"Christian Walde\")');
+INSERT INTO `testers_email` VALUES (417,'metabase:user:c8c88a3a-0cf2-11e0-8a80-cb088eba4d1a','Barbie','barbie@missbarbell.co.uk');
View
166 t/lib/Fake/Loader.pm
@@ -0,0 +1,166 @@
+package Fake::Loader;
+
+use strict;
+use warnings;
+
+use Config::IniFiles;
+use CPAN::Testers::Common::DBUtils;
+use IO::File;
+
+my %options;
+my $config = 't/_DBDIR/test-config.ini';
+
+# -----------------------------------------------------------------------------
+# Object methods
+
+sub new {
+ my $class = shift;
+
+ return unless(-f $config);
+
+ # create an attributes hash
+ my $self = {};
+
+ # create the object
+ bless $self, $class;
+
+ # preload databases
+ $self->{CPANSTATS} = $self->config_db('CPANSTATS') or return;
+ $self->{METABASE} = $self->config_db('METABASE') or return;
+
+ return $self;
+}
+
+sub delete_cpanstats {
+ my $self = shift;
+ $self->{CPANSTATS}{dbh}->do_query('DELETE FROM cpanstats');
+}
+
+sub create_cpanstats {
+ my $self = shift;
+
+ my $fh = IO::File->new("t/data/cpanstats.sql") or return 1;
+ while(<$fh>) {
+ s/(\s|;)*$//;
+ $self->{CPANSTATS}{dbh}->do_query($_);
+ }
+ $fh->close;
+}
+
+sub delete_metabase {
+ my $self = shift;
+ $self->{METABASE}{dbh}->do_query('DELETE FROM metabase');
+ $self->{METABASE}{dbh}->do_query('DELETE FROM testers_email');
+}
+
+sub create_metabase {
+ my $self = shift;
+
+ my $fh = IO::File->new("t/data/metabase.sql") or return 1;
+ while(<$fh>) {
+ s/(\s|;)*$//;
+ $self->{METABASE}{dbh}->do_query($_);
+ }
+ $fh->close;
+
+ $fh = IO::File->new("t/data/testers_email.sql") or return 1;
+ while(<$fh>) {
+ s/(\s|;)*$//;
+ $self->{METABASE}{dbh}->do_query($_);
+ }
+ $fh->close;
+}
+
+#----------------------------------------------------------------------------
+# Test Functions
+
+sub config_db {
+ my ($self,$db) = @_;
+
+ # load config file
+ my $cfg = Config::IniFiles->new( -file => $config );
+
+ # configure databases
+ die "No configuration for $db database\n" unless($cfg->SectionExists($db));
+ my %opts = map {$_ => ($cfg->val($db,$_)||undef);} qw(driver database dbfile dbhost dbport dbuser dbpass);
+ unlink $opts{database} if($opts{driver} eq 'SQLite' && -f $opts{database});
+
+ # need to store new configuration details here
+
+ my $dbh = CPAN::Testers::Common::DBUtils->new(%opts);
+ die "Cannot configure $db database\n" unless($dbh);
+
+ my %hash = ( opts => \%opts, dbh => $dbh );
+ return \%hash;
+}
+
+sub create_db {
+ my $self = shift;
+ my $type = shift || 0;
+
+ if($type == 0) {
+ $self->delete_cpanstats();
+ $self->create_cpanstats();
+
+ $self->delete_metabase();
+ $self->create_metabase();
+ }
+
+ if($type > 0 && $type < 3) {
+ $self->delete_cpanstats();
+ }
+
+ if($type > 1) {
+ $self->delete_metabase();
+ }
+
+ return 0;
+}
+
+sub delete_metabase_id {
+ my ($self,$id) = @_;
+ my @rows = $self->{METABASE}{dbh}->get_query('array','SELECT * FROM metabase WHERE id = ?',$id);
+ $self->{METABASE}{dbh}->do_query('DELETE FROM metabase WHERE id = ?',$id) if(@rows);
+}
+
+sub count_metabase {
+ my $self = shift;
+ my @rows = $self->{METABASE}{dbh}->get_query('array','SELECT * FROM metabase');
+# diag(Dumper($_)) for(@rows);
+ return scalar(@rows);
+}
+
+sub count_cpanstats {
+ my ($self,$state) = @_;
+ my @rows;
+ if($state) {
+ @rows = $self->{CPANSTATS}{dbh}->get_query('array','SELECT * FROM cpanstats WHERE state=?',$state);
+ } else {
+ @rows = $self->{CPANSTATS}{dbh}->get_query('array','SELECT * FROM cpanstats');
+ }
+# diag(Dumper($_)) for(@rows);
+ return scalar(@rows);
+}
+
+sub count_requests {
+ my $self = shift;
+ my @rows = $self->{CPANSTATS}{dbh}->get_query('array','SELECT * FROM page_requests');
+# diag(Dumper($_)) for(@rows);
+ return scalar(@rows);
+}
+
+sub count_summaries {
+ my $self = shift;
+ my @rows = $self->{CPANSTATS}{dbh}->get_query('array','SELECT * FROM release_summary');
+# diag(Dumper($_)) for(@rows);
+ return scalar(@rows);
+}
+
+sub count_releases {
+ my $self = shift;
+ my @rows = $self->{CPANSTATS}{dbh}->get_query('array','SELECT * FROM release_data');
+# diag(Dumper($_)) for(@rows);
+ return scalar(@rows);
+}
+
+1;
Please sign in to comment.
Something went wrong with that request. Please try again.