File Coverage

lib/Catan/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 Catan::Resource::Wool;
2             $Catan::Resource::Wool::VERSION = '0.02';
3 7     7   874 use strict;
  7         15  
  7         172  
4 7     7   32 use warnings;
  7         44  
  7         173  
5 7     7   695 use parent 'Catan::Resource';
  7         296  
  7         33  
6              
7             sub new
8             {
9 22     22 0 43 my ($class, $quantity) = @_;
10 22         66 my $self = $class->SUPER::new($quantity);
11 22         53 $self->{name} = 'Wool';
12 22         35 $self->{code} = 'W';
13 22         101 return $self;
14             }
15             1;
16              
17             __END__