File Coverage

blib/lib/POE/Component/SmokeBox/Backend/CPAN/Reporter.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package POE::Component::SmokeBox::Backend::CPAN::Reporter;
2             $POE::Component::SmokeBox::Backend::CPAN::Reporter::VERSION = '0.56';
3             #ABSTRACT: a backend for CPAN/CPAN::Reporter smokers.
4              
5 5     5   1673 use strict;
  5         11  
  5         173  
6 5     5   31 use warnings;
  5         14  
  5         171  
7 5     5   31 use base qw(POE::Component::SmokeBox::Backend::Base);
  5         13  
  5         1905  
8              
9             sub _data {
10 4     4   8 my $self = shift;
11             $self->{_data} =
12             {
13 4         31 check => [ '-MCPAN::Reporter', '-e', 1 ],
14             index => [ '-MCPAN', '-MCPAN::HandleConfig', '-e', 'CPAN::HandleConfig->load; CPAN::Shell::setup_output; CPAN::Index->force_reload();' ],
15             smoke => [ '-MCPAN', '-e', 'my $module = shift; $CPAN::Config->{test_report} = 1; CPAN::Index->reload; $CPAN::META->reset_tested; test($module);' ],
16             };
17 4         14 return;
18             }
19              
20             1;
21              
22             __END__