blib/lib/Dallycot/AST/JSONObject.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/Cons.pm ↑ Summary blib/lib/Dallycot/AST/JSONProperty.pm »
1 package Dallycot::AST::JSONObject;
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->collect(@$self)->then(sub {
20 2 ▶ my(%properties) = @_;
Subroutine __ANON__: called CC=1 SCAR=0.0
21 2 return Dallycot::Value::JSON->new(\%properties);
22 2 });
23 }
24  
25 29 1;
« blib/lib/Dallycot/AST/Cons.pm ↑ Summary blib/lib/Dallycot/AST/JSONProperty.pm »