| 1 | package App::ZofCMS::Plugin::AutoEmptyQueryDelete; | ||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||
| 3 | 1 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | 1 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||
| 6 | 1 | our $VERSION = '1.001010'; # VERSION | |||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||
| 8 | 0 | ▶ | sub new { bless {}, shift } | ||||||||||||||||||||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 9 | |||||||||||||||||||||||||||||
| 10 | 0 | ▶ | sub process { | ||||||||||||||||||||||||||
|
Subroutine
process: not called CC=4 SCAR=30.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 11 | 0 | my ( $self, $t, $q ) = @_; | |||||||||||||||||||||||||||
| 12 | |||||||||||||||||||||||||||||
| 13 | 0 | my @delete; | |||||||||||||||||||||||||||
| 14 | 0 | for ( keys %$q ) { | |||||||||||||||||||||||||||
| 15 | push @delete, $_ | ||||||||||||||||||||||||||||
| 16 | unless defined $q->{$_} | ||||||||||||||||||||||||||||
| 17 | 0 | ▶ | and length $q->{$_}; | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
defined $q->{$_} and length $q->{$_}
MC/DC0%0/2
defined $q->{$_} and length $q->{$_}
defined $q->{$_}
length $q->{$_}
Truth table0%0/3
A and B
A= defined $q->{$_}B= length $q->{$_}
| |||||||||||||||||||||||||||||
| 18 | } | ||||||||||||||||||||||||||||
| 19 | |||||||||||||||||||||||||||||
| 20 | 0 | delete @$q{ @delete }; | |||||||||||||||||||||||||||
| 21 | } | ||||||||||||||||||||||||||||
| 22 | |||||||||||||||||||||||||||||
| 23 | 1 | 1; | |||||||||||||||||||||||||||
| 24 | __END__ | ||||||||||||||||||||||||||||