Jmespath/Visitor.pm

filter: Statementstmt 43.7% 7 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 40.0% 2 / 5 Podpod 0.0% 0 / 3 totaltotal 37.5% 9 / 24 CC 1 SCAR 4.7
CC
1
Cov
44%
new
2.0
visit
2.0
default_visit
2.0
CRAP 1.6
« Jmespath/VariadicArityException.pm ↑ Summary Jmespath/LexerException.pm »
1 package Jmespath::Visitor;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 #no strict 'refs';
5  
6 sub new {
7 0 ▶ my ($class) = @_;
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
8 0 my $self = bless {}, $class;
9 0 $self->{_method_cache} = {};
10 0 return $self;
11 }
12  
13 sub visit {
14 0 ▶ my ($self, $node, $args) = @_;
Subroutine visit: not called CC=1 SCAR=6.9
Pod undocumented
15 0 my $node_type = $node->{type};
16 0 my $method = 'visit_' . $node->{type};
17 0 return &$method;
18 }
19  
20 0 ▶sub default_visit { ... }
Subroutine default_visit: not called CC=1 SCAR=6.9
Pod undocumented
21  
22 1 1;
« Jmespath/VariadicArityException.pm ↑ Summary Jmespath/LexerException.pm »