Jmespath/Ast.pm

filter: Statementstmt 100% 49 / 49 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 24 / 24 Podpod 0.0% 0 / 22 totaltotal 76.8% 73 / 95 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
comparator
1.0
CRAP 1.0
« Jmespath/String.pm ↑ Summary Jmespath/Expression.pm »
1 package Jmespath::Ast;
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5  
6 119 ▶sub comparator {
Subroutine comparator: called CC=1 SCAR=0.0
Pod undocumented
7 119 my ($class, $name, $first, $second) = @_;
8 119 return { type => 'comparator',
9 children => [$first, $second],
10 value => $name,
11 };
12 }
13  
14 20 ▶sub current_node {
Subroutine current_node: called CC=1 SCAR=0.0
Pod undocumented
15 20 return { type => 'current', children => [] };
16 }
17  
18 28 ▶sub expref {
Subroutine expref: called CC=1 SCAR=0.0
Pod undocumented
19 28 my ( $class, $expression ) = @_;
20 28 return { type => 'expref', 'children' => [$expression] };
21 }
22  
23 177 ▶sub function_expression {
Subroutine function_expression: called CC=1 SCAR=0.0
Pod undocumented
24 177 my ($class, $name, $args) = @_;
25 177 return { type => 'function_expression', children => $args, value => $name };
26 }
27  
28 1453 ▶sub field {
Subroutine field: called CC=1 SCAR=0.0
Pod undocumented
29 1453 my ($class, $name) = @_;
30 1453 return { type => 'field', children => [], value => $name };
31 }
32  
33 81 ▶sub filter_projection {
Subroutine filter_projection: called CC=1 SCAR=0.0
Pod undocumented
34 81 my ($class, $left, $right, $comp) = @_;
35 81 return { type => 'filter_projection', children => [ $left, $right, $comp ] };
36 }
37  
38 96 ▶sub flatten {
Subroutine flatten: called CC=1 SCAR=0.0
Pod undocumented
39 96 my ($class, $node) = @_;
40 96 return { type => 'flatten', children => [$node] };
41 }
42  
43 253 ▶sub identity {
Subroutine identity: called CC=1 SCAR=0.0
Pod undocumented
44 253 return { type => 'identity', 'children' => [] };
45 }
46  
47 113 ▶sub index_of {
Subroutine index_of: called CC=1 SCAR=0.0
Pod undocumented
48 113 my ($class, $index) = @_;
49 113 return { type => 'index', value => $index, children => [] };
50 }
51  
52 130 ▶sub index_expression {
Subroutine index_expression: called CC=1 SCAR=0.0
Pod undocumented
53 130 my ($class, $children) = @_;
54 130 return { type => 'index_expression', children => $children };
55 }
56  
57 64 ▶sub key_val_pair {
Subroutine key_val_pair: called CC=1 SCAR=0.0
Pod undocumented
58 64 my ($class, $key_name, $node) = @_;
59 64 return { type => 'key_val_pair', children => [$node], value => $key_name };
60 }
61  
62 226 ▶sub literal {
Subroutine literal: called CC=1 SCAR=0.0
Pod undocumented
63 226 my ($class, $literal_value) = @_;
64 226 return { type => 'literal', value => $literal_value, children => [] };
65 }
66  
67 34 ▶sub multi_select_hash {
Subroutine multi_select_hash: called CC=1 SCAR=0.0
Pod undocumented
68 34 my ($class, $nodes) = @_;
69 34 return {type => 'multi_select_hash', children => $nodes };
70 }
71  
72 31 ▶sub multi_select_list {
Subroutine multi_select_list: called CC=1 SCAR=0.0
Pod undocumented
73 31 my ($class, $nodes) = @_;
74 31 return { type => 'multi_select_list', children => $nodes };
75 }
76  
77 48 ▶sub or_expression {
Subroutine or_expression: called CC=1 SCAR=0.0
Pod undocumented
78 48 my ($class, $left, $right) = @_;
79 48 return { type => 'or_expression', children => [$left, $right]};
80 }
81  
82 30 ▶sub and_expression {
Subroutine and_expression: called CC=1 SCAR=0.0
Pod undocumented
83 30 my ($class, $left, $right) = @_;
84 30 return { type => 'and_expression', children => [$left, $right]};
85 }
86  
87 14 ▶sub not_expression {
Subroutine not_expression: called CC=1 SCAR=0.0
Pod undocumented
88 14 my ($class, $expr) = @_;
89 14 return { type => 'not_expression', children => [$expr] };
90 }
91  
92 22 ▶sub pipe_oper {
Subroutine pipe_oper: called CC=1 SCAR=0.0
Pod undocumented
93 22 my ($class, $left, $right) = @_;
94 22 return { type => 'pipe', children => [$left, $right]};
95 }
96  
97 191 ▶sub projection {
Subroutine projection: called CC=1 SCAR=0.0
Pod undocumented
98 191 my ($class, $left, $right) = @_;
99 191 return { type => 'projection', children => [$left, $right] };
100 }
101  
102 153 ▶sub subexpression {
Subroutine subexpression: called CC=1 SCAR=0.0
Pod undocumented
103 153 my ($class, $children) = @_;
104 153 return { type => 'subexpression', children => $children};
105 }
106  
107 38 ▶sub slice {
Subroutine slice: called CC=1 SCAR=0.0
Pod undocumented
108 38 my ($class, $start, $end, $step) = @_;
109 38 return { type => 'slice', children => [$start, $end, $step]};
110 }
111  
112 55 ▶sub value_projection {
Subroutine value_projection: called CC=1 SCAR=0.0
Pod undocumented
113 55 my ($class, $left, $right) = @_;
114 55 return { type => 'value_projection', children => [$left, $right] };
115 }
116  
117 2 1;
« Jmespath/String.pm ↑ Summary Jmespath/Expression.pm »