File Coverage

lib/Settlers/Resource/Lumber.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::Lumber;
2             $Settlers::Resource::Lumber::VERSION = '0.07';
3 7     7   896 use strict;
  7         10  
  7         165  
4 7     7   33 use warnings;
  7         12  
  7         170  
5 7     7   30 use parent 'Settlers::Resource';
  7         13  
  7         30  
6              
7             sub new
8             {
9 210     210 0 332 my ($class, $quantity) = @_;
10 210         569 my $self = $class->SUPER::new($quantity);
11 210         443 $self->{name} = 'Lumber';
12 210         354 $self->{code} = 'L';
13 210         775 return $self;
14             }
15             1;
16              
17             __END__