lib/Settlers/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 Settlers::Resource::Grain; | ||||||
2 | $Settlers::Resource::Grain::VERSION = '0.07'; | ||||||
3 | 7 | 7 | 1002 | use strict; | |||
7 | 12 | ||||||
7 | 166 | ||||||
4 | 7 | 7 | 34 | use warnings; | |||
7 | 10 | ||||||
7 | 167 | ||||||
5 | 7 | 7 | 31 | use parent 'Settlers::Resource'; | |||
7 | 14 | ||||||
7 | 29 | ||||||
6 | |||||||
7 | sub new | ||||||
8 | { | ||||||
9 | 171 | 171 | 0 | 311 | my ($class, $quantity) = @_; | ||
10 | 171 | 433 | my $self = $class->SUPER::new($quantity); | ||||
11 | 171 | 352 | $self->{name} = 'Grain'; | ||||
12 | 171 | 256 | $self->{code} = 'G'; | ||||
13 | 171 | 656 | return $self; | ||||
14 | } | ||||||
15 | 1; | ||||||
16 | |||||||
17 | __END__ |