blib/lib/DTL/Fast/Expression/Operator/Binary/And.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/Filter/Truncatechars.pm ↑ Summary blib/lib/DTL/Fast/Expression/Operator/Binary/Or.pm »
1 package DTL::Fast::Expression::Operator::Binary::And;
2 4 ▶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 4 ▶use parent 'DTL::Fast::Expression::Operator::Binary::Logical';
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 4 $DTL::Fast::OPS_HANDLERS{'and'} = __PACKAGE__;
6  
7 sub dispatch
8 {
9 730 ▶ my( $self, $arg1, $context ) = @_;
Subroutine dispatch: called CC=3 SCAR=11.3
Pod undocumented
10  
11 730 ▶ if( UNIVERSAL::can($arg1, 'and') )
Branch: 1 branch
BranchTrueFalseTotal
if (UNIVERSAL::can($arg1, 'and')) { } 0 730 730
12 {
13 0 return $arg1->and($self->get_b($context));
14 }
15 else
16 {
17 730 ▶ return $arg1 && $self->get_b($context);
Condition100%3/3
$arg1 && $self->get_b($context)
!ll&&!rl&&r
372182176
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
0X0
100
111
18 }
19 }
20  
21 4 1;
« blib/lib/DTL/Fast/Filter/Truncatechars.pm ↑ Summary blib/lib/DTL/Fast/Expression/Operator/Binary/Or.pm »