lib/Catan/Resource/Grain.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::Grain; | ||||||
2 | $Catan::Resource::Grain::VERSION = '0.03'; | ||||||
3 | 7 | 7 | 741 | use strict; | |||
7 | 16 | ||||||
7 | 181 | ||||||
4 | 7 | 7 | 37 | use warnings; | |||
7 | 21 | ||||||
7 | 182 | ||||||
5 | 7 | 7 | 910 | use parent 'Catan::Resource'; | |||
7 | 315 | ||||||
7 | 38 | ||||||
6 | |||||||
7 | sub new | ||||||
8 | { | ||||||
9 | 171 | 171 | 0 | 284 | my ($class, $quantity) = @_; | ||
10 | 171 | 442 | my $self = $class->SUPER::new($quantity); | ||||
11 | 171 | 366 | $self->{name} = 'Grain'; | ||||
12 | 171 | 315 | $self->{code} = 'G'; | ||||
13 | 171 | 766 | return $self; | ||||
14 | } | ||||||
15 | 1; | ||||||
16 | |||||||
17 | __END__ |