ZofCMS/Plugin/AutoEmptyQueryDelete.pm

filter: Statementstmt 57.1% 8 / 14 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 50.0% 2 / 4 Podpod 0.0% 0 / 2 totaltotal 37.0% 10 / 27 CC 4 SCAR 24.8
CC
4
Cov
42%
process
20.0
new
2.0
BEGIN
1.0
CRAP 12.0
« ZofCMS/Plugin/ValidationLinks.pm ↑ Summary ZofCMS/Plugin/SplitPriceSelect.pm »
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
BranchTrueFalseTotal
unless defined $q->{$_} and length $q->{$_} 0 0 0
Condition0%0/3
defined $q->{$_} and length $q->{$_}
!ll&&!rl&&r
000
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->{$_}
ABresult
0X0
100
111
18 }
19  
20 0 delete @$q{ @delete };
21 }
22  
23 1 1;
24 __END__
« ZofCMS/Plugin/ValidationLinks.pm ↑ Summary ZofCMS/Plugin/SplitPriceSelect.pm »