blib/lib/Dallycot/AST/BuildVector.pm

filter: Statementstmt 90.0% 18 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 0.0% 0 / 2 totaltotal 82.7% 24 / 29 CC 1 SCAR 1.3
CC
1
Cov
90%
to_rdf
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« blib/lib/Dallycot/AST/BuildSet.pm ↑ Summary blib/lib/Dallycot/AST/Cons.pm »
1 package Dallycot::AST::BuildVector;
2 29 our $AUTHORITY = 'cpan:JSMITH';
3  
4 # ABSTRACT: Create vector value
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 sub to_rdf {
13 0 ▶ my($self, $model) = @_;
Subroutine to_rdf: not called CC=1 SCAR=6.9
Pod undocumented
14  
15 0 return $model -> apply(
16 $model -> meta_uri('loc:build-vector'),
17 [ @$self ],
18 {}
19 );
20 # my $bnode = $model -> bnode;
21 # $model -> add_type($bnode, 'loc:Vector');
22 # $model -> add_list($bnode, 'loc:expressions',
23 # map { $_ -> to_rdf($model) } @$self
24 # );
25 }
26  
27 sub execute {
28 49 ▶ my ( $self, $engine ) = @_;
Subroutine execute: called CC=1 SCAR=0.0
Pod undocumented
29  
30 return $engine->collect(@$self)->then(
31 sub {
32 47 ▶ my (@bits) = @_;
Subroutine __ANON__: called CC=1 SCAR=0.0
33  
34 47 bless \@bits => 'Dallycot::Value::Vector';
35 }
36 49 );
37 }
38  
39 29 1;
« blib/lib/Dallycot/AST/BuildSet.pm ↑ Summary blib/lib/Dallycot/AST/Cons.pm »