| blib/lib/IMDB/Local/DB/BaseObjectAccessor.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 6 | 13 | 46.1 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 2 | 4 | 50.0 |
| pod | 0 | 2 | 0.0 |
| total | 8 | 19 | 42.1 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package IMDB::Local::DB::BaseObjectAccessor; | ||||||
| 2 | |||||||
| 3 | # | ||||||
| 4 | # todo - do we need this extra layer ? | ||||||
| 5 | # | ||||||
| 6 | |||||||
| 7 | 1 | 1 | 418 | use Class::Accessor; | |||
| 1 | 1243 | ||||||
| 1 | 11 | ||||||
| 8 | 1 | 1 | 36 | use base qw(Class::Accessor); | |||
| 1 | 1 | ||||||
| 1 | 128 | ||||||
| 9 | |||||||
| 10 | sub add_accessors($@) | ||||||
| 11 | { | ||||||
| 12 | 0 | 0 | 0 | my $self=shift; | |||
| 13 | 0 | push(@{$self->{__FIELDS__}}, @_); | |||||
| 0 | |||||||
| 14 | 0 | $self->SUPER::mk_accessors(@_); | |||||
| 15 | } | ||||||
| 16 | |||||||
| 17 | sub get_accessors($) | ||||||
| 18 | { | ||||||
| 19 | 0 | 0 | 0 | my $self=shift; | |||
| 20 | 0 | return @{$self->{__FIELDS__}}; | |||||
| 0 | |||||||
| 21 | } | ||||||
| 22 | 1; | ||||||
| 23 |