File Coverage

blib/lib/CPAN/Testers/Report.pm
Criterion Covered Total %
statement 13 19 68.4
branch 0 2 0.0
condition n/a
subroutine 5 7 71.4
pod 3 3 100.0
total 21 31 67.7


line stmt bran cond sub pod time code
1 1     1   877 use 5.006;
  1         2  
  1         30  
2 1     1   4 use strict;
  1         1  
  1         22  
3 1     1   3 use warnings;
  1         1  
  1         39  
4              
5             package CPAN::Testers::Report;
6             # ABSTRACT: CPAN Testers report object
7              
8             our $VERSION = '1.999003';
9              
10 1     1   373 use Metabase::Report 0.016 ();
  1         16762  
  1         128  
11             our @ISA = qw/Metabase::Report/;
12             CPAN::Testers::Report->load_fact_classes;
13              
14             sub report_spec {
15             return {
16 1     1 1 15 'CPAN::Testers::Fact::LegacyReport' => 1,
17             'CPAN::Testers::Fact::TestSummary' => 1, # include date
18             'CPAN::Testers::Fact::TestOutput' => '0+', # eventually by phase
19             'CPAN::Testers::Fact::TesterComment' => '0+',
20             'CPAN::Testers::Fact::PerlConfig' => '0+',
21             'CPAN::Testers::Fact::TestEnvironment' => '0+',
22             'CPAN::Testers::Fact::Prereqs' => '0+', # declared versions
23             'CPAN::Testers::Fact::InstalledModules' => '0+',
24             # XXX needs NNTP_ID for old reports -- dagolden, 2009-06-24
25             # future goals
26             # 'CPAN::Testers::Fact::TAPArchive' => 1,
27             };
28             }
29              
30             sub content_metadata {
31 0     0 1   my ($self) = @_;
32 0           for my $fact ( $self->facts ) {
33 0 0         next unless $fact->type eq 'CPAN-Testers-Fact-LegacyReport';
34 0           return $fact->content_metadata;
35             }
36             }
37              
38             sub content_metadata_types {
39 0     0 1   require CPAN::Testers::Fact::LegacyReport;
40 0           return CPAN::Testers::Fact::LegacyReport->content_metadata_types;
41             }
42              
43             1;
44              
45             __END__