Jmespath/LexerException.pm

filter: Statementstmt 81.2% 13 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 0.0% 0 / 1 totaltotal 75.0% 15 / 20 CC 1 SCAR 2.9
CC
1
Cov
81%
to_string
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Jmespath/Visitor.pm ↑ Summary Jmespath/ParseException.pm »
1 package Jmespath::LexerException;
2 3 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 extends qw(Jmespath::ParseException);
4 3 with 'Throwable';
5  
6 3 has lexer_position => ( is => 'ro' );
7 3 has lexer_value => ( is => 'ro' );
8 3 has message => ( is => 'ro' );
9 3 has expression => ( is => 'rw' );
10  
11 0 ▶sub to_string {
Subroutine to_string: not called CC=1 SCAR=6.9
Pod undocumented
12 0 my ( $self ) = @_;
13 0 my $underline = ( ' ' x ( $self->{ lexer_position } + 1 ) ) . '^';
14 0 return 'Bad jmespath expression: ' . $self->{message} . "\n" . $self->{ expression } . "\n" . $underline;
15 }
16  
17 3 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 3 1;
« Jmespath/Visitor.pm ↑ Summary Jmespath/ParseException.pm »