« 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
| |||||||||||||||||||||
| 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)
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)
| |||||||||||||||||||||
| 18 | } | ||||||||||||||||||||
| 19 | } | ||||||||||||||||||||
| 20 | |||||||||||||||||||||
| 21 | 3 | 1; | |||||||||||||||||||