File Coverage

lib/Catan/Map/Tile/Pastures.pm
Criterion Covered Total %
statement 30 30 100.0
branch n/a
condition n/a
subroutine 10 10 100.0
pod 1 2 50.0
total 41 42 97.6


line stmt bran cond sub pod time code
1             package Catan::Map::Tile::Pastures;
2             $Catan::Map::Tile::Pastures::VERSION = '0.02';
3 3     3   15 use strict;
  3     1   5  
  3         74  
  1         836  
  1         2  
  1         28  
4 3     3   15 use warnings;
  3     1   4  
  3         73  
  1         4  
  1         2  
  1         24  
5 3     3   13 use parent 'Catan::Map::Tile';
  3     1   5  
  3         14  
  1         5  
  1         2  
  1         4  
6 3     3   956 use Catan::Resource::Wool;
  3     1   6  
  3         300  
  1         54  
  1         158  
  1         237  
7              
8             sub new
9             {
10 16     16 1 31 my ($class, $q, $r, $number) = @_;
11 16         46 my $self = $class->SUPER::new($q, $r, $number);
12 16         26 $self->{name} = 'Pastures';
13 16         27 $self->{code} = 'P';
14 16         31 return $self;
15             }
16 16     16 0 67 sub yields { Catan::Resource::Wool->new($_[1]) }
17             1;
18              
19             __END__