File Coverage

blib/lib/DTL/Fast/Expression/Operator/Binary/Logical.pm
Criterion Covered Total %
statement 19 19 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod 0 2 0.0
total 26 28 92.8


line stmt bran cond sub pod time code
1             package DTL::Fast::Expression::Operator::Binary::Logical;
2 4     4   1976 use strict; use utf8; use warnings FATAL => 'all';
  4     4   6  
  4     4   84  
  4         12  
  4         4  
  4         14  
  4         67  
  4         7  
  4         133  
3 4     4   14 use parent 'DTL::Fast::Expression::Operator::Binary';
  4         5  
  4         16  
4              
5 4     4   215 use DTL::Fast::Utils qw(as_bool);
  4         5  
  4         515  
6              
7             #@Override
8             sub render
9             {
10 1451     1451 0 1508 my( $self, $context ) = @_;
11            
12             return $self->dispatch(
13 1451         3642 as_bool($self->{'a'}->render($context, 1))
14             , $context
15             );
16             }
17              
18             sub get_b
19             {
20 730     730 0 702 my( $self, $context) = @_;
21 730         1708 return as_bool($self->{'b'}->render($context, 1));
22             }
23              
24             1;