DBIx/Class/CDBICompat/DestroyWarning.pm

filter: Statementstmt 68.4% 13 / 19 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 4 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 80.0% 4 / 5 Podpod n/a totaltotal 50.0% 17 / 34 CC 5 SCAR 28.4
CC
5
Cov
48%
DESTROY
30.0
BEGIN
1.0
BEGIN
1.0
CRAP 17.1
« DBIx/Class/Storage/DBI/ODBC.pm ↑ Summary DBIx/Class/Storage/DBI/ODBC/ACCESS.pm »
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
BranchTrueFalseTotal
if &detected_reinvoked_destructor 0 0 0
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'} || {}
l!l
00
MC/DC0%0/1
$self->{'_dirty_columns'} || {}
$self->{'_dirty_columns'}
Truth table0%0/2
A
A= $self->{'_dirty_columns'}
Aresult
11
00
16 0 ▶ if keys %{$self->{_dirty_columns} || {}};
Branch: 1 branch
BranchTrueFalseTotal
if keys %{$self->{"_dirty_columns"} or {};} 0 0 0
Condition0%0/2
$self->{'_dirty_columns'} || {}
l!l
00
MC/DC0%0/1
$self->{'_dirty_columns'} || {}
$self->{'_dirty_columns'}
Truth table0%0/2
A
A= $self->{'_dirty_columns'}
Aresult
11
00
17 }
18  
19 2 1;
« DBIx/Class/Storage/DBI/ODBC.pm ↑ Summary DBIx/Class/Storage/DBI/ODBC/ACCESS.pm »