| 1 | package Net::Curl::Promiser::LeakDetector; | ||||||||||||||||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||||||||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 4 | 1 | ▶ | use warnings; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||||||||||||||||
| 6 | 0 | ▶ | sub DESTROY { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
DESTROY: not called CC=4 SCAR=30.0
| |||||||||||||||||||||||||||||||||||||||||||
| 7 | 0 | my ($self) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||||||||||||||||
| 9 | 0 | ▶ | if (!$self->{'ignore_leaks'} && ${^GLOBAL_PHASE} && ${^GLOBAL_PHASE} eq 'DESTRUCT' ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/6
not $self->{"ignore_leaks"} and ${^GLOBAL_PHASE} and ${^GLOBAL_PHASE} eq "DESTRUCT"
not $self->{"ignore_leaks"} and ${^GLOBAL_PHASE}
MC/DC0%0/3
not $self->{"ignore_leaks"} and ${^GLOBAL_PHASE} and ${^GLOBAL_PHASE} eq "DESTRUCT"
not $self->{"ignore_leaks"}
${^GLOBAL_PHASE}
${^GLOBAL_PHASE} eq "DESTRUCT"
Truth table0%0/4
not(A) and B and C
A= not $self->{"ignore_leaks"}B= ${^GLOBAL_PHASE}C= ${^GLOBAL_PHASE} eq "DESTRUCT"
| |||||||||||||||||||||||||||||||||||||||||||
| 10 | 0 | warn "$self: destroyed at global destruction; memory leak likely!"; | |||||||||||||||||||||||||||||||||||||||||
| 11 | } | ||||||||||||||||||||||||||||||||||||||||||
| 12 | } | ||||||||||||||||||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||||||||||||||||
| 14 | 1 | 1; | |||||||||||||||||||||||||||||||||||||||||