blib/lib/Dallycot/AST/Identity.pm

filter: Statementstmt 84.0% 21 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 6 / 8 Podpod 0.0% 0 / 3 totaltotal 75.0% 27 / 36 CC 1 SCAR 2.2
CC
1
Cov
84%
to_string
2.0
to_rdf
2.0
BEGIN
1.0
CRAP 1.2
« blib/lib/Dallycot/AST/Negation.pm ↑ Summary blib/lib/Dallycot/AST/JSONArray.pm »
1 package Dallycot::AST::Identity;
2 29 our $AUTHORITY = 'cpan:JSMITH';
3  
4 # ABSTRACT: Glue node to return an AST upon execution
5  
6 29 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 29 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 29 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 29 ▶use parent 'Dallycot::AST';
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 29 ▶use Promises qw(deferred);
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 sub to_string {
15 0 ▶ my ($self) = @_;
Subroutine to_string: not called CC=1 SCAR=6.9
Pod undocumented
16  
17 0 return $self->[0]->to_string;
18 }
19  
20 sub to_rdf {
21 0 ▶ my($self, $model) = @_;
Subroutine to_rdf: not called CC=1 SCAR=6.9
Pod undocumented
22  
23 0 return $self->[0]->to_rdf($model);
24 }
25  
26 sub execute {
27 123 ▶ my ( $self, $engine ) = @_;
Subroutine execute: called CC=1 SCAR=0.0
Pod undocumented
28  
29 123 my $d = deferred;
30  
31 123 $d->resolve( $self->[0] );
32  
33 123 return $d->promise;
34 }
35  
36 29 1;
« blib/lib/Dallycot/AST/Negation.pm ↑ Summary blib/lib/Dallycot/AST/JSONArray.pm »