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         7  
  4         96  
2 4     4   15 use warnings;
  4         5  
  4         180  
3              
4             package Footprintless::Resource::Maven;
5             $Footprintless::Resource::Maven::VERSION = '1.28';
6             # ABSTRACT: A resource described by Maven artifact
7             # PODNAME: Footprintless::Resource::Maven
8              
9 4     4   20 use parent qw(Footprintless::Resource);
  4         10  
  4         22  
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__