File Coverage

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


line stmt bran cond sub pod time code
1             package CPAN::Releases::Latest::Release;
2             $CPAN::Releases::Latest::Release::VERSION = '0.06';
3 3     3   41 use 5.006;
  3         8  
  3         90  
4 3     3   12 use Moo;
  3         3  
  3         15  
5 3     3   767 use CPAN::DistnameInfo;
  3         12  
  3         457  
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   1997 my $self = shift;
16              
17 7         33 return CPAN::DistnameInfo->new($self->path);
18             }
19              
20             1;