File Coverage

lib/Settlers/Resource/Wool.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 18 19 94.7


line stmt bran cond sub pod time code
1             package Settlers::Resource::Wool;
2             $Settlers::Resource::Wool::VERSION = '0.07';
3 7     7   929 use strict;
  7         12  
  7         162  
4 7     7   35 use warnings;
  7         11  
  7         169  
5 7     7   708 use parent 'Settlers::Resource';
  7         332  
  7         38  
6              
7             sub new
8             {
9 130     130 0 205 my ($class, $quantity) = @_;
10 130         342 my $self = $class->SUPER::new($quantity);
11 130         258 $self->{name} = 'Wool';
12 130         219 $self->{code} = 'W';
13 130         467 return $self;
14             }
15             1;
16              
17             __END__