blib/lib/DTL/Fast/Expression/Operator/Binary/Or.pm

filter: Statementstmt 94.4% 17 / 18 Branchbran 50.0% 1 / 2 Conditioncond 100% 3 / 3 MC/DCmcdc 100% 2 / 2 Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 90.3% 28 / 31 SCAR 11.0
CC
3
Cov
91%
dispatch
3.1
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« blib/lib/DTL/Fast/Expression/Operator/Binary/And.pm ↑ Summary blib/lib/DTL/Fast/Filter/Length.pm »
1 package DTL::Fast::Expression::Operator::Binary::Or;
2 3 ▶use strict; use utf8; use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 ▶use parent 'DTL::Fast::Expression::Operator::Binary::Logical';
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 3 $DTL::Fast::OPS_HANDLERS{'or'} = __PACKAGE__;
6  
7 sub dispatch
8 {
9 721 ▶ my( $self, $arg1, $context) = @_;
Subroutine dispatch: called CC=3 SCAR=11.3
Pod undocumented
10  
11 721 ▶ if( UNIVERSAL::can($arg1, 'or') )
Branch: 1 branch
BranchTrueFalseTotal
if (UNIVERSAL::can($arg1, 'or')) { } 0 721 721
12 {
13 0 return $arg1->or($self->get_b($context));
14 }
15 else
16 {
17 721 ▶ return $arg1 || $self->get_b($context);
Condition100%3/3
$arg1 || $self->get_b($context)
l!l&&r!l&&!r
349180192
MC/DC100%2/2
$arg1 || $self->get_b($context)
$arg1 $self->get_b($context)
Truth table100%3/3
A || B
A= $arg1B= $self->get_b($context)
ABresult
1X1
011
000
18 }
19 }
20  
21 3 1;
« blib/lib/DTL/Fast/Expression/Operator/Binary/And.pm ↑ Summary blib/lib/DTL/Fast/Filter/Length.pm »