File Coverage

blib/lib/CPAN/Releases/Latest/Release.pm
Criterion Covered Total %
statement 10 10 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 14 14 100.0


line stmt bran cond sub pod time code
1             package CPAN::Releases::Latest::Release;
2             $CPAN::Releases::Latest::Release::VERSION = '0.08';
3 3     3   43 use 5.006;
  3         8  
4 3     3   55 use Moo;
  3         5  
  3         15  
5 3     3   719 use CPAN::DistnameInfo;
  3         5  
  3         400  
6              
7             has 'distname' => (is => 'ro');
8             has 'path' => (is => 'ro');
9             has 'timestamp' => (is => 'ro');
10             has 'size' => (is => 'ro');
11             has 'distinfo' => (is => 'lazy');
12              
13             sub _build_distinfo
14             {
15 7     7   1388 my $self = shift;
16              
17 7         34 return CPAN::DistnameInfo->new($self->path);
18             }
19              
20             1;