File Coverage

lib/Catan/Resource/Ore.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::Ore;
2             $Catan::Resource::Ore::VERSION = '0.03';
3 7     7   1565 use strict;
  7         13  
  7         179  
4 7     7   96 use warnings;
  7         16  
  7         199  
5 7     7   710 use parent 'Catan::Resource';
  7         301  
  7         37  
6              
7             sub new
8             {
9 141     141 0 252 my ($class, $quantity) = @_;
10 141         382 my $self = $class->SUPER::new($quantity);
11 141         345 $self->{name} = 'Ore';
12 141         239 $self->{code} = 'O';
13 141         534 return $self;
14             }
15             1;
16              
17             __END__