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

filter: Statementstmt 90.4% 19 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 0.0% 0 / 3 totaltotal 80.6% 25 / 31 SCAR 0.0
CC
1
Cov
90%
dispatch
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« src/spaceless.h ↑ Summary Fast.xs »
1 package DTL::Fast::Expression::Operator::Binary;
2 11 ▶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 11 ▶use parent 'DTL::Fast::Expression::Operator::Unary';
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 sub new
6 {
7 171 ▶ my( $proto, $argument1, $argument2, %kwargs ) = @_;
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
8 171 $kwargs{'b'} = $argument2;
9
10 171 my $self = $proto->SUPER::new($argument1, %kwargs);
11
12 171 return $self;
13 }
14  
15 sub render
16 {
17 907 ▶ my( $self, $context ) = @_;
Subroutine render: called CC=1 SCAR=0.0
Pod undocumented
18
19 return $self->dispatch(
20 $self->{'a'}->render($context, 1)
21 907 , $self->{'b'}->render($context, 1)
22 , $context
23 );
24 }
25  
26 sub dispatch
27 {
28 0 ▶ my( $self, $arg1, $arg2 ) = @_;
Subroutine dispatch: not called CC=1 SCAR=6.9
Pod undocumented
29 0 die 'Abstract method dispatch was not overriden in subclass '.(ref $self);
30 }
31  
32 11 1;
« src/spaceless.h ↑ Summary Fast.xs »