File Coverage

blib/lib/Footprintless/Resource/Maven.pm
Criterion Covered Total %
statement 9 14 64.2
branch n/a
condition n/a
subroutine 3 5 60.0
pod 1 1 100.0
total 13 20 65.0


line stmt bran cond sub pod time code
1 4     4   22 use strict;
  4         11  
  4         99  
2 4     4   14 use warnings;
  4         8  
  4         179  
3              
4             package Footprintless::Resource::Maven;
5             $Footprintless::Resource::Maven::VERSION = '1.29';
6             # ABSTRACT: A resource described by Maven artifact
7             # PODNAME: Footprintless::Resource::Maven
8              
9 4     4   32 use parent qw(Footprintless::Resource);
  4         8  
  4         18  
10              
11             sub get_artifact {
12 0     0 1   return $_[0]->{artifact};
13             }
14              
15             sub _init {
16 0     0     my ( $self, $artifact ) = @_;
17              
18 0           $self->Footprintless::Resource::_init( $artifact->get_url() );
19 0           $self->{artifact} = $artifact;
20              
21 0           return $self;
22             }
23              
24             1;
25              
26             __END__