File Coverage

lib/Settlers/Resource/Brick.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::Brick;
2             $Settlers::Resource::Brick::VERSION = '0.07';
3 7     7   867 use strict;
  7         10  
  7         164  
4 7     7   35 use warnings;
  7         10  
  7         165  
5 7     7   749 use parent 'Settlers::Resource';
  7         305  
  7         34  
6              
7             sub new
8             {
9 175     175 0 270 my ($class, $quantity) = @_;
10 175         510 my $self = $class->SUPER::new($quantity);
11 175         366 $self->{name} = 'Brick';
12 175         316 $self->{code} = 'B';
13 175         639 return $self;
14             }
15             1;
16              
17             __END__