lib/WWW/Shopify/Liquid/Operator/Divide.pm

filter: Statementstmt 76.9% 10 / 13 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 3 / 6 Podpod 0.0% 0 / 3 totaltotal 54.1% 13 / 24 CC 2 SCAR 10.0
CC
2
Cov
67%
operate
6.0
symbol
2.0
priority
2.0
CRAP 2.7
« lib/WWW/Shopify/Liquid/Filter/Replace.pm ↑ Summary lib/WWW/Shopify/Liquid/Filter/IReplace.pm »
1 #!/usr/bin/perl
2 38 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 38 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package WWW::Shopify::Liquid::Operator::Divide;
6 38 ▶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 10; }
Subroutine priority: not called CC=1 SCAR=6.9
Pod undocumented
9 0 ▶sub operate { return $_[0]->ensure_numerical($_[4]) ? ($_[0]->ensure_numerical($_[3]) / $_[0]->ensure_numerical($_[4])) : undef; }
Subroutine operate: not called CC=2 SCAR=17.9
Pod undocumented
Branch: 1 branch
BranchTrueFalseTotal
$_[0]->ensure_numerical($_[4]) ? : 0 0 0
10  
11 38 1;
« lib/WWW/Shopify/Liquid/Filter/Replace.pm ↑ Summary lib/WWW/Shopify/Liquid/Filter/IReplace.pm »