File Coverage

blib/lib/Jmespath/IncompleteExpressionException.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Jmespath::IncompleteExpressionException;
2 2     2   21 use Moose;
  2         2  
  2         9  
3             extends 'Jmespath::ParseException';
4             with 'Throwable';
5              
6             has expression => ( is => 'rw' );
7             has lex_position => ( is => 'ro' );
8             has token_type => ( is => 'ro' );
9             has token_value => ( is => 'ro' );
10              
11             override 'to_string', sub {
12             my ( $self ) = @_;
13             my $underline = ( ' ' x ( $self->{ lex_position } + 1 )) . '^';
14             return "Invalid jmespath expression: Incomplete expression:\n" .
15             '"' . $self->{expression} . '"' . "\n" . $underline;
16             };
17              
18 2     2   7891 no Moose;
  2         4  
  2         6  
19             1;