lib/Catan/Resource/Lumber.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::Lumber; | ||||||
2 | $Catan::Resource::Lumber::VERSION = '0.03'; | ||||||
3 | 7 | 7 | 814 | use strict; | |||
7 | 10 | ||||||
7 | 174 | ||||||
4 | 7 | 7 | 32 | use warnings; | |||
7 | 13 | ||||||
7 | 177 | ||||||
5 | 7 | 7 | 32 | use parent 'Catan::Resource'; | |||
7 | 13 | ||||||
7 | 35 | ||||||
6 | |||||||
7 | sub new | ||||||
8 | { | ||||||
9 | 194 | 194 | 0 | 427 | my ($class, $quantity) = @_; | ||
10 | 194 | 508 | my $self = $class->SUPER::new($quantity); | ||||
11 | 194 | 414 | $self->{name} = 'Lumber'; | ||||
12 | 194 | 324 | $self->{code} = 'L'; | ||||
13 | 194 | 811 | return $self; | ||||
14 | } | ||||||
15 | 1; | ||||||
16 | |||||||
17 | __END__ |