blib/lib/Mojo/JSON/Pointer.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 16 | 16 | 100.0 |
line | true | false | branch |
---|---|---|---|
9 | 57 | 4 | @_ > 1 ? : |
15 | 11 | 4 | $get ? : |
2 | 15 | length $pointer ? : | |
17 | 71 | unless $pointer =~ s[^/][]u | |
16 | 65 | 6 | length $pointer ? : |
21 | 69 | 39 | if (ref $data eq 'HASH' and exists $data->{$p}) { } |
24 | 15 | elsif (ref $data eq 'ARRAY' and $p =~ /^\d+$/u and @$data > $p) { } | |
30 | 47 | 9 | $get ? : |