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.03'; | ||||||
3 | 7 | 7 | 874 | use strict; | |||
7 | 12 | ||||||
7 | 180 | ||||||
4 | 7 | 7 | 40 | use warnings; | |||
7 | 10 | ||||||
7 | 197 | ||||||
5 | 7 | 7 | 913 | use parent 'Catan::Resource'; | |||
7 | 388 | ||||||
7 | 36 | ||||||
6 | |||||||
7 | sub new | ||||||
8 | { | ||||||
9 | 118 | 118 | 0 | 192 | my ($class, $quantity) = @_; | ||
10 | 118 | 301 | my $self = $class->SUPER::new($quantity); | ||||
11 | 118 | 266 | $self->{name} = 'Wool'; | ||||
12 | 118 | 192 | $self->{code} = 'W'; | ||||
13 | 118 | 447 | return $self; | ||||
14 | } | ||||||
15 | 1; | ||||||
16 | |||||||
17 | __END__ |