lib/Catan/Resource/Ore.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::Ore; | ||||||
2 | $Catan::Resource::Ore::VERSION = '0.02'; | ||||||
3 | 7 | 7 | 1334 | use strict; | |||
7 | 12 | ||||||
7 | 174 | ||||||
4 | 7 | 7 | 36 | use warnings; | |||
7 | 10 | ||||||
7 | 178 | ||||||
5 | 7 | 7 | 31 | use parent 'Catan::Resource'; | |||
7 | 8 | ||||||
7 | 53 | ||||||
6 | |||||||
7 | sub new | ||||||
8 | { | ||||||
9 | 14 | 14 | 0 | 29 | my ($class, $quantity) = @_; | ||
10 | 14 | 54 | my $self = $class->SUPER::new($quantity); | ||||
11 | 14 | 41 | $self->{name} = 'Ore'; | ||||
12 | 14 | 25 | $self->{code} = 'O'; | ||||
13 | 14 | 83 | return $self; | ||||
14 | } | ||||||
15 | 1; | ||||||
16 | |||||||
17 | __END__ |