blib/lib/FigAnim/Point.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 6 | 13 | 46.1 |
branch | n/a | ||
condition | 0 | 3 | 0.0 |
subroutine | 2 | 3 | 66.6 |
pod | n/a | ||
total | 8 | 19 | 42.1 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Point; | ||||||
2 | |||||||
3 | 1 | 1 | 6 | use strict; | |||
1 | 3 | ||||||
1 | 32 | ||||||
4 | 1 | 1 | 5 | use warnings; | |||
1 | 1 | ||||||
1 | 105 | ||||||
5 | |||||||
6 | sub new { | ||||||
7 | 0 | 0 | my $proto = shift; | ||||
8 | 0 | 0 | my $class = ref($proto) || $proto; | ||||
9 | 0 | my $self = {}; | |||||
10 | |||||||
11 | 0 | $self->{x} = shift; | |||||
12 | 0 | $self->{y} = shift; | |||||
13 | |||||||
14 | 0 | bless ($self, $class); | |||||
15 | 0 | return $self; | |||||
16 | } | ||||||
17 | |||||||
18 | |||||||
19 | |||||||
20 | 1; |