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

filter: Statementstmt 66.6% 10 / 15 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 12 MC/DCmcdc 0.0% 0 / 6 Subroutinesub 50.0% 3 / 6 Podpod 0.0% 0 / 3 totaltotal 28.2% 13 / 46 CC 7 SCAR 35.0
CC
7
Cov
32%
operate
56.0
symbol
2.0
priority
2.0
CRAP 33.2
« blib/lib/WWW/Shopify/Liquid/Operator/Or.pm ↑ Summary blib/lib/WWW/Shopify/Liquid/Operator/NotRegex.pm »
1 #!/usr/bin/perl
2 30 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 30 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package WWW::Shopify::Liquid::Operator::Minus;
6 30 ▶use base 'WWW::Shopify::Liquid::Operator';
Subroutine BEGIN: called CC=1 SCAR=0.0
7 0 ▶sub symbol { return '-'; }
Subroutine symbol: not called CC=1 SCAR=6.9
Pod undocumented
8 0 ▶sub priority { return 9; }
Subroutine priority: not called CC=1 SCAR=6.9
Pod undocumented
9 sub operate {
10 0 ▶ $_[3] = $_[3]->epoch if ($_[3] && ref($_[3]) && ref($_[3]) eq 'DateTime');
Subroutine operate: not called CC=7 SCAR=40.3
Pod undocumented
Branch: 1 branch
BranchTrueFalseTotal
if $_[3] and ref $_[3] and ref $_[3] eq "DateTime" 0 0 0
Condition0%0/6
$_[3] and ref $_[3] and ref $_[3] eq "DateTime"
!ll&&!rl&&r
000
$_[3] and ref $_[3]
!ll&&!rl&&r
000
MC/DC0%0/3
$_[3] and ref $_[3] and ref $_[3] eq "DateTime"
$_[3] ref $_[3] ref $_[3] eq "DateTime"
Truth table0%0/4
A and B and C
A= $_[3]B= ref $_[3]C= ref $_[3] eq "DateTime"
ABCresult
0XX0
10X0
1100
1111
11 0 ▶ $_[4] = $_[4]->epoch if ($_[4] && ref($_[4]) && ref($_[4]) eq 'DateTime');
Branch: 1 branch
BranchTrueFalseTotal
if $_[4] and ref $_[4] and ref $_[4] eq "DateTime" 0 0 0
Condition0%0/6
$_[4] and ref $_[4] and ref $_[4] eq "DateTime"
!ll&&!rl&&r
000
$_[4] and ref $_[4]
!ll&&!rl&&r
000
MC/DC0%0/3
$_[4] and ref $_[4] and ref $_[4] eq "DateTime"
$_[4] ref $_[4] ref $_[4] eq "DateTime"
Truth table0%0/4
A and B and C
A= $_[4]B= ref $_[4]C= ref $_[4] eq "DateTime"
ABCresult
0XX0
10X0
1100
1111
12
13 0 return $_[0]->ensure_numerical($_[3]) - $_[0]->ensure_numerical($_[4]); }
14  
15 30 1;
« blib/lib/WWW/Shopify/Liquid/Operator/Or.pm ↑ Summary blib/lib/WWW/Shopify/Liquid/Operator/NotRegex.pm »