| 1 | package # hide from PAUSE | ||||||||||||||
| 2 | DBIx::Class::CDBICompat::DestroyWarning; | ||||||||||||||
| 3 | |||||||||||||||
| 4 | 1 | ▶ | use strict; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 5 | 1 | ▶ | use warnings; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 6 | |||||||||||||||
| 7 | sub DESTROY { | ||||||||||||||
| 8 | 0 | ▶ | my ($self) = @_; | ||||||||||||
|
Subroutine
DESTROY: not called CC=4 SCAR=30.0
| |||||||||||||||
| 9 | 0 | my $class = ref $self; | |||||||||||||
| 10 | warn "$class $self destroyed without saving changes to " | ||||||||||||||
| 11 | 0 | ▶ | .join(', ', keys %{$self->{_dirty_columns} || {}}) | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 12 | 0 | ▶ | if keys %{$self->{_dirty_columns} || {}}; | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 13 | } | ||||||||||||||
| 14 | |||||||||||||||
| 15 | 1 | 1; | |||||||||||||