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.07';
3 3     3   45 use 5.006;
  3         11  
4 3     3   45 use Moo;
  3         6  
  3         17  
5 3     3   825 use CPAN::DistnameInfo;
  3         5  
  3         383  
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   2877 my $self = shift;
16              
17 7         49 return CPAN::DistnameInfo->new($self->path);
18             }
19              
20             1;