blib/lib/Druid/Filter/Logical/Not.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 20 CC 2 SCAR 13.9
CC
2
Cov
0%
build
6.0
type
2.0
BEGIN
2.0
CRAP 4.0
1 package Druid::Filter::Logical::Not;
2 use Moo;
3  
4 extends 'Druid::Filter::Logical';
5  
6 sub type { 'not' }
7  
8 sub build {
9 my $self = shift;
10  
11 if( scalar @{$self->fields} != 1 ){
12 die $self. " can only have one fields attribute"
13 }
14  
15 my $filter = {
16 'type' => $self->type,
17 'field' => @{$self->fields}[0]->build
18 };
19  
20 return $filter;
21 }
22  
23 1;