« 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
Condition0%0/6
$_[3] and ref $_[3] and ref $_[3] eq "DateTime"
$_[3] and ref $_[3]
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"
| |||||||||||||||||||||||||||||||||||||||||||
| 11 | 0 | ▶ | $_[4] = $_[4]->epoch if ($_[4] && ref($_[4]) && ref($_[4]) eq 'DateTime'); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/6
$_[4] and ref $_[4] and ref $_[4] eq "DateTime"
$_[4] and ref $_[4]
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"
| |||||||||||||||||||||||||||||||||||||||||||
| 12 | |||||||||||||||||||||||||||||||||||||||||||
| 13 | 0 | return $_[0]->ensure_numerical($_[3]) - $_[0]->ensure_numerical($_[4]); } | |||||||||||||||||||||||||||||||||||||||||
| 14 | |||||||||||||||||||||||||||||||||||||||||||
| 15 | 30 | 1; | |||||||||||||||||||||||||||||||||||||||||