Jmespath/Visitor.pm

filter: Statementstmt 61.1% 11 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 3 totaltotal 53.8% 14 / 26 CC 1 SCAR 3.4
CC
1
Cov
61%
visit
2.0
default_visit
2.0
BEGIN
1.0
CRAP 1.4
« Jmespath/ParsedResult.pm ↑ Summary Jmespath/LexerException.pm »
1 package Jmespath::Visitor;
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 #no strict 'refs';
5  
6 760 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
7 760 my ($class) = @_;
8 760 my $self = bless {}, $class;
9 760 $self->{_method_cache} = {};
10 760 return $self;
11 }
12  
13 0 ▶sub visit {
Subroutine visit: not called CC=1 SCAR=6.9
Pod undocumented
14 0 my ($self, $node, $args) = @_;
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 0 my ($self, $node, @args) = @_;
22 0 Jmespath::NotImplementedException->new($node->{type})->throw;
23 0 return;
24 }
25  
26 2 1;
« Jmespath/ParsedResult.pm ↑ Summary Jmespath/LexerException.pm »