blib/lib/Dallycot/AST/JSONProperty.pm

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 0.0% 0 / 1 totaltotal 96.9% 32 / 33 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Dallycot/AST/JSONObject.pm ↑ Summary blib/lib/Dallycot.pm »
1 package Dallycot::AST::JSONProperty;
2 29 our $AUTHORITY = 'cpan:JSMITH';
3  
4 # ABSTRACT: Create JSON-LD graph from JSON
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 experimental qw(switch);
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 29 ▶use Promises qw(deferred);
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 sub execute {
17 2 ▶ my ( $self, $engine ) = @_;
Subroutine execute: called CC=1 SCAR=0.0
Pod undocumented
18  
19 return $engine->execute($self->[1])->then(sub {
20 2 ▶ my($value) = @_;
Subroutine __ANON__: called CC=1 SCAR=0.0
21  
22 2 return ($self->[0], $value);
23 2 });
24 }
25  
26 29 1;
« blib/lib/Dallycot/AST/JSONObject.pm ↑ Summary blib/lib/Dallycot.pm »