Jmespath/ParseException.pm

filter: Statementstmt 78.9% 15 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod n/a totaltotal 77.2% 17 / 22 CC 1 SCAR 2.9
CC
1
Cov
79%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Jmespath/LexerException.pm ↑ Summary Jmespath/AttributeException.pm »
1 package Jmespath::ParseException;
2 3 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 extends 'Jmespath::JMESPathException';
4 3 with 'Throwable';
5  
6 3 has message => ( is => 'ro',
7 default => 'Invalid jmespath expression' );
8 3 has expression => ( is => 'rw' );
9 3 has lex_position => ( is => 'ro' );
10 3 has token_type => ( is => 'ro' );
11 3 has token_value => ( is => 'ro' );
12  
13 0 ▶override 'to_string', sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
14 0 my $self = shift;
15 0 my $underline = ( ' ' x ( $self->lex_position + 1 ) ) . '^';
16 0 my $mf = '%s : Parse error at column %s token "%s" (%s), ' .
17 'for expression:' . "\n" . '"%s"' . "\n" . '%s' . "\n";
18 0 return sprintf $mf,
19 $self->message,
20 $self->lex_position,
21 $self->token_value,
22 $self->token_type,
23 $self->expression,
24 $underline;
25 3 };
26  
27 3 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
28 3 1;
« Jmespath/LexerException.pm ↑ Summary Jmespath/AttributeException.pm »