File Coverage

blib/lib/MetaCPAN/Client/Module.pm
Criterion Covered Total %
statement 9 15 60.0
branch n/a
condition n/a
subroutine 3 6 50.0
pod 3 3 100.0
total 15 24 62.5


line stmt bran cond sub pod time code
1 19     19   115 use strict;
  19         31  
  19         501  
2 19     19   84 use warnings;
  19         33  
  19         695  
3             package MetaCPAN::Client::Module;
4             # ABSTRACT: A Module data object
5             $MetaCPAN::Client::Module::VERSION = '2.030000';
6 19     19   87 use Moo;
  19         49  
  19         81  
7             extends 'MetaCPAN::Client::File';
8              
9             sub metacpan_url {
10 0     0 1   my $self = shift;
11 0           sprintf("https://metacpan.org/pod/release/%s/%s/%s",
12             $self->author, $self->release, $self->path );
13             }
14              
15             sub package {
16 0     0 1   my $self = shift;
17 0           return $self->client->package( $self->documentation );
18             }
19              
20             sub permission {
21 0     0 1   my $self = shift;
22 0           return $self->client->permission( $self->documentation );
23             }
24              
25             1;
26              
27             __END__