| 1 | package # hide from PAUSE | ||||||||||
| 2 | DBIx::Class::CDBICompat::AttributeAPI; | ||||||||||
| 3 | |||||||||||
| 4 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 0 | ▶ | sub _attrs { | ||||||||
|
Subroutine
_attrs: not called CC=1 SCAR=6.9
| |||||||||||
| 8 | 0 | my ($self, @atts) = @_; | |||||||||
| 9 | 0 | return @{$self->{_column_data}}{@atts}; | |||||||||
| 10 | } | ||||||||||
| 11 | |||||||||||
| 12 | 2 | *_attr = \&_attrs; | |||||||||
| 13 | |||||||||||
| 14 | 0 | ▶ | sub _attribute_store { | ||||||||
|
Subroutine
_attribute_store: not called CC=3 SCAR=24.8
| |||||||||||
| 15 | 0 | my $self = shift; | |||||||||
| 16 | 0 | ▶ | my $vals = @_ == 1 ? shift: {@_}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | 0 | $self->store_column($_, $vals->{$_}) for keys %{$vals}; | |||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 0 | ▶ | sub _attribute_set { | ||||||||
|
Subroutine
_attribute_set: not called CC=3 SCAR=24.8
| |||||||||||
| 21 | 0 | my $self = shift; | |||||||||
| 22 | 0 | ▶ | my $vals = @_ == 1 ? shift: {@_}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 23 | 0 | $self->set_column($_, $vals->{$_}) for keys %{$vals}; | |||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 0 | ▶ | sub _attribute_delete { | ||||||||
|
Subroutine
_attribute_delete: not called CC=1 SCAR=6.9
| |||||||||||
| 27 | 0 | my ($self, $attr) = @_; | |||||||||
| 28 | 0 | delete $self->{_column_data}{$attr}; | |||||||||
| 29 | } | ||||||||||
| 30 | |||||||||||
| 31 | 0 | ▶ | sub _attribute_exists { | ||||||||
|
Subroutine
_attribute_exists: not called CC=1 SCAR=6.9
| |||||||||||
| 32 | 0 | my ($self, $attr) = @_; | |||||||||
| 33 | 0 | $self->has_column_loaded($attr); | |||||||||
| 34 | } | ||||||||||
| 35 | |||||||||||
| 36 | 2 | 1; | |||||||||