14 Jan 2020 02:15:40 UTC
- Distribution: CPAN-Testers-Schema
- Module version: 0.025
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- Issues (20)
- Testers (138 / 4 / 44)
- KwaliteeBus factor: 1
- 88.52% Coverage
- License: perl_5
- Perl: v5.24.0
- Activity24 month
- Download (58.46KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionPREACTION 💯 Doug Bell
- SEE ALSO
- COPYRIGHT AND LICENSE
CPAN::Testers::Schema::Result::Stats - The basic statistics information extracted from test reports
my $schema = CPAN::Testers::Schema->connect( $dsn, $user, $pass ); # Retrieve a row my $row = $schema->resultset( 'Stats' )->first; # pass from firstname.lastname@example.org (Doug Bell) using Perl 5.20.1 on darwin say sprintf "%s from %s using Perl %s on %s", $row->state, $row->tester, $row->perl, $row->osname; # Create a new row my %new_row_data = ( state => 'fail', guid => '00000000-0000-0000-0000-000000000000', tester => 'email@example.com (Doug Bell)', postdate => '201608', dist => 'My-Dist', version => '0.001', platform => 'darwin-2level', perl => '5.22.0', osname => 'darwin', osvers => '10.8.0', fulldate => '201608120401', type => 2, uploadid => 287102, ); my $new_row = $schema->resultset( 'Stats' )->insert( \%new_row_data );
This table (
cpanstatsin the database) hold the basic, vital statistics extracted from test reports. This data is used to generate reports for the web application and web APIs.
ATTRIBUTESbelow for the full list of attributes.
This data is built from the Metabase by the CPAN::Testers::Data::Generator.
The ID of the row. Auto-generated.
The UUID of this report from the Metabase, stored in standard hex string representation.
The state of the report. One of:
The tests passed and everything went well.
The tests ran but failed.
This dist is incompatible with the tester's Perl or OS.
The state could not be determined.
invalidreports, which are marked that way by dist authors when the problem is on the tester's machine, are handled by the "type" field.
A truncated date, consisting only of the year and month in
The e-mail address of the tester who sent this report, optionally with the tester's name as a comment (
firstname.lastname@example.org (Doug Bell)).
The distribution that was tested.
The version of the distribution.
The version of Perl that was used to run the tests (from
The name of the operating system (from
The version of the operating system (from
The full date of the report, with hours and minutes, in
A field that declares the status of this row. The only current possibilities are:
The ID of the upload that created this dist. Related to the
uploadidfield in the
uploadstable (see CPAN::Testers::Schema::Result::Uploads).
Get the related row in the `uploads` table. See CPAN::Testers::Schema::Result::Upload.
Get the related metadata about the Perl version this report is for. See CPAN::Testers::Schema::Result::PerlVersion.
The name of the distribution that was tested.
The version of the distribution that was tested.
The language and version the test was executed with
The platform the test was run on
The report grade. One of 'pass', 'fail', 'na', 'unknown'.
The name of the tester who sent the report
Oriol Soriano <email@example.com>
Doug Bell <firstname.lastname@example.org>
This software is copyright (c) 2018 by Oriol Soriano, Doug Bell.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install CPAN::Testers::Schema, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install CPAN::Testers::Schema
For more information on module installation, please visit the detailed CPAN module installation guide.