blib/lib/Jmespath/String.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 21 | 23 | 91.3 |
branch | n/a | ||
condition | n/a | ||
subroutine | 9 | 9 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 30 | 33 | 90.9 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Jmespath::String; | ||||||
2 | 2 | 2 | 8 | use strict; | |||
2 | 1 | ||||||
2 | 49 | ||||||
3 | 2 | 2 | 6 | use warnings; | |||
2 | 3 | ||||||
2 | 38 | ||||||
4 | 2 | 2 | 1003 | use Data::Dumper; | |||
2 | 8777 | ||||||
2 | 226 | ||||||
5 | use overload ( | ||||||
6 | 3 | 3 | 4 | "0+" => sub { "\"${$_[0]}\""; }, | |||
3 | 18 | ||||||
7 | 4 | 4 | 2 | '""' => sub { ${$_[0]}}, | |||
4 | 22 | ||||||
8 | 4 | 4 | 4 | "." => sub { ${$_[0]}}, | |||
4 | 8 | ||||||
9 | 1 | 1 | 79 | "eq" => sub { ${$_[0]} }, | |||
1 | 11 | ||||||
10 | 0 | 0 | fallback => sub { ${$_[0]} }, | ||||
0 | 0 | ||||||
11 | 2 | 2 | 9 | ); | |||
2 | 2 | ||||||
2 | 866 | ||||||
12 | |||||||
13 | 4 | 4 | 0 | 8 | sub TO_JSON { return '' . shift; } | ||
14 | |||||||
15 | 1; |