blib/lib/JQ/Lite/AST.pm

filter: Statementstmt 96.4% 27 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 91.6% 11 / 12 Podpod 0.0% 0 / 2 totaltotal 90.4% 38 / 42 CC 1 SCAR 0.8
CC
1
Cov
96%
type
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« blib/lib/JQ/Lite/Error.pm ↑ Summary
1 package JQ::Lite::AST;
2  
3 182 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 182 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1039 ▶sub pipeline {
Subroutine pipeline: called CC=1 SCAR=0.0
Pod undocumented
7 1039 my ($class, @filters) = @_;
8 1039 return bless { type => 'Pipeline', filters => [@filters] },
9 'JQ::Lite::AST::Pipeline';
10 }
11  
12 1528 ▶sub filter {
Subroutine filter: called CC=1 SCAR=0.0
Pod undocumented
13 1528 my ($class, $source) = @_;
14 1528 return bless { type => 'Filter', source => $source },
15 'JQ::Lite::AST::Filter';
16 }
17  
18 package JQ::Lite::AST::Pipeline;
19  
20 182 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 182 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 1040 ▶sub type { return $_[0]->{type} }
Subroutine type: called CC=1 SCAR=0.0
24 1040 ▶sub filters { return @{ $_[0]->{filters} } }
Subroutine filters: called CC=1 SCAR=0.0
25  
26 package JQ::Lite::AST::Filter;
27  
28 182 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
29 182 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
30  
31 0 ▶sub type { return $_[0]->{type} }
Subroutine type: not called CC=1 SCAR=6.9
32 2057 ▶sub source { return $_[0]->{source} }
Subroutine source: called CC=1 SCAR=0.0
33  
34 182 1;
« blib/lib/JQ/Lite/Error.pm ↑ Summary