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 | 823 | use strict; | |||
2 | 4 | ||||||
2 | 49 | ||||||
4 | 2 | 2 | 6 | use warnings; | |||
2 | 3 | ||||||
2 | 37 | ||||||
5 | 2 | 2 | 6 | use version; | |||
2 | 2 | ||||||
2 | 8 | ||||||
6 | |||||||
7 | 2 | 2 | 114 | use base qw( Class::Accessor ); | |||
2 | 4 | ||||||
2 | 934 | ||||||
8 | |||||||
9 | our $VERSION = version->new('1.4.0'); | ||||||
10 | |||||||
11 | sub new { | ||||||
12 | 3 | 3 | 1 | 7 | my ( $class, $field_names, $self ) = @_; | ||
13 | 3 | 19 | $class->mk_ro_accessors( @$field_names ); | ||||
14 | 3 | 320 | bless $self, $class; | ||||
15 | 3 | 11 | return $self; | ||||
16 | } | ||||||
17 | |||||||
18 | 1; | ||||||
19 | |||||||
20 | __END__ |