blib/lib/Text/RecordParser/Object.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 16 | 16 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 1 | 1 | 100.0 |
total | 22 | 22 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Text::RecordParser::Object; | ||||||
2 | |||||||
3 | 2 | 2 | 854 | use strict; | |||
2 | 2 | ||||||
2 | 51 | ||||||
4 | 2 | 2 | 6 | use warnings; | |||
2 | 2 | ||||||
2 | 39 | ||||||
5 | 2 | 2 | 5 | use version; | |||
2 | 2 | ||||||
2 | 9 | ||||||
6 | |||||||
7 | 2 | 2 | 100 | use base qw( Class::Accessor ); | |||
2 | 2 | ||||||
2 | 946 | ||||||
8 | |||||||
9 | our $VERSION = version->new('1.4.0'); | ||||||
10 | |||||||
11 | sub new { | ||||||
12 | 3 | 3 | 1 | 6 | my ( $class, $field_names, $self ) = @_; | ||
13 | 3 | 15 | $class->mk_ro_accessors( @$field_names ); | ||||
14 | 3 | 316 | bless $self, $class; | ||||
15 | 3 | 10 | return $self; | ||||
16 | } | ||||||
17 | |||||||
18 | 1; | ||||||
19 | |||||||
20 | __END__ |