Jmespath/JMESPathTypeException.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
to_string
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Jmespath::JMESPathTypeException;
2 use Moose;
3 with 'Throwable';
4 extends 'Jmespath::JMESPathException';
5  
6 has function_name => ( is => 'ro' );
7 has current_value => ( is => 'ro' );
8 has actual_type => ( is => 'ro' );
9 has expected_types => ( is => 'ro' );
10  
11 sub to_string {
12 my ( $self ) = @_;
13  
14 return 'In function ' .
15 $self->{function_name} . '(), invalid type for value: ' .
16 $self->{current_value} . ', expected one of: ' .
17 $self->{expected_types} . ', received: "' .
18 $self->{actual_type} . '"';
19 }
20  
21 no Moose;
22 1;