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.58';
3             #ABSTRACT: a backend for CPAN/CPAN::Reporter smokers.
4              
5 5     5   1773 use strict;
  5         44  
  5         180  
6 5     5   39 use warnings;
  5         12  
  5         269  
7 5     5   42 use base qw(POE::Component::SmokeBox::Backend::Base);
  5         13  
  5         2524  
8              
9             sub _data {
10 4     4   9 my $self = shift;
11             $self->{_data} =
12             {
13 4         34 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         13 return;
18             }
19              
20             1;
21              
22             __END__