blib/lib/WWW/Shopify/Liquid/Operator/Not.pm

filter: Statementstmt 72.2% 13 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 4 / 8 Podpod 0.0% 0 / 4 totaltotal 56.6% 17 / 30 CC 1 SCAR 4.1
CC
1
Cov
72%
symbol
2.0
arity
2.0
fixness
2.0
CRAP 1.5
« blib/lib/WWW/Shopify/Liquid/Filter/Sprintf.pm ↑ Summary blib/lib/WWW/Shopify/Liquid/Filter/DividedBy.pm »
1 #!/usr/bin/perl
2  
3 30 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 30 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 # Used in our AST to keep things simple; represents the concatenation of text and other stuff.
7 # Making this a many-dimensional operator, so that we avoid going too far down the callstack rabbithole.
8 package WWW::Shopify::Liquid::Operator::Not;
9 30 ▶use base 'WWW::Shopify::Liquid::Operator';
Subroutine BEGIN: called CC=1 SCAR=0.0
10 30 ▶use Scalar::Util qw(blessed);
Subroutine BEGIN: called CC=1 SCAR=0.0
11 0 ▶sub symbol { return "!"; }
Subroutine symbol: not called CC=1 SCAR=6.9
Pod undocumented
12 0 ▶sub arity { return "unary"; }
Subroutine arity: not called CC=1 SCAR=6.9
Pod undocumented
13 0 ▶sub fixness { return "prefix"; }
Subroutine fixness: not called CC=1 SCAR=6.9
Pod undocumented
14 sub operate {
15 0 ▶ my ($self, $hash, $action, $op) = @_;
Subroutine operate: not called CC=1 SCAR=6.9
Pod undocumented
16 0 return !$op;
17 }
18  
19 30 1;
« blib/lib/WWW/Shopify/Liquid/Filter/Sprintf.pm ↑ Summary blib/lib/WWW/Shopify/Liquid/Filter/DividedBy.pm »