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.02'; | ||||||
3 | 7 | 7 | 932 | use strict; | |||
7 | 11 | ||||||
7 | 174 | ||||||
4 | 7 | 7 | 33 | use warnings; | |||
7 | 10 | ||||||
7 | 185 | ||||||
5 | 7 | 7 | 680 | use parent 'Catan::Resource'; | |||
7 | 319 | ||||||
7 | 34 | ||||||
6 | |||||||
7 | sub new | ||||||
8 | { | ||||||
9 | 20 | 20 | 0 | 39 | my ($class, $quantity) = @_; | ||
10 | 20 | 76 | my $self = $class->SUPER::new($quantity); | ||||
11 | 20 | 48 | $self->{name} = 'Lumber'; | ||||
12 | 20 | 38 | $self->{code} = 'L'; | ||||
13 | 20 | 106 | return $self; | ||||
14 | } | ||||||
15 | 1; | ||||||
16 | |||||||
17 | __END__ |