| 1 | package # hide from PAUSE | ||||||||||||||||||||
| 2 | DBIx::Class::CDBICompat::DestroyWarning; | ||||||||||||||||||||
| 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 | 2 | ▶ | use DBIx::Class::_Util 'detected_reinvoked_destructor'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 7 | 2 | ▶ | use namespace::clean; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 8 | |||||||||||||||||||||
| 9 | 0 | ▶ | sub DESTROY { | ||||||||||||||||||
|
Subroutine
DESTROY: not called CC=5 SCAR=34.0
| |||||||||||||||||||||
| 10 | 0 | ▶ | return if &detected_reinvoked_destructor; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 11 | |||||||||||||||||||||
| 12 | 0 | my ($self) = @_; | |||||||||||||||||||
| 13 | 0 | my $class = ref $self; | |||||||||||||||||||
| 14 | warn "$class $self destroyed without saving changes to " | ||||||||||||||||||||
| 15 | 0 | ▶ | .join(', ', keys %{$self->{_dirty_columns} || {}}) | ||||||||||||||||||
|
Condition0%0/2
$self->{'_dirty_columns'} || {}
MC/DC0%0/1
$self->{'_dirty_columns'} || {}
$self->{'_dirty_columns'}
Truth table0%0/2
A
A= $self->{'_dirty_columns'}
| |||||||||||||||||||||
| 16 | 0 | ▶ | if keys %{$self->{_dirty_columns} || {}}; | ||||||||||||||||||
|
Branch: 1 branch
Condition0%0/2
$self->{'_dirty_columns'} || {}
MC/DC0%0/1
$self->{'_dirty_columns'} || {}
$self->{'_dirty_columns'}
Truth table0%0/2
A
A= $self->{'_dirty_columns'}
| |||||||||||||||||||||
| 17 | } | ||||||||||||||||||||
| 18 | |||||||||||||||||||||
| 19 | 2 | 1; | |||||||||||||||||||