| blib/lib/Game/Cribbage/Player.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 12 | 12 | 100.0 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 4 | 4 | 100.0 |
| pod | n/a | ||
| total | 16 | 16 | 100.0 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package Game::Cribbage::Player; | ||||||
| 2 | |||||||
| 3 | 6 | 6 | 83766 | use strict; | |||
| 6 | 12 | ||||||
| 6 | 254 | ||||||
| 4 | 6 | 6 | 35 | use warnings; | |||
| 6 | 12 | ||||||
| 6 | 330 | ||||||
| 5 | |||||||
| 6 | 6 | 6 | 549 | use Rope; | |||
| 6 | 8747 | ||||||
| 6 | 52 | ||||||
| 7 | 6 | 6 | 2689 | use Rope::Autoload; | |||
| 6 | 2412 | ||||||
| 6 | 37 | ||||||
| 8 | |||||||
| 9 | property [qw/id name number/] => ( | ||||||
| 10 | initable => 1, | ||||||
| 11 | writeable => 0, | ||||||
| 12 | configurable => 0, | ||||||
| 13 | enumerable => 1 | ||||||
| 14 | ); | ||||||
| 15 | |||||||
| 16 | function player => sub { | ||||||
| 17 | return 'player' . $_[0]->number; | ||||||
| 18 | }; | ||||||
| 19 | |||||||
| 20 | # should player have cards here to think. | ||||||
| 21 | |||||||
| 22 | 1; |